Python module audiolab returns error when function is called -
i need install python module audiolab research project, , while have managed install , module import in python shell, returns error in calling 1 of basic functions in module, wavread().
i using python2.7.1 mainly, though did try backtracking , installing audiolab python2.6.6, find same error message after importing , calling wavread() function.
my operating system mac os x 10.5.8 intel processor.
this how goes:
import numpy import scipy import scikits.audiolab audio x, fs, nbits = audio.wavread('test.wav')
traceback (most recent call last):
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.
i installed libsndfile library (which believe audiofile wrapper around) using pip , seemed install fine without error. tried install audiolab tar.gz file, using command python setup.py install
in terminal. directed in documentation, found here under header 'build'
the documentation talks in cases needing make 'site.cfg' file, saw after google searching, applies windows users, though i'm not this.
any light shed on problem appreciated!!
the audiolab documentation lacking, wavread()
requires input file. in code, input test.wav
. if doesn't exist in working directory (usually location of python script), need provide full path file.
Comments
Post a Comment