Closed r8io closed 5 months ago
Thanks @r8io! Could you let me know if first running sudo apt install python3-pyaudio
and then pip install sbapp -U
(or pipx upgrade sbapp
) will resolve the installation problem?
Thank you for the quick reply :-) Unfortunately it does not resolve the issue. I did sudo apt install python3-pyaudio
and pipx install sbapp
(not upgrade
because I uninstalled sbapp version 0.8.5 before). And still get the following error message:
r8io@xx: $ pipx install sbapp
Fatal error from pip prevented installation. Full pip output in file:
/home/r8io/.local/pipx/logs/cmd_2024-06-07_14.46.11_pip_errors.log
pip failed to build package:
pyaudio
Some possibly relevant errors from pip install:
error: subprocess-exited-with-error
src/pyaudio/device_api.c:9:10: fatal error: portaudio.h: No such file or directory
error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
Error installing sbapp.
Thanks. Can confirm this behaviour on a fresh install of Debian 12.
It seems that the problem here is that pipx
cannot use Python dist-packages
, even though they are available on the system (ie., installed via the system package manager). Since the pyaudio
package has no pre-built binary distributions available via the PyPi repositories, pipx
fails to resolve that dependency, even though it is actually installed on the system.
Why pipx
acts like this, I have no idea about. I get the whole "isolated environment" thing, but not even being able to use dist-packages
is a strange choice, I think.
Either way, if you really want to use pipx
instead of just plain pip install sbapp --break-system-packages
, you just need to install the build-essential
package and PortAudio header files, then pipx
can build everything needed from source:
sudo apt install build-essential portaudio19-dev
Thanks for finding and reporting this, I'll add it to the readme. I'll close this as resolved, but feel free to add any additional comments or notes.
Now it works! I already sent some voice messages. Amazing stuff! Thank you for explaining what went wrong. I went the pipx
route and had to install portaudio19-dev
(portaudio19-dec
was not available).
Just to recap. To install Sideband 0.9.0
on Debian 12
with pipx
I had to:
sudo apt install build-essential python3-pyaudio portaudio19-dev
pipx sbapp
Hah, sorry for the -dec
, that was just me typing too fast and not noticing the typo! Glad you got it working! And thanks for reporting it - good to have it documented so others don't run into the same issue.
Hi Marc, Sideband 0.9.0 is giving me an error when trying to upgrade from version 0.8.5 on Debian 12. Uninstall/install doesn't help either. On Android everything appears to be working and I am able to record audio messages.
System information
Upgrade from Sideband 0.8.5
Install
Log file