Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 83 by
scott.te...@gmail.com: Mac OS X 10.6 earworm.py
returns "SyntaxError: mismatched tag: line 6, column 2"
http://code.google.com/p/echo-nest-remix/issues/detail?id=83
earworm.py will no longer process any MP3 file I give it, after I've
upgraded from Mac OS X 10.6.5 to 10.6.8. It returns the error "SyntaxError:
mismatched tag: line 6, column 2".
I've tried earworm.py in the version 1.4 (python 2.6) package as well as an
older 1.3a (python 2.6) package and both return the same error.
What steps will reproduce the problem?
1. Start up my Macbook Pro running OS X 10.6.8
2. Install latest Echo Nest Remix API for Mac OS X 10.6, version 1.4
3. Open Terminal and run export ECHO_NEST_API_KEY="XXXXXXXXXXXXXXXXX" (with
my key)
4. Run earworm.py on an MP3 file and watch it fail!
5. Here is a transcript of the output:
> export ECHO_NEST_API_KEY="XXXXXXXXXXXXXXXXX"
> python /usr/local/share/echo-nest-remix-examples/earworm/earworm.py -d
> 900 Baila_Me2.mp3
Traceback (most recent call last):
File "/usr/local/share/echo-nest-remix-examples2/earworm/earworm.py",
line 562, in <module>
main()
File "/usr/local/share/echo-nest-remix-examples2/earworm/earworm.py",
line 533, in main
track = LocalAudioFile(args[0], verbose=verbose)
File "/Library/Python/2.6/site-packages/echonest/audio.py", line 792, in
__init__
tempanalysis = AudioAnalysis(trackID)
File "/Library/Python/2.6/site-packages/echonest/audio.py", line 91, in
__init__
super(AudioAnalysis, self).__init__(audio)
File "/Library/Python/2.6/site-packages/pyechonest/track.py", line 51, in
__init__
self.params = {'id':
self.identifier, 'analysis_version':config.ANALYSIS_VERSION }
File "/Library/Python/2.6/site-packages/pyechonest/track.py", line 236,
in identifier
self._identifier = self.metadata.get('id')
File "/Library/Python/2.6/site-packages/pyechonest/track.py", line 165,
in metadata
tree = util.call('get_metadata', params)
File "/Library/Python/2.6/site-packages/pyechonest/util.py", line 57, in
call
response = fromstring(f.read())
File "<string>", line 85, in XML
SyntaxError: mismatched tag: line 6, column 2
Is there any way I can help get earworm.py to work again on OS X?