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

After update 0.6.3 error installing on Raspbian Jessie #63

Closed
meguia opened this issue Oct 7, 2016 · 1 comment
Closed

After update 0.6.3 error installing on Raspbian Jessie #63

meguia opened this issue Oct 7, 2016 · 1 comment

Comments

@meguia
Copy link

@meguia meguia commented Oct 7, 2016

Using updated Raspbian Jessie with all the dependencies installed, now when I try to install with pip (or pip3)
sudo pip install evdev
Then when building 'evdev._ecodes' extension I get the following error:
In file included from /usr/include/python2.7/Python.h:126:0, from evdev/ecodes.c:2: evdev/ecodes.c: In function ‘moduleinit’: evdev/ecodes.c:69:29: error: ‘BUS_RMI’ undeclared (first use in this function) PyModule_AddIntMacro(m, BUS_RMI);

Thanks in advance!

@gvalkov

This comment has been minimized.

Copy link
Owner

@gvalkov gvalkov commented Oct 7, 2016

Hi and thank you for reporting this 👍

I just pushed 0.6.4 with a fix for this. I had failed to account for an interaction between the build_ecodes command introduced in 0.6.3 and the fact that ecodes.c was part of the source distribution. Long story short, the ecodes.c source file was not being re-generated at install time and the bundled one was built against a kernel version newer than the one in raspbian jessie.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.