python-soundfile icon indicating copy to clipboard operation
python-soundfile copied to clipboard

Pip/Soundfile/libsndfail failures

Open emmabailey-uni opened this issue 5 years ago • 1 comments
trafficstars

When attempting to run soundfile in a virtual environment (on Windows 10), the required folders are not installed when installing soundfile using pipenv. I have tried downloading the libsndfile directly from Mega-Nerd to no avail, the error output is as seen below:

Traceback (most recent call last): File "Python_Compression.py", line 5, in data, samplerate = sf.read('TRACK01.wav') File "C:\Users\EmmaBailey.virtualenvs\CompressionTests-SdYivTNk\lib\site-packages\soundfile.py", line 256, in read with SoundFile(file, 'r', samplerate, channels, File "C:\Users\EmmaBailey.virtualenvs\CompressionTests-SdYivTNk\lib\site-packages\soundfile.py", line 629, in init self._file = self._open(file, mode_int, closefd) File "C:\Users\EmmaBailey.virtualenvs\CompressionTests-SdYivTNk\lib\site-packages\soundfile.py", line 1172, in _open openfunction = _snd.sf_wchar_open AttributeError: cffi library 'C:\Users\EmmaBailey.virtualenvs\CompressionTests-SdYivTNk\lib\site-packages_soundfile_data\libsndfile64bit.dll' has no function, constant or global variable named 'sf_wchar_open'

emmabailey-uni avatar Jan 23 '20 16:01 emmabailey-uni

I believe this is a current bug in pip, see #253 for more info.

As a workaround, please manually download the appropriate windows wheel, and install it manually.

bastibe avatar Jan 24 '20 12:01 bastibe