Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App not working in version 2.9 after adoption of sounddevice #42

Closed
raimondl61 opened this issue Feb 3, 2024 · 11 comments
Closed

App not working in version 2.9 after adoption of sounddevice #42

raimondl61 opened this issue Feb 3, 2024 · 11 comments

Comments

@raimondl61
Copy link

Hi,
I'm working on Ubuntu 22.04 LTS.
I've installed "pip" via "sudo apt install python3-pip"
I've installed "sounddevice" via "python3 -m pip install sounddevice"
The app still not working with the following error:

Traceback (most recent call last):
File "OdfEdit.py", line 165, in
import sounddevice as sd # install with : pip install sounddevice
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module
File "sounddevice.py", line 71, in
OSError: PortAudio library not found
[5572] Failed to execute script 'OdfEdit' due to unhandled exception!

Could you please help me to make the app working?
Many thanks

@eturpault
Copy link
Collaborator

eturpault commented Feb 3, 2024

I tested OdfEdit v2.9 in Ubuntu 22.04 LTS as well and it works.
It seems that you have to install PortAudio library on your Linux machine, try this command :

apt-get install portaudio19-dev python-all-dev

as indicated here : https://github.com/GoogleCloudPlatform/python-docs-samples/blob/main/scripts/readme-gen/templates/install_portaudio.tmpl.rst

@eturpault
Copy link
Collaborator

If it does not work, try this :

sudo apt-get install libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0
sudo apt-get install ffmpeg libav-tools

found here : https://askubuntu.com/questions/736238/how-do-i-install-and-setup-the-environment-for-using-portaudio

@eturpault eturpault changed the title App not working il versione 2.9 after adoption of sounddevice App not working in version 2.9 after adoption of sounddevice Feb 3, 2024
@raimondl61
Copy link
Author

raimondl61 commented Feb 3, 2024 via email

@jason-barba
Copy link

I go on installing and installing and installing packets...

Now I seam to miss ./resources/OdfEdit.png

I must have gone astray somewhere.

@eturpault
Copy link
Collaborator

Are you executing OdfEdit.py with Python engine or with the binary of OdfEdit ?
In the first case, you have to recover the full source code in the assets of the release page : https://github.com/GrandOrgue/OdfEdit/archive/refs/tags/v2.9.zip

@jason-barba
Copy link

jason-barba commented Feb 15, 2024

The first, i.e. python 3 ./OdfEdit.py

Is there a binary for Ubuntu?

@eturpault
Copy link
Collaborator

Yes there is binary for Linux (tested in Ubuntu), it is available in the assets of the release page https://github.com/GrandOrgue/OdfEdit/releases/tag/v2.9, it is the file OdfEdit-2.9-linux.zip

@jason-barba
Copy link

OK :-)
Ubuntu for dummies question: How do install the Linux binary? And what is the execute command?

@eturpault
Copy link
Collaborator

eturpault commented Feb 15, 2024

Just unzip the unique binary file OdfEdit which is inside the archive OdfEdit-2.9-linux.zip, then double-click on it in the file explorer to execute it.
If it does not want to run, right click on the OdfEdit binary file, in the properties menu there is an option to allow the execution of the file as program (I don't have Ubuntu running in front of me, I don't remember the name of the option).
Have a look at this page https://www.itprotoday.com/linux/mastering-file-permissions-linux#close-modal in the chapter "Modifying File Permissions in the GUI"

@jason-barba
Copy link

Thanks for advice. Back when I have tried that.

@jason-barba
Copy link

Success! Thansk a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants