python-sounddevice

PortAudio library not found by sounddevice

▼魔方 西西 提交于 2019-12-09 16:57:54
问题 I have been working with a python program which uses sounddevice module to play audio. The program works fine in my office pc (running Ubuntu 17.10 ), but not in my home pc (running Linux Mint 18.3 ). It generates the following error: Traceback (most recent call last): File "...path/to/my/code.py", line 11, in <module> import sounddevice as sd File "/home/arif/anaconda3/lib/python3.6/site-packages/sounddevice.py", line 64, in <module> raise OSError('PortAudio library not found') OSError:

PortAudio library not found by sounddevice during runtime [WINDOWS]

依然范特西╮ 提交于 2019-12-08 12:35:22
问题 PROBLEM: Similar to this question for Linux, I'm running into a OSError: PortAudio library not found after I package my app with pyinstaller and execute the .exe . (Note, I do not encounter any issues when running my unpackaged app via shell. This only happens when I package it with pyinstaller). Although installing portaudio via package manager seems to work for Linux, this doesn't seem to be an option for Windows, since the sounddevice docs say, "If you are using Mac OS X or Windows, the

PortAudio library not found by sounddevice

旧巷老猫 提交于 2019-12-04 04:48:50
I have been working with a python program which uses sounddevice module to play audio. The program works fine in my office pc (running Ubuntu 17.10 ), but not in my home pc (running Linux Mint 18.3 ). It generates the following error: Traceback (most recent call last): File "...path/to/my/code.py", line 11, in <module> import sounddevice as sd File "/home/arif/anaconda3/lib/python3.6/site-packages/sounddevice.py", line 64, in <module> raise OSError('PortAudio library not found') OSError: PortAudio library not found How can I fix this problem? I could fix this by installing the portaudio