bastibe / python-soundfile

SoundFile is an audio library based on libsndfile, CFFI, and NumPy
BSD 3-Clause "New" or "Revised" License
676 stars 105 forks source link

Update soundfile.py #401

Closed DenizK7 closed 9 months ago

DenizK7 commented 10 months ago

on mac this error occur when try to run: /usr/lib/libsndfile.dylib' (no such file) this error occurs because of the naming of the file on the code. Current file name is libsndfile_arm.dylib but program call it libsndfile.dylib when I delete the '_arm' from file name problem is fixed. most likely there is a problem calling the file

bastibe commented 10 months ago

How did you install soundfile? You should install the wheel, which comes with its own libsndfile.

DenizK7 commented 10 months ago

I installed wheel : python setup.py bdist_wheel and pip install soundfile. But the problem that I mentioned above occurred. When i delete the file extension name (_machine()) problem has been solved.

bastibe commented 9 months ago

Update your pip, then pip install soundfile. Possibly delete any previous installation beforehand.

The modification you provided here would actually break other installations.

DenizK7 commented 9 months ago

I tried many times in different ways, but unfortunately there was no solution. However, when I changed the file name manually, it was fixed. Unfortunately, there are many people who have the same problem on the internet (with arm processor). But it might be breaking the code. Because I directly changed the file name manually. Afterwards, if I can examine the entire code carefully, I will look at it again and try to solve the problem.

bastibe commented 9 months ago

I do wonder where these installation issues come from. The only thing I can think of are systems like the Raspberry Pi or Conda, which swap out the official PyPi for their own repository. But in that case, there's really nothing we can do to fix it, as they're not using the official sources.