GrandOrgue / OdfEdit

A tool for GrandOrgue ODF edition, and Hauptwerk to GrandOrgue ODF conversion.
GNU General Public License v3.0
9 stars 1 forks source link

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

Closed raimondl61 closed 9 months ago

raimondl61 commented 9 months ago

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 execmodule 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 commented 9 months ago

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 commented 9 months ago

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

raimondl61 commented 9 months ago

Hi Eric,

The first answer soved my problem. Thanks a lot!!!

On 03/02/24 16:46, Eric Turpault @.***> wrote:

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 https://askubuntu.com/questions/736238/how-do-i-install-and-setup-the-environment-for-using-portaudio

— Reply to this email directly, view it on GitHub https://github.com/GrandOrgue/OdfEdit/issues/42#issuecomment-1925363972, or unsubscribe https://github.com/notifications/unsubscribe-auth/BF3HAB7XKOVXVX2YDD5KJG3YRZLWNAVCNFSM6AAAAABCYDS5KSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVGM3DGOJXGI. You are receiving this because you authored the thread.Message ID: @.***>

jason-barba commented 9 months ago

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

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

I must have gone astray somewhere.

eturpault commented 9 months ago

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 commented 9 months ago

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

Is there a binary for Ubuntu?

eturpault commented 9 months ago

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 commented 9 months ago

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

eturpault commented 9 months ago

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 commented 9 months ago

Thanks for advice. Back when I have tried that.

jason-barba commented 9 months ago

Success! Thansk a lot.