Issue 76 in echo-nest-remix: Mac OS X lion incompatible

47 views
Skip to first unread message

echo-ne...@googlecode.com

unread,
Sep 13, 2011, 4:02:37 AM9/13/11
to remi...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 76 by adrien.canterot: Mac OS X lion incompatible
http://code.google.com/p/echo-nest-remix/issues/detail?id=76

What steps will reproduce the problem?
1. install the echo nest for mac os x 10.6 (mpkg file)
2.run python command prompt
3. run "import echonest.audio"

What is the expected output? What do you see instead?
The script is supposed to work
instead, i get this :
ImportError: No module named echonest.audio

What version of the product are you using? On what operating system?
Mac OS X 10.7

Please provide any additional information below.

douglas repetto

unread,
Nov 3, 2011, 6:23:52 PM11/3/11
to remi...@googlegroups.com

Hihihi,


When I use LocalAudioFile on a mono .wav file, remix barfs:

audio_file = audio.LocalAudioFile("/Users/douglas/Desktop/Changes.wav")


en-ffmpeg -i "/Users/douglas/Desktop/Changes.wav"
Traceback (most recent call last):
File "simplesort.py", line 95, in <module>
simplesort(in_filename, out_filename, mode)
File "simplesort.py", line 30, in simplesort
audio_file = audio.LocalAudioFile(in_filename)
File "/Library/Python/2.6/site-packages/echonest/audio.py", line 861,
in __init__
AudioData.__init__(self, filename=filename, verbose=verbose,
defer=defer)
File "/Library/Python/2.6/site-packages/echonest/audio.py", line 305,
in __init__
self.load()
File "/Library/Python/2.6/site-packages/echonest/audio.py", line 331,
in load
data = numpy.frombuffer(raw, dtype="<h", count=sampleSize)
ValueError: buffer is smaller than requested size


I've verified that en-ffmpeg processes the file correctly, and if I use
en-ffmpeg manually to convert the mono .wav to a mono .mp3, remix deals
with the file correctly. So it seems to be a problem specific to wave
files.

Or am I misunderstanding something?


douglas

--
............................................... http://artbots.org
.....douglas.....irving........................ http://dorkbot.org
.......................... http://music.columbia.edu/cmc/music-dsp
...........repetto............. http://music.columbia.edu/organism
............................... http://music.columbia.edu/~douglas

douglas repetto

unread,
Nov 3, 2011, 8:48:36 PM11/3/11
to remi...@googlegroups.com

I can't find many people talking about the "ValueError: buffer is
smaller than requested size" error I'm seeing, but this post implies
it's a problem with Numpy and the dtype used:

https://github.com/kanaka/noVNC/issues/76


I'm assuming this is a bug, so I'll add it to the bug tracker.


douglas

Reply all
Reply to author
Forward
0 new messages