sc-controller icon indicating copy to clipboard operation
sc-controller copied to clipboard

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

Open JacekJagosz opened this issue 2 years ago • 0 comments
trafficstars

Release 1.6.0 of python-evdev includes this commit: https://github.com/gvalkov/python-evdev/commit/b5f69fba79d9b828e4b769c1188a81edde6433bb 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

JacekJagosz avatar Dec 02 '22 00:12 JacekJagosz