Forums » Bugs & Problems Search

API error 6 on Windows New Reply

Author Post
Posts: 3
Registered: May 10, 2010

Hi all.

Got a new laptop and had to install Echo nest, Python, ect. again. Though I had it running on my old laptop, I had to follow the installation guide again. The laptop is running Windows 7 64 bit.

  • Installed Python 2.6
  • Installed NumPy
  • Installed Echo Nest Remix and added both key and python to windows path.

When trying to execute any of the examples, I get an error. Here's the output from the command prompt:

C:\Python26\echo-nest-remix-examples\afromb>python afromb.py dafunk.wav pretend.wav dapretend.wav 0.9 env
Computed MD5 of file is 86e340fd5a9bacabeab8819e1d6b2191
Probing for existing analysis
Echo Nest API Error 5: The Identifier specified does not exist
Analysis not found. Uploading...
Traceback (most recent call last):
  File "afromb.py", line 174, in <module>
    main()
  File "afromb.py", line 169, in main
    AfromB(input_filename_a, input_filename_b, output_filename).run(mix=mix,
  File "afromb.py", line 34, in __init__
    self.input_a = audio.LocalAudioFile(input_filename_a)
  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 6: An error occurred during analysis

No output file is generated, not even a temporary file in the Windows temp folder. I'm aware that the first Error 5 isn't critical. Been searching around for Error 6, but couldn't find anything.

Any idea of what I'm doing wrong? Thanks in advance!

-- Morten

Posts: 1098
Registered: Sep 08, 2008

dmorten - remix comes with its own version of pyechonest (there's a bit of version skew). Try installing the pyechonest that comes with remix to see if that helps. -- Paul

Posts: 3
Registered: May 10, 2010

Thanks for your reply Paul.

Not quite sure what you meant though. I couldn't find anything "pyechonest" related in my install. I downloaded it, installed fine, I could start song.py and others - but then I got stuck.

I just downloaded Echo-Nest-Remix package again, installed it and afterwards I checked that the python and ffmpeg paths works.

I still get an error though. The two wave files are present in the same folder, so that's not the problem. Here's the output, a bit different than last time:

C:\Python26\echo-nest-remix-examples\afromb>python afromb.py dafunk.wav pretend.wav dapretend.wav 0.9
en-ffmpeg -i "dafunk.wav"
Computed MD5 of file is 86e340fd5a9bacabeab8819e1d6b2191
Probing for existing analysis
Analysis not found. Uploading...
Traceback (most recent call last):
  File "afromb.py", line 174, in <module>
    main()
  File "afromb.py", line 169, in main
    AfromB(input_filename_a, input_filename_b, output_filename).run(mix=mix,
  File "afromb.py", line 34, in __init__
    self.input_a = audio.LocalAudioFile(input_filename_a)
  File "C:\Python26\lib\site-packages\echonest\audio.py", line 872, in __init__
    tempanalysis = AudioAnalysis(filename)
  File "C:\Python26\lib\site-packages\echonest\audio.py", line 97, in __init__
    self.pyechonest_track = track.track_from_filename(path_or_identifier)
  File "C:\Python26\pyechonest\track.py", line 212, in track_from_filename
    return track_from_file(open(filename, 'rb'), filetype)
  File "C:\Python26\pyechonest\track.py", line 191, in track_from_file
    return _track_from_string(file_object.read(), filetype)
  File "C:\Python26\pyechonest\track.py", line 169, in _track_from_string
    return _upload(param_dict, data = audio_data)
  File "C:\Python26\pyechonest\track.py", line 147, in _upload
    result = util.callm('track/upload', param_dict, POST = True, socket_timeout = 300,  data = data)
  File "C:\Python26\pyechonest\util.py", line 211, in callm
    response_dict = get_successful_response(f.read())
  File "C:\Python26\pyechonest\util.py", line 87, in get_successful_response
    raise EchoNestAPIError(-1, "Unknown error.")
pyechonest.util.EchoNestAPIError: Echo Nest API Error -1: Unknown error.
Posts: 1098
Registered: Sep 08, 2008

DMorten - Your best best is to head over to the Echo Nest Remix google group and post your query there. Remix is an open source project and is supported by the community via that forum.

Posts: 3
Registered: May 10, 2010

Paul - I'll do that. Didn't realise that. Thanks for your time.

Reply to this Thread

You must log in to post a reply.