I need to install the Python module’s audio lab for a research project, and although I managed to install it and get the module to import into the Python shell, it returns an error when calling one of the module’s most basic functions, wavread ().
I use Python2.7.1 mainly, although I tried to roll back and install an audio lab for Python2.6.6, only to find the same error message after importing and calling the wavread () function.
My operating system is Mac OS X 10.5.8 with an Intel processor.
This is usually:
import numpy
import scipy
import scikits.audiolab as audio
x, fs, nbits = audio.wavread('test.wav')
Traceback (last last call):
File "<pyshell#3>", line 1, in <module>
x, fs, nbits = audio.wavread('test.wav')
File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/scikits.audiolab-0.11.0-py2.7-macosx-10.3- fat.egg/scikits/audiolab/pysndfile/matapi.py", line 91, in basic_reader
hdl = Sndfile(filename, 'r')
File "_sndfile.pyx", line 488, in scikits.audiolab.pysndfile._sndfile.Sndfile.__init__ (scikits/audiolab/pysndfile/_sndfile.c:4251)
IOError: error while opening test.wav
->error while opening file test.wav
-> System error : No such file or directory.
libsndfile (, , - ), pip, , , . tar.gz, python setup.py install . , 'build'
, "site.cfg", , Google, Windows, .
, , !!