Problems with jack on pyo after Debian upgrading

46 views
Skip to first unread message

dennis

unread,
Jan 28, 2024, 4:18:16 PM1/28/24
to pyo-discuss
Hi,

I upgraded from Debian 11 to 12 and I didn't think that would change my settings. I have sound with jack everywhere except on Pyo. When I run my pyo program (e.g. a simple sine from the pyo examples ) I get:

=== Output log of process "02-sine-tone.py", launched: "28 Jan 2024 21:58:51" ===
Pyo error: Pyo built without Jack support
Pyo error:
Server not booted.
Traceback (most recent call last):
  File "/home/dennis/.epyo/epyo_tempfile.py", line 21, in <module>
    a = Sine().out()
        ^^^^^^
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/generators.py", line 60, in __init__
    PyoObject.__init__(self, mul, add)
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/_core.py", line 1218, in __init__
    PyoObjectBase.__init__(self)
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/_core.py", line 894, in __init__
    raise PyoServerStateException("The Server must be booted before creating any audio object.")
pyo.lib._core.PyoServerStateException: The Server must be booted before creating any audio object.

It says the server is not booted but it is in the file, so I don't understand.
Do you have any hint to help ?

Tiago Bortoletto Vaz

unread,
Jan 28, 2024, 8:04:43 PM1/28/24
to pyo-d...@googlegroups.com
Hi, it says your pyo wasn't built with jack support. Did it work with jack
before the upgrade?

By the way, if you have no special reason for a locally-built pyo, you can
simply use the official Debian package:

sudo apt install python3-pyo

Pyo 1.0.4 is in Debian stable (bookworm). If you want 1.0.5, just add the
testing (trixie) suite to your repositories list.

Bests,

--
Tiago Vaz
https://tvaz.cc
> --
> You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pyo-discuss/e9c96b7b-c40f-4085-9d4e-47ba24985e3cn%40googlegroups.com.

Olivier Bélanger

unread,
Jan 28, 2024, 10:47:44 PM1/28/24
to pyo-d...@googlegroups.com
Hi Dennis,

How did you install pyo? Debian package, pip, built locally?

If you install with pip, I'd suggest removing ~/.pyo folder, which contains distributed versions of asound and jack lib (with symlinks fixed at runtime, a finicky hack to allow building manylinux wheel for pyo), and then re-import pyo in a fresh interpreter. I think it should just link fine with the updated libs of your distro.

Tiago, when you package pyo for debian, do you just remove the script _linux_wheel_fix_symlinks.py?

Olivier


Tiago Bortoletto Vaz

unread,
Jan 28, 2024, 11:41:15 PM1/28/24
to pyo-d...@googlegroups.com
Hi Olivier,

On Sun, Jan 28, 2024 at 10:47:28PM -0500, Olivier Bélanger wrote:
> Hi Dennis,
>
> How did you install pyo? Debian package, pip, built locally?
>
> If you install with pip, I'd suggest removing ~/.pyo folder, which contains
> distributed versions of asound and jack lib (with symlinks fixed at
> runtime, a finicky hack to allow building manylinux wheel for pyo), and
> then re-import pyo in a fresh interpreter. I think it should just link fine
> with the updated libs of your distro.
>
> Tiago, when you package pyo for debian, do you just remove the script
> _linux_wheel_fix_symlinks.py?

