tuomasjjrasanen/python-uinput

setup.py doesn't generate ev.py correctly for latest kernels

j-m-harris opened this issue · 5 comments

I have the same issue. Thanks @j-m-harris for pointing out what the exact problem is. I made a pull request that should fix this in a backwards compatible manner.

Thanks for @j-m-harris for reporting this and @wkevina for fixing it!

Yay! For future people googling, here is an error message I got that I think was due to this bug:

Traceback (most recent call last):
  File "une.py", line 1, in <module>
    import uinput
  File "/Users/me/HOME/.local/lib/python2.7/site-packages/uinput/__init__.py", line 42, in <module>
    _ABS_CNT = ABS_MAX[1] + 1
NameError: name 'ABS_MAX' is not defined

Thanks Isaac!

@idupree agreed, that's the sort of error I was getting too.

@wkevina Thanks for writing the patch!