简体   繁体   English

未找到PortAudio符号:Mountain Lion上的_PaMacCore_SetupChannelMap

[英]PortAudio Symbol not found: _PaMacCore_SetupChannelMap on Mountain Lion

I tried installing pyaudio (tried both with pip and easy_install) by running the following 我尝试通过运行以下命令安装pyaudio(尝试使用pip和easy_install)

brew install portaudio

[pip or easy_install command]
sudo pip install pyaudio

sudo easy_install pyaudio

However when I run import _portaudio in the python inerpreter it gives me this 但是当我在python inerpreter中运行import _portaudio时,它给了我这个

>>> import _portaudio
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so, 2): Symbol not found: _PaMacCore_SetupChannelMap
  Referenced from: /Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so
  Expected in: flat namespace
 in /Library/Python/2.7/site-packages/PyAudio-0.2.7-py2.7-macosx-10.8-intel.egg/_portaudio.so

Is your path setup right to find the port audio dll file? 您的路径设置是否正确找到端口音频DLL文件? Does the dependency come already: pyPortAudio/fastaudio or does it require a separate install? 依赖性是否已经出现:pyPortAudio / fastaudio还是需要单独安装?

BTW: This might or might not meet your requirements but have you considered using scipy.io.wavfile? 顺便说一句:这可能会或可能不符合您的要求,但您是否考虑过使用scipy.io.wavfile?

import scipy.io.wavfile
fs1, y1 = scipy.io.wavfile.read(filename)

我从使用apple的python转到使用macports python27,然后安装了pyaudio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM