I'm running Raspbian Jessie on Raspberry Pi 2.
Installed pyaudio with: pip install pyaudio
Also using virtualenv for python
When import pyaudio I get the error Could not import the PyAudio C module '_portaudio'. However when checking the location the _portaudio.so file exists.
Code:
Select all
(venv) kidkic@pi-mirror1:~/audio/portaudio $ python
Python 2.7.9 (default, Mar 8 2015, 00:52:26)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyaudio
Could not import the PyAudio C module '_portaudio'.
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/kidkic/audio/venv/local/lib/python2.7/site-packages/pyaudio.py", line 116, in <module>
import _portaudio as pa
ImportError: /home/kidkic/audio/venv/local/lib/python2.7/site-packages/_portaudio.so: undefined symbol: Pa_GetStreamReadAvailable
Issue is that the wrong version of portaudio is installed.
Check this stackoverflow for solution
http://stackoverflow.com/questions/3668 ... portaudio/