Skip to content
This repository was archived by the owner on Apr 8, 2026. It is now read-only.
This repository was archived by the owner on Apr 8, 2026. It is now read-only.

dasbus has different, incompatible interface from dbus-python #177

Description

@RedChops

After getting pantalaimon set up, attempting to run panctl throws the following error:

$ panctl
Traceback (most recent call last):
  File "/Users/self/Projects/Vendor/pantalaimon/venv/bin/panctl", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/pantalaimon/panctl.py", line 704, in main
    panctl = PanCtl()
  File "<attrs generated init pantalaimon.panctl.PanCtl>", line 2, in __init__
    self.__attrs_post_init__()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/pantalaimon/panctl.py", line 408, in __attrs_post_init__
    self.pan_bus = self.bus.get_connection("org.pantalaimon1")
                   ^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'SessionMessageBus' object has no attribute 'get_connection'. Did you mean: 'check_connection'?

I tried to replace get_connection with just connection but then run in to

Traceback (most recent call last):
  File "/Users/self/Projects/Vendor/pantalaimon/venv/bin/panctl", line 8, in <module>
    sys.exit(main())
             ~~~~^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/pantalaimon/panctl.py", line 704, in main
    panctl = PanCtl()
  File "<attrs generated init pantalaimon.panctl.PanCtl>", line 2, in __init__
    self.__attrs_post_init__()
    ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/Users/self/Projects/Vendor/pantalaimon/venv/lib/python3.13/site-packages/pantalaimon/panctl.py", line 410, in __attrs_post_init__
    self.ctl = self.pan_bus["org.pantalaimon1.control"]
               ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'DBusConnection' object is not subscriptable

Being completely unfamiliar with dbus, I tried a couple more things to get it running again but I couldn't derive the intention behind this code so I'm not sure what the right dasbus version would be.

My steps to get this set up (on Mac):

  1. Clone repo
  2. python3 -m venv venv
  3. source venv/bin/activate
  4. pip install .
  5. pip install matrix_nio==0.25.2 PyGObject dasbus <- For whatever reason neither PyGObject nor dasbus are installed automatically, I have to install them manually here. I also have to manually upgrade matrix_nio as I mentioned in another ticket
  6. Start pantalaimon, run panctl in another terminal both inside the virtual env

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions