Skip to content

pifi status crashes the program as does add or remove. Only changing hostname seems to work #36

@CS-RGRobotix

Description

@CS-RGRobotix

I've tried installing, uninstalling. Nada. I'm on ros melodic on a raspi 4

My output from terminal

pi@llt0001:~/pifi $ pifi status
Traceback (most recent call last):
File "/usr/local/bin/pifi", line 10, in <module>
sys.exit(main())
File "/usr/local/lib/python3.7/dist-packages/pifi/pifi.py", line 347, in main
commands[args.command](argv[1:])
File "/usr/local/lib/python3.7/dist-packages/pifi/pifi.py", line 69, in status
for ApModeDevice in nm.managedAPCapableDevices():
File "/usr/local/lib/python3.7/dist-packages/pifi/nm_helper.py", line 96, in managedAPCapableDevices
for device in managedWifiDevices(NetworkManager=NetworkManager):
File "/usr/local/lib/python3.7/dist-packages/pifi/nm_helper.py", line 85, in managedWifiDevices
for device in NetworkManager.NetworkManager.GetDevices():
File "<string>", line 3, in GetDevices
 File "/home/pi/.local/lib/python3.7/site-packages/NetworkManager.py", line 261, in proxy
self._proxy = dbus.SystemBus().get_object(self.dbus_service, self.object_path, follow_name_owner_changes=True)File "/home/pi/.local/lib/python3.7/site-packages/dbus/bus.py", line 225, in get_object
self._require_main_loop()   # we don't get the signals otherwise
RuntimeError: To make asynchronous calls, receive signals or export objects, D-Bus connections must be attached to a main loop by passing mainloop=... to the constructor or calling dbus.set_default_main_loop(...)     

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions