Comments (12)
install this
sudo apt-get install libsndfile1
from python-soundfile.
Did you use homebrew to install libsndfile?
Can you please show the contents of /usr/local/Cellar/libsndfile/1.0.25/lib/
?
I don't know how this works on OSX, but on Linux, you can add additional search paths for libraries to /etc/ld.so.conf
and afterwards run the command ldconfig
as root (or with sudo
).
Probably there is something similar for OSX?
Alternatively, as a quick work-around, you can try to copy (or symlink) the libsndfile.dylib
to /usr/local/lib/
, then it should be found automatically.
from python-soundfile.
i did use homebrew.
$ ls /usr/local/Cellar/libsndfile/1.0.25/lib/
libsndfile.1.dylib libsndfile.a libsndfile.dylib pkgconfig
i thought homebrew would take care of dynamic libraries in the path. i'll try it more explicitly.
from python-soundfile.
Yes, as far as I understand, homebrew should automatically create a symbolic link to libsndfile.dylib
in /usr/local/lib/
.
Can you please check if it's there?
from python-soundfile.
it's there. it might be one of those weird situations, where i might need to log out and log back in for brew's changes to have an effect.
$ ls -al /usr/local/lib/libsndfile.*
lrwxr-xr-x 1 satra admin 50 Mar 15 11:48 /usr/local/lib/libsndfile.1.dylib -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.1.dylib
lrwxr-xr-x 1 satra admin 44 Mar 15 11:48 /usr/local/lib/libsndfile.a -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.a
lrwxr-xr-x 1 satra admin 48 Mar 15 11:48 /usr/local/lib/libsndfile.dylib -> ../Cellar/libsndfile/1.0.25/lib/libsndfile.dylib
from python-soundfile.
I've seen a few weird issues with library names lately. Try renaming (or linking) the dylib to sndfile.dylib
(no lib
). I'm not sure if this changes anything, but it might be worth a shot.
from python-soundfile.
Hey all - I had the same issue. Tried symlinking libsndfile.dylib
from the homebrew directory to /usr/local/lib/
and it worked.
edit: kind of off topic, but thanks to the creators/maintainers for this package...really useful!
from python-soundfile.
@satra and @choldgraf: did you try our latest 0.7.0 release?
Now we're shipping our own libsndfile.dylib
, so the problem is hopefully gone!?!
from python-soundfile.
Is it on pip? I can unlink my own libsndfile and upgrade to see if that works if it'd be useful.
from python-soundfile.
Yes and yes, please!
from python-soundfile.
Just tried it. Unlinking the sound library breaks pysoundfile v.6, and upgrading to v.7 fixes the issue, so I think we're good on this issue!
from python-soundfile.
Great, thanks a lot!
I'm closing this ...
from python-soundfile.
Related Issues (20)
- Value Error: array is too big when loading .flac file
- soundfile crashes when trying to export long .ogg file HOT 1
- soundfile.LibsndfileError: Error opening <_io.BytesIO object at 0x0000022B81C21850>: Format not recognised. HOT 2
- Cannot suppress warnings when decoding mp3
- Cannot open Ogg FLAC file: unknown error in flac decoder HOT 1
- miniforge3/lib/python3.9/site-packages/soundfile.py", line 1229, in _init_virtual_io def vio_get_filelen(user_data): MemoryError: Cannot allocate write+execute memory for ffi.callback(). You might be running on a system that prevents this. For more information, see https://cffi.readthedocs.io/en/latest/using.html#callbacks
- Cannot write Ogg files over 96 seconds long at 44.1 kHz HOT 4
- soundfile.info does not work on mp3 HOT 2
- soundfile.LibsndfileError: <exception str() failed> HOT 6
- How to save left and right channel in separate files? HOT 1
- soundfile.LibsndfileError: Error : unknown error in flac decoder. HOT 2
- "Format not recognised." for m4a files HOT 2
- soundfile.LibsndfileError: Error opening <tempfile._TemporaryFileWrapper object at 0x7feadae59070>: Format not recognised. HOT 2
- Part of mp3 is loaded. HOT 2
- unknown error in flac decoder HOT 2
- Capture libmpg123/libsndfile warnings HOT 1
- 24-bit data not written/read properly HOT 4
- REQUEST: Allow resampling when loading non-raw files HOT 1
- New release with updated libsndfile binaries HOT 1
- Cannot read mp3 with file-like object HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-soundfile.