You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tl;Dr: ImportError: cannot import name 'Receiver' from 'logitech_receiver' (/home/plex/.local/lib/python3.10/site-packages/logitech_receiver/__init__.py) when running the thing, but installation says success.
% m720-config
Traceback (most recent call last):
File "/home/plex/.local/bin/m720-config", line 33, in <module>
sys.exit(load_entry_point('m720-config', 'console_scripts', 'm720-config')())
File "/home/plex/.local/bin/m720-config", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/home/plex/Dokumente/code/py/logitech-m720-config/m720_config/__init__.py", line 21, in <module>
from logitech_receiver import Receiver
ImportError: cannot import name 'Receiver' from 'logitech_receiver' (/home/plex/.local/lib/python3.10/site-packages/logitech_receiver/__init__.py)
There is a receiver module in logitech_receiver, and using from logitech_receiver.receiver import Receiver brings us a bit farther:
% m720-config
rules cannot access modifier keys in Wayland, accessing process only works on GNOME with Solaar Gnome extension installed
### CURRENTLY CONNECTED DEVICES ###
path vendor_id product_id serial release manufacturer product interface driver bus_id isDevice
/dev/hidraw10 046D C52B None None None 2 logitech-djreceiver 3 None
Traceback (most recent call last):
File "/home/plex/.local/bin/m720-config", line 8, in <module>
sys.exit(main())
File "/home/plex/.local/lib/python3.10/site-packages/m720_config/__init__.py", line 156, in main
buttons = SpecialKeysMseButtons ()
File "/home/plex/.local/lib/python3.10/site-packages/m720_config/__init__.py", line 36, in __init__
self.receiver = Receiver.open (device_info)
AttributeError: type object 'Receiver' has no attribute 'open'
But still not to a functional program. Indeed, I could not find the open method in logitech_receiver.
Tl;Dr:
ImportError: cannot import name 'Receiver' from 'logitech_receiver' (/home/plex/.local/lib/python3.10/site-packages/logitech_receiver/__init__.py)
when running the thing, but installation says success.Installation went successfully like this:
BUT
There is a
receiver
module inlogitech_receiver
, and usingfrom logitech_receiver.receiver import Receiver
brings us a bit farther:But still not to a functional program. Indeed, I could not find the
open
method inlogitech_receiver
.Additional Information
The text was updated successfully, but these errors were encountered: