beetbox / pyacoustid

Python bindings for Chromaprint acoustic fingerprinting and the Acoustid Web service
MIT License
332 stars 66 forks source link

Syntax error #23

Closed 2011 closed 10 years ago

2011 commented 10 years ago

Sorry, I am absolutely clueless about python. :(

Installed everything, and got this:

$ python aidmatch.py unknown.mp3 File "aidmatch.py", line 35 except acoustid.WebServiceError, exc: ^ SyntaxError: invalid syntax

Can you tell me what the problem is?

Thank you in advance.

sampsyo commented 10 years ago

Looks like you're using Python 3 and have a version of the code that's Python 2-only. You can either use py2, or py3 compatibility was added recently so you can install from source.

2011 commented 10 years ago

Thanks. I should have figured that out. I use gentoo and have to specify a python target for every app that uses python (and had to choose between 2.6 and 2.7 in this case), so even though I know nothing about python, that still should have been enough of a clue. :)