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

Newest release of python-evdev breaks the deamon - no more python2 compatibility #702

Open
JacekJagosz opened this issue Dec 2, 2022 · 0 comments

Comments

@JacekJagosz
Copy link

Release 1.6.0 of python-evdev includes this commit: gvalkov/python-evdev@b5f69fb that removes python2 compatibility.
This means the daemon will fail to launch:

scc-daemon debug
D SCCDaemon     Starting SCCDaemon...
D SCCDaemon     Initializing drivers...
Traceback (most recent call last):
  File "/usr/bin/scc-daemon", line 36, in <module>
    main()
  File "/usr/bin/scc-daemon", line 32, in main
    daemon.debug()
  File "/usr/lib/python2.7/site-packages/scc/sccdaemon.py", line 1097, in debug
    self.run()
  File "/usr/lib/python2.7/site-packages/scc/sccdaemon.py", line 641, in run
    self.init_drivers()
  File "/usr/lib/python2.7/site-packages/scc/sccdaemon.py", line 87, in init_drivers
    mod = getattr(__import__('scc.drivers.%s' % (modname,)).drivers, modname)
  File "/usr/lib/python2.7/site-packages/scc/drivers/ds4drv.py", line 8, in <module>
    from scc.drivers.hiddrv import BUTTON_COUNT, ButtonData, AxisType, AxisData
  File "/usr/lib/python2.7/site-packages/scc/drivers/hiddrv.py", line 14, in <module>
    from scc.drivers.evdevdrv import FIRST_BUTTON, TRIGGERS, parse_axis
  File "/usr/lib/python2.7/site-packages/scc/drivers/evdevdrv.py", line 19, in <module>
    import evdev
  File "/usr/lib/python2.7/site-packages/evdev/__init__.py", line 7, in <module>
    from evdev.uinput import UInput, UInputError
  File "/usr/lib/python2.7/site-packages/evdev/uinput.py", line 37
    def from_device(cls, *devices, filtered_types=(ecodes.EV_SYN, ecodes.EV_FF), **kwargs):
                                                ^
SyntaxError: invalid syntax
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

1 participant