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

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

Open
CS-RGRobotix opened this issue Dec 4, 2021 · 1 comment

Comments

@CS-RGRobotix
Copy link

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(...)     
@alberto1995
Copy link

I have the same problem

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

No branches or pull requests

2 participants