Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running the code #2

Open
nikhil-me opened this issue Nov 8, 2016 · 0 comments
Open

Error while running the code #2

nikhil-me opened this issue Nov 8, 2016 · 0 comments

Comments

@nikhil-me
Copy link

I run the "cd util && python prepare.py && cd -" in one terminal and "python main.py" in another terminal.
After that I try to upload the image of a car then there is an error :

Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/tornado-4.4.2-py2.7-linux-x86_64.egg/tornado/web.py", line 1467, in _execute
result = method(*self.path_args, **self.path_kwargs)
File "/home/nikhil/F Drive/MTP Test/py-cbir-master/apps/cbir.py", line 247, in post
phash_alg, index_alg = get_global_vars()
File "/home/nikhil/F Drive/MTP Test/py-cbir-master/apps/cbir.py", line 210, in get_global_vars
phash_alg = GlobalMatcher(SETNAME)
File "/home/nikhil/F Drive/MTP Test/py-cbir-master/apps/cbir.py", line 141, in init
self.load('conf/%s_gist.txt' % setname, self.gist)
File "/home/nikhil/F Drive/MTP Test/py-cbir-master/apps/cbir.py", line 144, in load
for line in open(pin):
IOError: [Errno 2] No such file or directory: 'conf/ferrari_gist.txt'

And in the terminal where i run main.py. Error is :

SyntaxError('unexpected EOF while parsing', ('', 1, 8957, '[0.10801810715592972, 0.002326306277452416, 0.002127562225475842, 0.0005990917825768668, 3.4315519765739386e-05, 0.0, 0.0, 0.0, 0.00547189558931186, 0.010420479502196192, 0.0015384791361639824, 0.0014970145497803806, 0.0010022991398243046, 0.00024735770497803805, 0.0, 0.0, 0.0008393004209370425, 0.001455549963396779, 0.0018701958272327964

Please help I am not able to figure out this error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant