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

Import Error: StatusNotifier #350

Closed
cr1ogen opened this issue Jun 3, 2024 · 6 comments · Fixed by #351
Closed

Import Error: StatusNotifier #350

cr1ogen opened this issue Jun 3, 2024 · 6 comments · Fixed by #351

Comments

@cr1ogen
Copy link

cr1ogen commented Jun 3, 2024

The widget had this same error as in Qtile qtile/qtile#4856, but with the fix of this bug, it now gives an error in this one.

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/dist-packages/qtile_extras/widget/statusnotifier.py", line 44, in attach_menu
    self.is_context_menu = await self.item.get_item_is_menu()
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/cr1ogen/.local/lib/python3.11/site-packages/dbus_next/aio/proxy_object.py", line 118, in property_getter
    BaseProxyInterface._check_method_return(msg, 'v')
  File "/home/cr1ogen/.local/lib/python3.11/site-packages/dbus_next/proxy_object.py", line 62, in _check_method_return
    raise DBusError._from_message(msg)
dbus_next.errors.DBusError: The name :1.45 was not provided by any .service files
2024-06-03 15:45:07,208 WARNING libqtile base.py:__getattr__():L271 Deprecation Warning: commands exposed via IPC no longer use the 'cmd_' prefix. Please replace 'cmd_spawn' with 'spawn' in your code.
2024-06-03 15:45:09,240 WARNING libqtile lifecycle.py:_atexit():L37 Qtile will now terminate
2024-06-03 15:45:16,994 WARNING libqtile __init__.py:import_class():L108 Unmet dependencies for 'qtile_extras.widget.statusnotifier.StatusNotifier': cannot import name 'StatusNotifierItem' from 'libqtile.widget.statusnotifier' (/usr/local/lib/python3.11/dist-packages/libqtile/widget/statusnotifier.py)```
@elParaguayo
Copy link
Owner

Ah yeah. I moved some code around. Will fix shortly.

elParaguayo added a commit that referenced this issue Jun 3, 2024
A recent commit to qtile moved some code to different folders. We need
to update the imports here to match.

Closes #350
@elParaguayo
Copy link
Owner

#351 should fix this.

@cr1ogen
Copy link
Author

cr1ogen commented Jun 3, 2024

#351 should fix this.

Works for me. Thank you

@cr1ogen
Copy link
Author

cr1ogen commented Jun 3, 2024

You can close if you want

@elParaguayo
Copy link
Owner

It will close automatically when the PR is merged.

@cr1ogen
Copy link
Author

cr1ogen commented Jun 3, 2024

Ok, thanks

elParaguayo added a commit that referenced this issue Jun 4, 2024
A recent commit to qtile moved some code to different folders. We need
to update the imports here to match.

Closes #350
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

Successfully merging a pull request may close this issue.

2 participants