PiRSquared17 / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

Import of scikits.audiolab fails in WinPython 2.7.5.3 32bit #86

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Run Python interpreter.
2. >>> import scikits.audiolab
3. Hit <Enter>

What is the expected output? 

No output after import statement.

What do you see instead?

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\scikits\audiolab\__init__.py", line 25, in <module>
    from pysndfile import formatinfo, sndfile
  File "C:\Python27\lib\site-packages\scikits\audiolab\pysndfile\__init__.py", line 1, in <module>
    from _sndfile import Sndfile, Format, available_file_formats, \
  File "numpy.pxd", line 30, in scikits.audiolab.pysndfile._sndfile (scikits\audiolab\pysndfile\_sndfile.c:9632)
ValueError: numpy.dtype does not appear to be the correct type object

What version of the product are you using? On what operating system?

WinPython 2.7.5.3 32bit on Windows 7 64 bit

Please provide any additional information below.

The solution is to download scikits.audiolab-0.11.0.win32-py2.7.exe
from here http://www.lfd.uci.edu/~gohlke/pythonlibs/#scikits.audiolab
and reinstall the package.
It looks like that provided by WinPython file
WinPython-32bit-2.7.5.3\python-2.7.5\Lib\site-packages\scikits\audiolab\pysndfil
e\_sndfile.pyd
is corrupt.
After replacing this file with the one from scikits.audiolab package from 
Christoph Gohlke's
Unofficial Windows Binaries for Python Extension Packages the import works 
again.

Thank you,
Albert

Original issue reported on code.google.com by albert.z...@gmail.com on 1 Oct 2013 at 10:14