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):
- Clone repo
python3 -m venv venv
source venv/bin/activate
pip install .
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
- Start pantalaimon, run panctl in another terminal both inside the virtual env
After getting pantalaimon set up, attempting to run
panctlthrows the following error:I tried to replace
get_connectionwith justconnectionbut then run in toBeing 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):
python3 -m venv venvsource venv/bin/activatepip install .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 upgradematrix_nioas I mentioned in another ticket