_portaudio.so: no matching architecture in universal wrapper
Question
My system is Mac OS 10.8.2, Python 2.7.3, Xcode 4.5.1.
I am trying to import pyaudio
in python. import pyaudio
gives Please build and install the PortAudio Python bindings first
. Considering the error was due to unavailability of portaudio
.
I installed portaudio
using brew install portaudio
successfully. Here is a screenshot of the site-packages
folder.
But import pyaudio
still results in Please build and install the PortAudio Python bindings first
.
While import _portaudio
gives no matching architecture in universal wrapper
How do I sucessfully import pyaudio
in Python?
Solution
- Have both PortAudio and PyAudio removed if you got any of them installed inititally
- In the terminal,
brew install portaudio
easy_intall pyaudio
I got all my errors removed
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow