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

comitup with newest raspios Bookworm fails (Fix referenced) #234

Closed
falkyre opened this issue Oct 12, 2023 · 10 comments
Closed

comitup with newest raspios Bookworm fails (Fix referenced) #234

falkyre opened this issue Oct 12, 2023 · 10 comments
Labels

Comments

@falkyre
Copy link

falkyre commented Oct 12, 2023

I'm trying to use comitup on the just released RaspiOS Bookworm lite (official release October 10) and I am getting the following error:

Traceback (most recent call last):
File "/usr/sbin/comitup", line 5, in
from comitup.comitup import main
File "/usr/share/comitup/comitup/comitup.py", line 22, in
from comitup import cdns # noqa
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/share/comitup/comitup/cdns.py", line 14, in
from comitup import modemgr
File "/usr/share/comitup/comitup/modemgr.py", line 16, in
from comitup import config, nm
File "/usr/share/comitup/comitup/nm.py", line 24, in
import NetworkManager as nm
File "/usr/lib/python3/dist-packages/NetworkManager.py", line 773, in
NetworkManager = NetworkManager()
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/NetworkManager.py", line 251, in new
SignalDispatcher.listen_for_restarts()
File "/usr/lib/python3/dist-packages/NetworkManager.py", line 43, in listen_for_restarts
dbus.SystemBus().add_signal_receiver(self.handle_restart, 'NameOwnerChanged', 'org.freedesktop.DBus')
^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 192, in new
return Bus.new(cls, Bus.TYPE_SYSTEM, mainloop=mainloop,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/_dbus.py", line 99, in new
bus = BusConnection.new(subclass, bus_type, mainloop=mainloop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/dbus/bus.py", line 120, in new
bus = cls._new_for_bus(address_or_type, mainloop=mainloop)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /run/dbus/system_bus_socket: No such file or directory

KeyError: dbus.UInt32(32, variant_level=1)

Not sure what's changed from Bullseye or how to fix it but I figured I'd let you know. I'm seeing the same error on one of my plain Debian Bookworm VMs as well.

@davesteele davesteele added the bug label Oct 12, 2023
@davesteele
Copy link
Owner

Yup. Debian 12 (Bookworm) is incompatible with the required python-networkmanager, which is no longer maintained. I'm looking into replacing it.

@falkyre
Copy link
Author

falkyre commented Oct 12, 2023

That's what I thought. I'm hoping it's not a massive rewrite as your app has become a key bit to my image creation. I'll stick with Bullseye for now and hope you can get things worked out. I'll leave this open in case anyone else wanders this way for the same reason.

@Ataraxiall
Copy link

Yup. Debian 12 (Bookworm) is incompatible with the required python-networkmanager, which is no longer maintained. I'm looking into replacing it.

maybe this can be a option https://github.com/python-sdbus/python-sdbus-networkmanager

@davesteele
Copy link
Owner

I'm hoping it's not a massive rewrite

It is, but I've been interested in reworking it with asyncio.

@Pupwiz
Copy link

Pupwiz commented Nov 12, 2023

any progress? I would like to move some of my portable debian unit to a newer release.
I would like to help but not nearly smart enough to work on this.

@davesteele
Copy link
Owner

I'm doing a pretty-much full rewrite in async. It will happen, but is probably a couple months out.

@ampledata
Copy link

I wouldn't discourage your work to add Async, but in the interim I've patched python-networkmanager to fix this Loopback/32 bug:

https://github.com/snstac/python-networkmanager

@Pupwiz
Copy link

Pupwiz commented Jan 7, 2024

Static hostname: zimaboard
Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-17-amd64
Architecture: x86-64
Hardware Vendor: IceWhale Technology Co.,Ltd.
Hardware Model: ZimaBoard 832
Firmware Version: 5.12

Tested and working with patch networkmanager.
Much appreciated ampledata
systems update to latest bookworm and no issues with it working now

Thanks again

@davesteele
Copy link
Owner

davesteele commented Jan 8, 2024

python3-networkmanager v2.2-3 includes the patch, as well as a general fix for future unknown device types. It is available in the Comitup repository.

The Comitup Image, containing the fix, is now based on the latest release of Pi OS, Bookworm.

Leaving this open since it likely won't make it to Pi OS Bookworm.

@davesteele davesteele changed the title comitup with newest raspios Bookworm fails comitup with newest raspios Bookworm fails (Fix referenced) Jan 8, 2024
@Pupwiz
Copy link

Pupwiz commented Jan 8, 2024

Thanks davesteel. noticed during some maintenance on portable server that it did pull the latest deb package and installed. Over writting the patched version without issues.
Thanks again.

Steve

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

No branches or pull requests

5 participants