• cannot import SafeConfigParser

    From Piotr =?utf-8?Q?O=C5=BCarowski?=@21:1/5 to All on Thu Jul 24 18:10:01 2025
    Package: voctomix-gui
    Version: 1.3-6
    Severity: serious
    File: /usr/bin/voctogui

    Hi

    Trying to start voctogui results in a traceback:

    | $ voctogui
    | /usr/bin/voctogui:30: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
    | GObject.threads_init()
    | Traceback (most recent call last):
    | File "/usr/bin/voctogui", line 204, in <module>
    | main()
    | ~~~~^^
    | File "/usr/bin/voctogui", line 151, in main
    | from lib import config
    | File "/usr/share/voctomix/voctogui/lib/config.py", line 3, in <module>
    | from configparser import SafeConfigParser
    | ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib/python3.13/configparser.py). Did you mean: 'RawConfigParser'?

    and if I change SafeConfigParser to ConfigParser (quick workaround,
    dunno if that's the right fix), I get:

    | /usr/bin/voctogui:30: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
    | GObject.threads_init()
    | Traceback (most recent call last):
    | File "/usr/bin/voctogui", line 204, in <module>
    | main()
    | ~~~~^^
    | File "/usr/bin/voctogui", line 158, in main
    | Connection.establish(
    | ~~~~~~~~~~~~~~~~~~~~^
    | Args.host if Args.host else Config.get('server', 'host')
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | )
    | ^
    | File "/usr/share/voctomix/voctogui/lib/connection.py", line 19, in establish
    | conn = socket.create_connection((host, port))
    | File "/usr/lib/python3.13/socket.py", line 864, in create_connection
    | raise exceptions[0]
    | File "/usr/lib/python3.13/socket.py", line 849, in create_connection
    | sock.connect(sa)
    | ~~~~~~~~~~~~^^^^
    | ConnectionRefusedError: [Errno 111] Connection refused

    I guessed it needs some kind of server (more meaningful error message
    would be nice) and started `voctocore` (after I made similar change in /usr/share/voctomix/voctocore/lib/config.py)

    but then I get:

    | /usr/bin/voctogui:30: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
    | GObject.threads_init()
    | Traceback (most recent call last):
    | File "/usr/bin/voctogui", line 204, in <module>
    | main()
    | ~~~~^^
    | File "/usr/bin/voctogui", line 195, in main
    | voctogui = Voctogui()
    | File "/usr/bin/voctogui", line 102, in __init__
    | self.ui.setup()
    | ~~~~~~~~~~~~~^^
    | File "/usr/share/voctomix/voctogui/lib/ui.py", line 66, in setup
    | self.main_video_display = VideoDisplay(
    | ~~~~~~~~~~~~^
    | drawing_area,
    | ^^^^^^^^^^^^^
    | ...<2 lines>...
    | level_callback=self.audio_level_display.level_callback
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | )
    | ^
    | File "/usr/share/voctomix/voctogui/lib/videodisplay.py", line 151, in __init__
    | self.xid = self.drawing_area.get_property('window').get_xid()
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    | AttributeError: 'GdkWaylandWindow' object has no attribute 'get_xid'. Did you mean: 'get_width'?


    -- System Information:
    Debian Release: 13.0
    APT prefers unstable
    APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
    Architecture: amd64 (x86_64)
    Foreign Architectures: i386

    Kernel: Linux 6.12.33+deb13-amd64 (SMP w/24 CPU threads; PREEMPT)
    Locale: LANG=pl_PL.UTF-8, LC_CTYPE=pl_PL.UTF-8 (charmap=UTF-8), LANGUAGE not set
    Shell: /bin/sh linked to /usr/bin/dash
    Init: systemd (via /run/systemd/system)
    LSM: AppArmor: enabled

    Versions of packages voctomix-gui depends on:
    ii gir1.2-gst-plugins-base-1.0 1.26.2-1
    ii gir1.2-gstreamer-1.0 1.26.2-2
    ii gir1.2-gtk-3.0 3.24.49-3
    ii gstreamer1.0-alsa 1.26.2-1
    ii gstreamer1.0-plugins-bad 1.26.2-3
    ii gstreamer1.0-plugins-base 1.26.2-1
    ii gstreamer1.0-plugins-good 1.26.2-1
    ii gstreamer1.0-plugins-ugly 1.26.3-4
    ii gstreamer1.0-tools 1.26.2-2
    ii libgstreamer1.0-0 1.26.2-2
    ii python3 3.13.5-1
    ii python3-gi 3.50.0-4+b1
    ii python3-gi-cairo 3.50.0-4+b1

    Versions of packages voctomix-gui recommends:
    ii gstreamer1.0-gl 1.26.2-1

    Versions of packages voctomix-gui suggests:
    ii gstreamer1.0-libav 1.26.2-1

    -- no debconf information

    -----BEGIN PGP SIGNATURE-----

    iQIzBAABCgAdFiEEHS+omFjar2IXhi33rvbxoqdFdkUFAmiCWRUACgkQrvbxoqdF dkV1rBAAixxB7x3g7s/yVxhl+NOZ4HN2f1c8hl+wrDuPM9LKs/PCRDhcimjHuxIz 5LzWD2zN9quVsLMLnT+mGbexvrdTS3pkBUba2dFWg57bGn9biycIVpn6Ab/C7bny 8jKA+WPuhkNRernm/MWKIpVX+xo71GYBCQJmQ4ps0abRgKcJbvWlLPv7VOpgoQFR /5s1kScYdCSngiV1mqtaCqmRjjao3xKpbQFiyI5jCVYfYeBcSiMzabj3nkzBdwHM y4HfVjy7/4NYNfxnA2i41KoFQqquUKzJCm10jlPVqEEu8vWi6hwbDKdtx6ccnyEa f+Hw4tiDMyVeIaPuz3sR/QpjMhM8z137I/MaUZ2cSmAZRz530tspFk2OExFlW/EM 7koH9VcwdGD8YM24+bCLLrCR8il/2uh1mspWj9Bf3AclwFlwjeFtu6XsFP2rUzO9 iHyVsXFA7NNFImtGdoFKrdjY6Y7QOsynrcJe5Ay/5Zrq5fbM1IgbbuXvYGFzRUFj b4NCuWlu4Y5kxL6EfH0u6+XbVTOPj5nl3aKJ7E0/RR3DgbiuCaZHQgRP4tVVzx3Q 7DDKADj7VtSqgvyCChDNlnz8yr8uh4o0x7ikPpRSLq/iu9GpRqt9P8+2+j1jvH+y nYy8CYThXggjLzxsu79SioHzzpGWiRM1PqPsAXGMv/8IzSl77Ok=
    =L6W0
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)