Issue 73 in echo-nest-remix: API Error 5 every time an original file is analyzed - analysis is broken

56 views
Skip to first unread message

echo-ne...@googlecode.com

unread,
Mar 19, 2011, 8:52:23 PM3/19/11
to remi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 73 by MerwanWi...@gmail.com: API Error 5 every time an original
file is analyzed - analysis is broken
http://code.google.com/p/echo-nest-remix/issues/detail?id=73

Steps:
1. Analyze an original sound file

Result: API Error 5 every time a file is analyzed
Expected Result: The sound file is uploaded and analyzed correctly.

Using: Remix 1.3b on Python 2.6.6 on Windows XP.

Please provide any additional information below.

CODE:
import echonest.audio as audio

# Easy wrapper around mp3 decoding and Echo Nest analysis
audio_file = audio.LocalAudioFile("input.wav")

# You can manipulate the beats in a song as a native python list
beats = audio_file.analysis.beats
beats.reverse()

# And render the list as a new audio file!
audio.getpieces(audio_file, beats).encode("output.mp3")

ERROR DUMP:

Computed MD5 of file is 7c9bf28862f68a6c1ab9071787ca0160
Probing for existing analysis
Echo Nest API Error 5: The Identifier specified does not exist:
7c9bf28862f68a6c1ab9071787ca0160
Analysis not found. Uploading...
Traceback (most recent call last):
File "reverse.py", line 4, in <module>
audio_file = audio.LocalAudioFile("the_suburbs.wav")
File "c:\python26\lib\site-packages\echonest\audio.py", line 849, in
__init__
tempanalysis = AudioAnalysis(filename)
File "c:\python26\lib\site-packages\echonest\audio.py", line 95, in
__init__
self.pyechonest_track = track.track_from_filename(path_or_identifier)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 128, in
track_from_filename
return track_from_file(open(filename), filetype)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 120, in
track_from_file
return _track_from_string(file_object.read(), filetype)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 114, in
_track_from_string
return _upload(param_dict, data = audio_data)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 92, in
_upload
result = util.callm('track/upload', param_dict, POST = True,
socket_timeout = 300, data = data)
File "c:\python26\lib\site-packages\pyechonest\util.py", line 163, in
callm
f = conn.getresponse()
File "c:\python26\lib\httplib.py", line 990, in getresponse
response.begin()
File "c:\python26\lib\httplib.py", line 391, in begin
version, status, reason = self._read_status()
File "c:\python26\lib\httplib.py", line 355, in _read_status
raise BadStatusLine(line)
httplib.BadStatusLine

echo-ne...@googlecode.com

unread,
Mar 20, 2011, 12:00:04 PM3/20/11
to remi...@googlegroups.com

Comment #1 on issue 73 by blac...@echonest.com: API Error 5 every time an
original file is analyzed - analysis is broken
http://code.google.com/p/echo-nest-remix/issues/detail?id=73

The problem is most likely that you're uploading a .wav file for analysis.
The Echo Nest does not allow users to upload files larger than 50 MB. This
limit isn't documented anywhere, so you couldn't have known. I'll see that
the file size limit gets added to the API documentation. For now, your best
bet is to use an mp3.

(The API Error 5 doesn't a problem; it just indicates that the track had
never been analyzed before and needs to be uploaded.)

Mike

unread,
Mar 20, 2011, 12:11:16 PM3/20/11
to The Echo Nest Remix API
Thanks, that is helpful to know. I will only work with mp3s now.

With the same code I now get this error when using an mp3:

Computed MD5 of file is be3fb2854a5d8e6f1ad00c8f62d4cd41
Probing for existing analysis
Echo Nest API Error 5: The Identifier specified does not exist:
be3fb2854a5d8e6f1ad00c8f62d4cd41
Analysis not found. Uploading...
Traceback (most recent call last):
File "reverse.py", line 4, in <module>
audio_file = audio.LocalAudioFile("laika.mp3")
File "c:\python26\lib\site-packages\echonest\audio.py", line 849, in
__init__
tempanalysis = AudioAnalysis(filename)
File "c:\python26\lib\site-packages\echonest\audio.py", line 95, in
__init__
self.pyechonest_track =
track.track_from_filename(path_or_identifier)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 128,
in track_from_filename
return track_from_file(open(filename), filetype)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 120,
in track_from_file
return _track_from_string(file_object.read(), filetype)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 114,
in _track_from_string
return _upload(param_dict, data = audio_data)
File "c:\python26\lib\site-packages\pyechonest\track.py", line 92,
in _upload
result = util.callm('track/upload', param_dict, POST = True,
socket_timeout = 300, data = data)
File "c:\python26\lib\site-packages\pyechonest\util.py", line 179,
in callm
response_dict = get_successful_response(f.read())
File "c:\python26\lib\site-packages\pyechonest\util.py", line 69, in
get_successful_response
raise EchoNestAPIError(code, message)
pyechonest.util.EchoNestAPIError: Echo Nest API Error 5: Analysis is
not possible because the track couldn't be decoded

On Mar 20, 9:00 am, echo-nest-re...@googlecode.com wrote:
> Comment #1 on issue 73 by blac...@echonest.com: API Error 5 every time an  
> original file is analyzed - analysis is brokenhttp://code.google.com/p/echo-nest-remix/issues/detail?id=73

Ben Lacker

unread,
Mar 21, 2011, 3:39:47 PM3/21/11
to remi...@googlegroups.com, Mike
Mike, what program did you use to encode that mp3 file? I haven't encountered an mp3 that the Echo Nest's analyzer isn't capable of decoding before; it might have something to do with the encoder you used.

(since you have remix installed, you can always convert your wav files like:
en-ffmpeg -i laika.wav laika.mp3)

--
You received this message because you are subscribed to the Google Groups "The Echo Nest Remix API" group.
To post to this group, send email to remi...@googlegroups.com.
To unsubscribe from this group, send email to remix-api+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/remix-api?hl=en.


Mike Williams

unread,
Mar 21, 2011, 3:55:07 PM3/21/11
to Ben Lacker, remi...@googlegroups.com

It wasn't the encoding. I fixed the issue be installing the latest echo nest api I guess there was an issue recently with it on windows machines.

echo-ne...@googlecode.com

unread,
Mar 24, 2011, 10:21:19 AM3/24/11
to remi...@googlegroups.com

Comment #2 on issue 73 by blac...@echonest.com: API Error 5 every time an
original file is analyzed - analysis is broken
http://code.google.com/p/echo-nest-remix/issues/detail?id=73

The user reported that updating to the latest svn revision of Remix fixed
the bug.

echo-ne...@googlecode.com

unread,
Mar 28, 2011, 3:16:06 PM3/28/11
to remi...@googlegroups.com
Updates:
Status: Fixed

Comment #3 on issue 73 by blac...@echonest.com: API Error 5 every time an

original file is analyzed - analysis is broken
http://code.google.com/p/echo-nest-remix/issues/detail?id=73

(No comment was entered for this change.)

Reply all
Reply to author
Forward
0 new messages