New issue 64 by audiod...@gmail.com: "[Errno 35] Resource temporarily
unavailable" on OS X 10.5, known issue with Apple's HAVE_POLL?
http://code.google.com/p/echo-nest-remix/issues/detail?id=64
What steps will reproduce the problem?
1. Try to upload a file on OS X 10.5.8
What is the expected output? What do you see instead?
Should get past the upload stage. Instead python throws an Exception,
caused by a low level socket error.
What version of the product are you using? On what operating system?
1.3b on OS X 10.5.8
I believe this is the problem described by the MacPorts folks here:
https://svn.macports.org/ticket/18376
Here is the full stack trace:
$ python
/usr/local/share/echo-nest-remix-examples/one/one.py ../Projects/REMIX/Chris\
L/Yon\ mercury/yon\ mercury.mp3 ../Projects/REMIX/Chris\ L/Yon\
mercury/yon\ mercury_three.mp3
Computed MD5 of file is 9d08a2943debbabee558b64a0b55dbad
Probing for existing analysis
Echo Nest API Error 5: The Identifier specified does not exist:
9d08a2943debbabee558b64a0b55dbad
Analysis not found. Uploading...
Traceback (most recent call last):
File "/usr/local/share/echo-nest-remix-examples/one/one.py", line 38, in
<module>
main(input_filename, output_filename)
File "/usr/local/share/echo-nest-remix-examples/one/one.py", line 22, in
main
audiofile = audio.LocalAudioFile(input_filename)
File "/Library/Python/2.5/site-packages/echonest/audio.py", line 836, in
__init__
tempanalysis = AudioAnalysis(filename)
File "/Library/Python/2.5/site-packages/echonest/audio.py", line 95, in
__init__
self.pyechonest_track = track.track_from_filename(path_or_identifier)
File "/Library/Python/2.5/site-packages/pyechonest/track.py", line 128,
in track_from_filename
return track_from_file(open(filename), filetype)
File "/Library/Python/2.5/site-packages/pyechonest/track.py", line 120,
in track_from_file
return _track_from_string(file_object.read(), filetype)
File "/Library/Python/2.5/site-packages/pyechonest/track.py", line 114,
in _track_from_string
return _upload(param_dict, data = audio_data)
File "/Library/Python/2.5/site-packages/pyechonest/track.py", line 92, in
_upload
result = util.callm('track/upload', param_dict, POST = True,
socket_timeout = 300, data = data)
File "/Library/Python/2.5/site-packages/pyechonest/util.py", line 163, in
callm
conn.request('POST', url, body = data, headers =
dict([('Content-Type', 'application/octet-stream')]+headers))
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
line 898, in request
self._send_request(method, url, body, headers)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
line 938, in _send_request
self.send(body)
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/httplib.py",
line 743, in send
self.sock.sendall(str)
File "<string>", line 1, in sendall
socket.error: [Errno 35] Resource temporarily unavailable
I'm having the same issue on OS X 10.6.4, with a source install of Remix.
But it depends on which Python I use. If I use /usr/local/bin/python
everything works fine, but with my default
/Library/Frameworks/Python.framework/Versions/2.6/bin/python, I get the
"[Errno 35] Resource temporarily unavailable".
This seems to agree that the issue is with custom python builds:
http://bugs.python.org/issue5154
I have the same issue on OSX 10.6.6 with a source install of Remix (1.3b),
using the Enthought Python Distribution (7; python 2.7). Is there a
workaround that I can do on this end?
Having this problem as well. Any follow up?