Closed fvviz closed 2 years ago
Do you happen to use an M1 processor?
The .dylib
shipped with the sounddevice
module currently doesn't support that (see https://github.com/spatialaudio/portaudio-binaries/issues/9).
If you are using Homebrew, you can try brew install portaudio
.
I'm seeing the same as OP and am running on an M1 Mac.
~I do have portaudio installed via brew and have tried running
pip3 install --no-cache-dir --global-option='build_ext' --global-option='-I/usr/local/opt/portaudio/include' --global-option='-L/usr/local/opt/portaudio/lib' sounddevice
but no success thus far~
I ended up manually creating the path _sounddevice_data/portaudio-binaries/
under <..>/lib/python3.8/site-packages/sounddevice-0.4.2-py3.8.egg/
and copying the values from portaudio lib.
Note: Make sure brew installs were done w/ arch -arm64
or you'll see an architecture mismatch.
Can someone please check if the .dylib
from https://github.com/spatialaudio/portaudio-binaries/pull/10 works properly on an M1 Mac?
Since there hasn't been any feedback, I've decided to publish a new release anyway (version 0.4.3). Please let me know whether or not that fixes the problem!
I'm still getting the error, on an Intel Macbook w/ 11.4. I tried the brew install portaudio --HEAD
trick mentioned in various places without luck. My sounddevice version seems to be 0.4.3.
I never saw any permissions pop up, is there a way to force this? And also, fyi, I'm using Python 3.10
Update: fixed by downgrading to Python 3.8. Maybe some other issue was present. I did now create a few conda env, and then used pip to install sounddevice
.
When i run this code
i get this error
This is how i installed sounddevice
But I'm sure i installed portaudio on my mac. Even Pyaudio seems to work fine but sounddevice is not working, What can i do now?