No, I don't remove it. It's been working fine so far (I mean, in my own
machine, and also I've got no bugs reported on this).

tvaz@x1:~$ dpkg -L python3-pyo |grep wheel
/usr/lib/python3/dist-packages/pyo/_linux_wheel_fix_symlinks.py

tvaz@x1:~$ ls ~/.pyo/3.7_64/libs/ -l
lrwxrwxrwx 1 tvaz tvaz 44 Jan 24 2020 libasound-fb332ab3.so.2.0.0 -> /usr/lib/x86_64-linux-gnu/libasound.so.2.0.0
lrwxrwxrwx 1 tvaz tvaz 38 Jan 24 2020 libjack-07a61c7b.so.0.1.0 -> /usr/lib/x86_64-linux-gnu/libjack.so.0

But let me know if you think that something should be changed in the package.

dennis

unread,
Jan 29, 2024, 4:26:39 AM1/29/24
to pyo-discuss
@Olivier: I installed pyo with pip yes. So I deleted the /.pyo folder. When re-opening it in my venv it should work ?  Because it doesn't work for now.

@Tiago: I'm used to work with virtual environnement so I don't want to change.

thanks for helping

dennis

unread,
Jan 31, 2024, 9:02:55 AM1/31/24
to pyo-discuss

I have the same error after removing the ./pyo folder.

So if I understand there is interferences with old pyo sources from my pc ? Would it be worth it to clean all pyo files and re-install it ?

dennis

unread,
Feb 20, 2024, 3:40:19 AM2/20/24
to pyo-discuss
I deleted pyo manually and try to re-install it with the Debian package but I have an error while launching epyo, it returns me:

bash: /home/dennis/.local/bin/epyo: cannot execute: required file not found

Someone does know which file exactly is this about ?

thx,

Dennis

Alexandros Drymonitis

unread,
Feb 20, 2024, 3:45:22 AM2/20/24
to pyo-d...@googlegroups.com

It's the epyo script. E-Pyo is written in Python, so, to launch the editor, you need this script. I have compiled Pyo from sources, and the epyo file is located in /usr/local/bin. I created an epyo.desktop file and put it in /usr/share/applications so I can launch E-Pyo by clicking on its icon. If you have or can fine the epyo script, then it should be easy to run it.

--
You received this message because you are subscribed to the Google Groups "pyo-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pyo-discuss...@googlegroups.com.

dennis

unread,
Feb 20, 2024, 4:08:26 AM2/20/24
to pyo-discuss

Yes that's what I guessed but I just want to know what this file is. I have all epyo files in my python packages folder so I guess it's another file ?

Alexandros Drymonitis

unread,
Feb 20, 2024, 4:10:31 AM2/20/24
to pyo-d...@googlegroups.com

The file that I have and that gets called whenever I click on the E-Pyo icon, is called epyo and it is in /usr/local/bin. Here's my epyo.desktop file that I've put in /usr/share/applications:

```
[Desktop Entry]
Name=Epyo
Exec=/usr/local/bin/epyo
Icon=/home/alex/Applications/pyo/icon/E-PyoIcon.webp
Type=Application
Terminal=false
Categories=Multimedia;
X-GNOME-SingleWindow=true
```

dennis

unread,
Feb 20, 2024, 7:26:17 AM2/20/24
to pyo-discuss
Ok, it seems that it's quite the mess in my computer. I finally found epyo in home/user/.local/bin but it still doesn't launch.
I checked the epyo file you spoke about which is in usr/local/bin and when I ask for informations it returns me:

type epyo
epyo is hashed (/home/dennis/.local/bin/epyo)

It seems to link to the first location.

So I'm not clear. Is the .local folder a location for the virtual envirronement specifically ?

dennis

unread,
Feb 26, 2024, 9:51:37 AM2/26/24
to pyo-discuss
I uninstall pyo and deleted all pyo files on my computer, reinstalled it, and back again with the same error with audio='jack':

=== Output log of process "02-sine-tone.py", launched: "26 Feb 2024 15:28:29" ===

Pyo error: Pyo built without Jack support
Pyo error:
Server not booted.
Traceback (most recent call last):
  File "/home/dennis/.epyo/epyo_tempfile.py", line 21, in <module>
    a = Sine().out()
        ^^^^^^
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/generators.py", line 60, in __init__
    PyoObject.__init__(self, mul, add)
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/_core.py", line 1218, in __init__
    PyoObjectBase.__init__(self)
  File "/home/dennis/.local/lib/python3.11/site-packages/pyo/lib/_core.py", line 894, in __init__
    raise PyoServerStateException("The Server must be booted before creating any audio object.")
pyo.lib._core.PyoServerStateException: The Server must be booted before creating any audio object.

In my terminal, it tells me:

ALSA lib confmisc.c:855:(parse_card) cannot find card '0'
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_card_inum returned error: No such file or directory
ALSA lib confmisc.c:422:(snd_func_concat) error evaluating strings
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1334:(snd_func_refer) error evaluating name
ALSA lib conf.c:5180:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:5703:(snd_config_expand) Evaluate error: No such file or directory

Beside Jack works fine...

dennis

unread,
Feb 27, 2024, 5:10:33 AM2/27/24
to pyo-discuss
Problem solved !

After struggling with pip installation, global installation, I decided to compile it myself with the jack support flag. It works fine now !
Reply all
Reply to author
Forward
0 new messages