cournape / audiolab

A python package for reading/writing audio files from numpy array
http://cournape.github.com/audiolab
GNU Lesser General Public License v2.1
141 stars 46 forks source link

Importing Audiolab fails (OSX 10.3.2 + Python 3.6.4) #34

Open dchapiro opened 6 years ago

dchapiro commented 6 years ago

in ipython: In [8]: import scikits.audiolab

ModuleNotFoundError Traceback (most recent call last)

in () ----> 1 import scikits.audiolab /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/scikits/audiolab/__init__.py in () 20 COPYING.txt for details. """ 21 ---> 22 from version import version as _version 23 __version__ = _version 24 ModuleNotFoundError: No module named 'version'
scottstanie commented 6 years ago

This appears to be a python3 issue with the change they did from relative imports.

Adding . in front of this fixes it, but leads to others. as in from .version import version as _version.

If you do that for the other statements that also error, I eventually get to

ImportError: /home/scott/envs/data/lib/python3.5/site-packages/scikits/audiolab/pysndfile/_sndfile.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize

Which makes it seem like the cython is bad for this version and I don't think I feel like going further than that for now

dchapiro commented 6 years ago

Hi Scott - thanks for looking into this. In the meantime I had switched to something else, but it’s good to have this head start if I try with Audiolab again. Thanks! —Dan

On Sep 16, 2018, at 11:52 AM, Scott Staniewicz notifications@github.com wrote:

This appears to be a python3 issue with the change they did from relative imports.

Adding . in front of this fixes it, but leads to others. as in from .version import version as _version.

If you do that for the other statements that also error, I eventually get to

ImportError: /home/scott/envs/data/lib/python3.5/site-packages/scikits/audiolab/pysndfile/_sndfile.cpython-35m-x86_64-linux-gnu.so: undefined symbol: PyString_FromStringAndSize Which makes it seem like the cython is bad for this version and I don't think I feel like going further than that for now

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/cournape/audiolab/issues/34#issuecomment-421812467, or mute the thread https://github.com/notifications/unsubscribe-auth/AFmjG0y8QuZgFbE2OZgok1wLnH9HMIjHks5ubp3igaJpZM4SiFwh.