Open olives-2 opened 4 months ago
The error message you are encountering indicates that the sounddevice module cannot find the PortAudio library, which it relies on for audio input/output operations. To resolve this issue, you need to install the PortAudio library and ensure that your system can access it.
Here are the steps to install PortAudio on different operating systems:
Ubuntu/Debian:
sudo apt update
sudo apt install portaudio19-dev
pip install sounddevice
Fedora
sudo dnf install portaudio-devel
pip install sounddevice
macOS
If you don't have Homebrew installed, follow the instructions on Homebrew's website to install it.
brew install portaudio
pip install sounddevice
Windows
Download and install the PortAudio library from the official website: PortAudio.. Alternatively, you can use a package manager like choco (Chocolatey) to install PortAudio if it's available.
pip install sounddevice
Thank you, but I said I solved my problem by installing the mentioned apt package. However, I just noticed the sounddevice
dependency is already listed in the requirements.txt
file, but having this dependency installed didn't do anything. I had to install the .deb package from the Ubuntu repositories. We should either find a way to make PortAudio work from the pip dependency, or explicitly indicate in the documentation that the lib needs to be installed from the repositories for Ubuntu (maybe other distros as well, I didn't try it)
I followed the above steps and I'm still getting the same errors.
When launching
computerassistant
, I get this error :I fixed it by installing the
libportaudio2
package in Ubuntu 22.04. I think it would be a good idea to either install it from pip (I don't even know if this is possible) or to list it as a necessary package for Ubuntu.