Skip to content

Instantly share code, notes, and snippets.

@anaveen222
Created May 13, 2014 13:11
Show Gist options
  • Save anaveen222/a4501d44a3932c1ed362 to your computer and use it in GitHub Desktop.
Save anaveen222/a4501d44a3932c1ed362 to your computer and use it in GitHub Desktop.
Hi Wesley,
Im running a virtual ubuntu (Linux ubuntu 2.6.32-58-generic #121-Ubuntu SMP Fri May 2 21:33:35 UTC 2014 i686 GNU/Linux)
was trying to run your python script http://stackoverflow.com/questions/16222178/detecting-a-specific-watermark-in-a-photo-with-python-without-scipy/16224751#16224751
getting the error below ::
sudo python setup.py install
running install
running build
running build_py
running install_lib
byte-compiling /usr/local/lib/python2.6/dist-packages/infer/classify.py to classify.pyc
SyntaxError: ('invalid syntax', ('/usr/local/lib/python2.6/dist-packages/infer/classify.py', 278, 47, ' return {x: self._score(document, x) for x in self.labels}\n'))
also tried downloading the gist and installed all the requirements such as pillow 2.0 and tried :
andvine@ubuntu:~/naveen$ python watermark.py
Traceback (most recent call last):
File "watermark.py", line 10, in <module>
from classify import MultinomialNB
File "/home/sandvine/naveen/classify.py", line 192
return {x: self._score(document, x) for x in self.labels}
^
SyntaxError: invalid syntax
sandvine@ubuntu:~/naveen$
which also throws error. can you please help me on this.
--
Thanks and Regards,
Naveen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment