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

Pip install error, evdev/ecodes.c:706:29: error: 'ABS_RESERVED' undeclared (first use in this function) #166

Open
albertz opened this issue Oct 5, 2021 · 13 comments

Comments

@albertz
Copy link

albertz commented Oct 5, 2021

pip3 install --user evdev with Python 3.8 (via Linuxbrew) on Ubuntu 16.04:

Collecting evdev
  Using cached evdev-1.4.0.tar.gz (26 kB)
Building wheels for collected packages: evdev
  Building wheel for evdev (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: /u/zeyer/.linuxbrew/opt/[email protected]/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/var/tmp/pip-install-v6tw2uve/evdev/setup.py'"'"'; __file__='"'"'/var/tmp/pip-install-v6tw2uve/evdev/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /var/tmp/pip-wheel-9tu_20b1
       cwd: /var/tmp/pip-install-v6tw2uve/evdev/
  Complete output (46 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib.linux-x86_64-3.8
  creating build/lib.linux-x86_64-3.8/evdev
  copying evdev/events.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/__init__.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/util.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/uinput.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/device.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/eventio.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/ecodes.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/evtest.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/genecodes.py -> build/lib.linux-x86_64-3.8/evdev
  copying evdev/ff.py -> build/lib.linux-x86_64-3.8/evdev
  running build_ext
  running build_ecodes
  writing ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h)
  building 'evdev._input' extension
  creating build/temp.linux-x86_64-3.8
  creating build/temp.linux-x86_64-3.8/evdev
  gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8 -c evdev/input.c -o build/temp.linux-x86_64-3.8/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
  gcc-5 -pthread -shared -L/u/zeyer/.linuxbrew/lib build/temp.linux-x86_64-3.8/evdev/input.o -L/u/zeyer/.linuxbrew/opt/[email protected]/lib -o build/lib.linux-x86_64-3.8/evdev/_input.cpython-38-x86_64-linux-gnu.so
  building 'evdev._uinput' extension
  gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8 -c evdev/uinput.c -o build/temp.linux-x86_64-3.8/evdev/uinput.o -std=c99 -Wno-error=declaration-after-statement
  gcc-5 -pthread -shared -L/u/zeyer/.linuxbrew/lib build/temp.linux-x86_64-3.8/evdev/uinput.o -L/u/zeyer/.linuxbrew/opt/[email protected]/lib -o build/lib.linux-x86_64-3.8/evdev/_uinput.cpython-38-x86_64-linux-gnu.so
  building 'evdev._ecodes' extension
  gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8 -c evdev/ecodes.c -o build/temp.linux-x86_64-3.8/evdev/ecodes.o -std=c99 -Wno-error=declaration-after-statement
  In file included from /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8/Python.h:137:0,
                   from evdev/ecodes.c:2:
  evdev/ecodes.c: In function 'moduleinit':
  evdev/ecodes.c:706:29: error: 'ABS_RESERVED' undeclared (first use in this function)
       PyModule_AddIntMacro(m, ABS_RESERVED);
                               ^
  /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8/modsupport.h:139:67: note: in definition of macro 'PyModule_AddIntMacro'                                                                                                   
   #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)                                          
                                                                     ^                                           
  evdev/ecodes.c:706:29: note: each undeclared identifier is reported only once for each function it appears in  
       PyModule_AddIntMacro(m, ABS_RESERVED);                                                                    
                               ^                                                                                 
  /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.8/modsupport.h:139:67: note: in definition of macro 'PyModule_AddIntMacro'                                                                                                   
   #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)                                          
                                                                     ^                                           
  error: command 'gcc-5' failed with exit status 1                                                               
  ----------------------------------------                                                                       
  ERROR: Failed building wheel for evdev
  Running setup.py clean for evdev
Failed to build evdev
@albertz
Copy link
Author

albertz commented Oct 7, 2021

After some brew upgrade, this problem is resolved. Unfortunately I'm not exactly sure now what package caused the problem, and what update fixed it. I saw some Linux header related updates during the brew upgrade. Maybe that was it.

Also, I still wonder how this problem could occur in the first place. As far as I understand, build_ecodes parses the Linux headers and automatically generates the C file with the codes. Then when it compiles the file, maybe it uses a different header?

@albertz
Copy link
Author

albertz commented Oct 7, 2021

Ok, strange, now I get the same error again, but for Python 3.9 (after brew upgrade updated also my Python).

@albertz
Copy link
Author

albertz commented Oct 7, 2021

I checked, my /usr/include/linux/input-event-codes.h contains the ABS_RESERVED definition.
So, I assume the C compilation then uses some different Linux headers.

@albertz
Copy link
Author

albertz commented Oct 7, 2021

So, I checked, I added -v to the GCC command to print the search dirs, and this is my output:

GNU C99 (Ubuntu 5.4.0-6ubuntu1~16.04.12) version 5.4.0 20160609 (x86_64-linux-gnu)
        compiled by GNU C version 5.4.0 20160609, GMP version 6.1.0, MPFR version 3.1.4, MPC version 1.0.3
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
ignoring nonexistent directory "/usr/local/include/x86_64-linux-gnu"
ignoring nonexistent directory "/usr/lib/gcc/x86_64-linux-gnu/5/../../../../x86_64-linux-gnu/include"
#include "..." search starts here:
#include <...> search starts here:
 /u/zeyer/.linuxbrew/include
 /u/zeyer/.linuxbrew/opt/[email protected]/include
 /u/zeyer/.linuxbrew/opt/sqlite/include
 /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.9
 /usr/lib/gcc/x86_64-linux-gnu/5/include
 /usr/local/include
 /usr/lib/gcc/x86_64-linux-gnu/5/include-fixed
 /usr/include/x86_64-linux-gnu
 /usr/include
End of search list.

And I have the file /u/zeyer/.linuxbrew/include/linux/input-event-codes.h.
So GCC will pick this file over /usr/include/linux/input-event-codes.h.
And the file /u/zeyer/.linuxbrew/include/linux/input-event-codes.h does not contain the ABS_RESERVED definition.

@albertz
Copy link
Author

albertz commented Oct 7, 2021

For reference:

lrwxrwxrwx 1 zeyer assi 48 Oct  5 13:49 /u/zeyer/.linuxbrew/include/linux -> ../Cellar/[email protected]/4.4.80/include/linux/

@albertz
Copy link
Author

albertz commented Oct 7, 2021

But anyway, I think the main problem is that build_ecodes uses a different Linux header than GCC does.

So I think there are two potential options:

  • Make sure GCC uses the same header as build_ecodes. This could be ensured by just adding -I /usr/include or so to GCC.
  • Or make sure build_ecodes uses the same headers as GCC. At some point, -I/u/zeyer/.linuxbrew/include is added to GCC anyway, so build_ecodes could check for the GCC args to find the right header.

@albertz
Copy link
Author

albertz commented Oct 7, 2021

Hm ok for some reason this can not be seen in the initial log. Here the new snippet:

  gcc-5 -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -O3 -Wall -fPIC -I/u/zeyer/.linuxbrew/include -I/u/zeyer/.linuxbrew/opt/[email protected]/include -I/u/zeyer/.linuxbrew/opt/sqlite/include -I/u/zeyer/.linuxbrew/opt/[email protected]/include/python3.9 -c evdev/ecodes.c -o build/temp.linux-x86_64-3.9/evdev/ecodes.o -std=c99 -Wno-error=declaration-after-statement                                                                                          
  In file included from /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.9/Python.h:150:0,                     
                   from evdev/ecodes.c:2:                                                                        
  evdev/ecodes.c: In function ‘moduleinit’:                                                                      
  evdev/ecodes.c:706:29: error: ‘ABS_RESERVED’ undeclared (first use in this function)                           
       PyModule_AddIntMacro(m, ABS_RESERVED);                                                                    
                               ^                                                                                 
  /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.9/modsupport.h:146:67: note: in definition of macro ‘PyModule_AddIntMacro’                                                                                                   
   #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)                                          
                                                                     ^                                           
  evdev/ecodes.c:706:29: note: each undeclared identifier is reported only once for each function it appears in  
       PyModule_AddIntMacro(m, ABS_RESERVED);                                                                    
                               ^                                                                                 
  /u/zeyer/.linuxbrew/opt/[email protected]/include/python3.9/modsupport.h:146:67: note: in definition of macro ‘PyModule_AddIntMacro’                                                                                                   
   #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)                                          
                                                                     ^                                           
  error: command '/usr/bin/gcc-5' failed with exit code 1                                                        

@albertz
Copy link
Author

albertz commented Oct 7, 2021

Note, as a temporary workaround, this could be done:

brew unlink linux-headers

@jmigual
Copy link

jmigual commented Jan 3, 2022

Note, as a temporary workaround, this could be done:

brew unlink linux-headers

I can confirm that this indeed works. My linux kernel is 5.10.60.1 (WSL2) and my homebrew linux-headers version is [email protected]. There doesn't seem to be a version of linux-headers for 5.x on homebrew right now.

@IanTrudel
Copy link

I'm also having a similar issue with CentOS 7, kernel 5.14.8, Python 3.9 (and 3.9.9). Pip fails, building from source also fails, even tried adding the include files from the kernel source (though they are indeed also in /usr/include/linux).

pip3.9 install --user evdev
/home/ian/.local/lib/python3.9/site-packages/secretstorage/dhcrypto.py:16: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
/home/ian/.local/lib/python3.9/site-packages/secretstorage/util.py:25: CryptographyDeprecationWarning: int_from_bytes is deprecated, use int.from_bytes instead
  from cryptography.utils import int_from_bytes
Collecting evdev
  Using cached evdev-1.4.0.tar.gz (26 kB)
  Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for evdev, since package 'wheel' is not installed.
Installing collected packages: evdev
  Running setup.py install for evdev ... error
  error: subprocess-exited-with-error

  × Running setup.py install for evdev did not run successfully.
  │ exit code: 1
  ╰─> [382 lines of output]
      running install
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-3.9
      creating build/lib.linux-x86_64-3.9/evdev
      copying evdev/__init__.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/device.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/ecodes.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/eventio.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/eventio_async.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/events.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/evtest.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/ff.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/genecodes.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/uinput.py -> build/lib.linux-x86_64-3.9/evdev
      copying evdev/util.py -> build/lib.linux-x86_64-3.9/evdev
      running build_ext
      running build_ecodes
      writing ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h)
      building 'evdev._input' extension
      creating build/temp.linux-x86_64-3.9
      creating build/temp.linux-x86_64-3.9/evdev
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c evdev/input.c -o build/temp.linux-x86_64-3.9/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
      gcc -pthread -shared build/temp.linux-x86_64-3.9/evdev/input.o -o build/lib.linux-x86_64-3.9/evdev/_input.cpython-39-x86_64-linux-gnu.so
      building 'evdev._uinput' extension
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c evdev/uinput.c -o build/temp.linux-x86_64-3.9/evdev/uinput.o -std=c99 -Wno-error=declaration-after-statement
      gcc -pthread -shared build/temp.linux-x86_64-3.9/evdev/uinput.o -o build/lib.linux-x86_64-3.9/evdev/_uinput.cpython-39-x86_64-linux-gnu.so
      building 'evdev._ecodes' extension
      gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/usr/local/include/python3.9 -c evdev/ecodes.c -o build/temp.linux-x86_64-3.9/evdev/ecodes.o -std=c99 -Wno-error=declaration-after-statement
      Dans le fichier inclus depuis /usr/local/include/python3.9/Python.h:137,
                       depuis evdev/ecodes.c:2:
      evdev/ecodes.c: Dans la fonction « moduleinit »:
      evdev/ecodes.c:772:29: erreur: « SYN_MAX » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « SCNiMAX » ?
        772 |     PyModule_AddIntMacro(m, SYN_MAX);
            |                             ^~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:772:29: note: chaque identificateur non déclaré est rapporté une seule fois pour chaque fonction dans laquelle il apparaît
        772 |     PyModule_AddIntMacro(m, SYN_MAX);
            |                             ^~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:773:29: erreur: « SYN_CNT » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « SND_CNT » ?
        773 |     PyModule_AddIntMacro(m, SYN_CNT);
            |                             ^~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:928:29: erreur: « KEY_ROTATE_DISPLAY » non déclaré (première utilisation dans cette fonction)
        928 |     PyModule_AddIntMacro(m, KEY_ROTATE_DISPLAY);
            |                             ^~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1015:29: erreur: « KEY_BRIGHTNESS_AUTO » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_BRIGHTNESS_ZERO » ?
       1015 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_AUTO);
            |                             ^~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1018:29: erreur: « KEY_WWAN » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_WLAN » ?
       1018 |     PyModule_AddIntMacro(m, KEY_WWAN);
            |                             ^~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1057:29: erreur: « BTN_SOUTH » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_TOUCH » ?
       1057 |     PyModule_AddIntMacro(m, BTN_SOUTH);
            |                             ^~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1059:29: erreur: « BTN_EAST » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_BASE » ?
       1059 |     PyModule_AddIntMacro(m, BTN_EAST);
            |                             ^~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1062:29: erreur: « BTN_NORTH » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_TOUCH » ?
       1062 |     PyModule_AddIntMacro(m, BTN_NORTH);
            |                             ^~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1064:29: erreur: « BTN_WEST » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_LEFT » ?
       1064 |     PyModule_AddIntMacro(m, BTN_WEST);
            |                             ^~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1116:29: erreur: « KEY_FULL_SCREEN » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_SCREEN » ?
       1116 |     PyModule_AddIntMacro(m, KEY_FULL_SCREEN);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1120:29: erreur: « KEY_ASPECT_RATIO » non déclaré (première utilisation dans cette fonction)
       1120 |     PyModule_AddIntMacro(m, KEY_ASPECT_RATIO);
            |                             ^~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1178:29: erreur: « KEY_BRIGHTNESS_TOGGLE » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_BRIGHTNESS_CYCLE » ?
       1178 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1237:29: erreur: « KEY_NUMERIC_A » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_0 » ?
       1237 |     PyModule_AddIntMacro(m, KEY_NUMERIC_A);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1238:29: erreur: « KEY_NUMERIC_B » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_0 » ?
       1238 |     PyModule_AddIntMacro(m, KEY_NUMERIC_B);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1239:29: erreur: « KEY_NUMERIC_C » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_0 » ?
       1239 |     PyModule_AddIntMacro(m, KEY_NUMERIC_C);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1240:29: erreur: « KEY_NUMERIC_D » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_0 » ?
       1240 |     PyModule_AddIntMacro(m, KEY_NUMERIC_D);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1256:29: erreur: « BTN_DPAD_UP » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_GEAR_UP » ?
       1256 |     PyModule_AddIntMacro(m, BTN_DPAD_UP);
            |                             ^~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1257:29: erreur: « BTN_DPAD_DOWN » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_GEAR_DOWN » ?
       1257 |     PyModule_AddIntMacro(m, BTN_DPAD_DOWN);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1258:29: erreur: « BTN_DPAD_LEFT » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_LEFT » ?
       1258 |     PyModule_AddIntMacro(m, BTN_DPAD_LEFT);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1259:29: erreur: « BTN_DPAD_RIGHT » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « BTN_RIGHT » ?
       1259 |     PyModule_AddIntMacro(m, BTN_DPAD_RIGHT);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1260:29: erreur: « KEY_ALS_TOGGLE » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_LIGHTS_TOGGLE » ?
       1260 |     PyModule_AddIntMacro(m, KEY_ALS_TOGGLE);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1263:29: erreur: « KEY_TASKMANAGER » non déclaré (première utilisation dans cette fonction)
       1263 |     PyModule_AddIntMacro(m, KEY_TASKMANAGER);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1264:29: erreur: « KEY_JOURNAL » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_EQUAL » ?
       1264 |     PyModule_AddIntMacro(m, KEY_JOURNAL);
            |                             ^~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1266:29: erreur: « KEY_APPSELECT » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_SELECT » ?
       1266 |     PyModule_AddIntMacro(m, KEY_APPSELECT);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1267:29: erreur: « KEY_SCREENSAVER » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_SCREENLOCK » ?
       1267 |     PyModule_AddIntMacro(m, KEY_SCREENSAVER);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1269:29: erreur: « KEY_ASSISTANT » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RESTART » ?
       1269 |     PyModule_AddIntMacro(m, KEY_ASSISTANT);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1270:29: erreur: « KEY_KBD_LAYOUT_NEXT » non déclaré (première utilisation dans cette fonction)
       1270 |     PyModule_AddIntMacro(m, KEY_KBD_LAYOUT_NEXT);
            |                             ^~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1272:29: erreur: « KEY_BRIGHTNESS_MAX » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_BRIGHTNESS_MIN » ?
       1272 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_MAX);
            |                             ^~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1273:29: erreur: « KEY_KBDINPUTASSIST_PREV » non déclaré (première utilisation dans cette fonction)
       1273 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_PREV);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1274:29: erreur: « KEY_KBDINPUTASSIST_NEXT » non déclaré (première utilisation dans cette fonction)
       1274 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_NEXT);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1275:29: erreur: « KEY_KBDINPUTASSIST_PREVGROUP » non déclaré (première utilisation dans cette fonction)
       1275 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_PREVGROUP);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1276:29: erreur: « KEY_KBDINPUTASSIST_NEXTGROUP » non déclaré (première utilisation dans cette fonction)
       1276 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_NEXTGROUP);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1277:29: erreur: « KEY_KBDINPUTASSIST_ACCEPT » non déclaré (première utilisation dans cette fonction)
       1277 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_ACCEPT);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1278:29: erreur: « KEY_KBDINPUTASSIST_CANCEL » non déclaré (première utilisation dans cette fonction)
       1278 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_CANCEL);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1279:29: erreur: « KEY_RIGHT_UP » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RIGHT » ?
       1279 |     PyModule_AddIntMacro(m, KEY_RIGHT_UP);
            |                             ^~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1280:29: erreur: « KEY_RIGHT_DOWN » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RIGHT » ?
       1280 |     PyModule_AddIntMacro(m, KEY_RIGHT_DOWN);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1281:29: erreur: « KEY_LEFT_UP » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_LEFTALT » ?
       1281 |     PyModule_AddIntMacro(m, KEY_LEFT_UP);
            |                             ^~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1282:29: erreur: « KEY_LEFT_DOWN » non déclaré (première utilisation dans cette fonction)
       1282 |     PyModule_AddIntMacro(m, KEY_LEFT_DOWN);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1283:29: erreur: « KEY_ROOT_MENU » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_ZOOMIN » ?
       1283 |     PyModule_AddIntMacro(m, KEY_ROOT_MENU);
            |                             ^~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1284:29: erreur: « KEY_MEDIA_TOP_MENU » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_MEDIA_REPEAT » ?
       1284 |     PyModule_AddIntMacro(m, KEY_MEDIA_TOP_MENU);
            |                             ^~~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1285:29: erreur: « KEY_NUMERIC_11 » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_1 » ?
       1285 |     PyModule_AddIntMacro(m, KEY_NUMERIC_11);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1286:29: erreur: « KEY_NUMERIC_12 » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_NUMERIC_1 » ?
       1286 |     PyModule_AddIntMacro(m, KEY_NUMERIC_12);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1287:29: erreur: « KEY_AUDIO_DESC » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_AUDIO » ?
       1287 |     PyModule_AddIntMacro(m, KEY_AUDIO_DESC);
            |                             ^~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1288:29: erreur: « KEY_3D_MODE » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_MODE » ?
       1288 |     PyModule_AddIntMacro(m, KEY_3D_MODE);
            |                             ^~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1289:29: erreur: « KEY_NEXT_FAVORITE » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_FAVORITES » ?
       1289 |     PyModule_AddIntMacro(m, KEY_NEXT_FAVORITE);
            |                             ^~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1290:29: erreur: « KEY_STOP_RECORD » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RECORD » ?
       1290 |     PyModule_AddIntMacro(m, KEY_STOP_RECORD);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1291:29: erreur: « KEY_PAUSE_RECORD » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_PAUSECD » ?
       1291 |     PyModule_AddIntMacro(m, KEY_PAUSE_RECORD);
            |                             ^~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1292:29: erreur: « KEY_VOD » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_DVD » ?
       1292 |     PyModule_AddIntMacro(m, KEY_VOD);
            |                             ^~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1293:29: erreur: « KEY_UNMUTE » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_MUTE » ?
       1293 |     PyModule_AddIntMacro(m, KEY_UNMUTE);
            |                             ^~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1294:29: erreur: « KEY_FASTREVERSE » non déclaré (première utilisation dans cette fonction)
       1294 |     PyModule_AddIntMacro(m, KEY_FASTREVERSE);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1295:29: erreur: « KEY_SLOWREVERSE » non déclaré (première utilisation dans cette fonction)
       1295 |     PyModule_AddIntMacro(m, KEY_SLOWREVERSE);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1296:29: erreur: « KEY_DATA » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_SAT » ?
       1296 |     PyModule_AddIntMacro(m, KEY_DATA);
            |                             ^~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1352:29: erreur: « REL_RESERVED » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RESERVED » ?
       1352 |     PyModule_AddIntMacro(m, REL_RESERVED);
            |                             ^~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1353:29: erreur: « REL_WHEEL_HI_RES » non déclaré (première utilisation dans cette fonction)
       1353 |     PyModule_AddIntMacro(m, REL_WHEEL_HI_RES);
            |                             ^~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1354:29: erreur: « REL_HWHEEL_HI_RES » non déclaré (première utilisation dans cette fonction)
       1354 |     PyModule_AddIntMacro(m, REL_HWHEEL_HI_RES);
            |                             ^~~~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1383:29: erreur: « ABS_RESERVED » non déclaré (première utilisation dans cette fonction); vouliez-vous utiliser « KEY_RESERVED » ?
       1383 |     PyModule_AddIntMacro(m, ABS_RESERVED);
            |                             ^~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:1417:29: erreur: « SW_PEN_INSERTED » non déclaré (première utilisation dans cette fonction)
       1417 |     PyModule_AddIntMacro(m, SW_PEN_INSERTED);
            |                             ^~~~~~~~~~~~~~~
      /usr/local/include/python3.9/modsupport.h:146:67: note: dans la définition de la macro « PyModule_AddIntMacro »
        146 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      error: command '/usr/bin/gcc' failed with exit code 1
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> evdev

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

@gvalkov
Copy link
Owner

gvalkov commented Jul 18, 2022

@IanTrudel, I couldn't reproduce this - CentOS 7, Python 3.9.9 (through pyenv), linux-headers and pip install evdev works fine :\

@syhanjin
Copy link

@IanTrudel, I couldn't reproduce this - CentOS 7, Python 3.9.9 (through pyenv), linux-headers and pip install evdev works fine :\

I encountered the problem.
Ubuntu22.04, Python3.10 (through conda)

(ros) ros@ros-virtual-machine:~$ pip install evdev
Collecting evdev
  Using cached evdev-1.7.1.tar.gz (30 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: evdev
  Building wheel for evdev (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for evdev (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [1153 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/eventio_async.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/eventio.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/evtest.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/ecodes.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/genecodes.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/device.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/ff.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/__init__.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/events.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/uinput.py -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/util.py -> build/lib.linux-x86_64-cpython-310/evdev
      running egg_info
      writing evdev.egg-info/PKG-INFO
      writing dependency_links to evdev.egg-info/dependency_links.txt
      writing top-level names to evdev.egg-info/top_level.txt
      reading manifest file 'evdev.egg-info/SOURCES.txt'
      reading manifest template 'MANIFEST.in'
      warning: no previously-included files found matching 'evdev/ecodes.c'
      adding license file 'LICENSE'
      writing manifest file 'evdev.egg-info/SOURCES.txt'
      copying evdev/input.c -> build/lib.linux-x86_64-cpython-310/evdev
      copying evdev/uinput.c -> build/lib.linux-x86_64-cpython-310/evdev
      running build_ext
      running build_ecodes
      writing /tmp/pip-install-2inwoe0i/evdev_3f56fd57c7fa435286d90ed7a1ff2685/evdev/ecodes.c (using /usr/include/linux/input.h /usr/include/linux/input-event-codes.h /usr/include/linux/uinput.h)
      building 'evdev._input' extension
      creating build/temp.linux-x86_64-cpython-310/evdev
      gcc -pthread -B /home/ros/anaconda3/envs/ros/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -I/home/ros/anaconda3/envs/ros/include/python3.10 -c evdev/input.c -o build/temp.linux-x86_64-cpython-310/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
      gcc -pthread -B /home/ros/anaconda3/envs/ros/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/ros/anaconda3/envs/ros/lib -Wl,-rpath-link,/home/ros/anaconda3/envs/ros/lib -L/home/ros/anaconda3/envs/ros/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/ros/anaconda3/envs/ros/lib -Wl,-rpath-link,/home/ros/anaconda3/envs/ros/lib -L/home/ros/anaconda3/envs/ros/lib build/temp.linux-x86_64-cpython-310/evdev/input.o -o build/lib.linux-x86_64-cpython-310/evdev/_input.cpython-310-x86_64-linux-gnu.so
      building 'evdev._uinput' extension
      gcc -pthread -B /home/ros/anaconda3/envs/ros/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -I/home/ros/anaconda3/envs/ros/include/python3.10 -c evdev/uinput.c -o build/temp.linux-x86_64-cpython-310/evdev/uinput.o -std=c99 -Wno-error=declaration-after-statement
      evdev/uinput.c: In function 'uinput_get_sysname':
      evdev/uinput.c:116:5: warning: label 'on_err' defined but not used [-Wunused-label]
        116 |     on_err:
            |     ^~~~~~
      evdev/uinput.c:104:10: warning: unused variable 'sysname' [-Wunused-variable]
        104 |     char sysname[64];
            |          ^~~~~~~
      gcc -pthread -B /home/ros/anaconda3/envs/ros/compiler_compat -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/ros/anaconda3/envs/ros/lib -Wl,-rpath-link,/home/ros/anaconda3/envs/ros/lib -L/home/ros/anaconda3/envs/ros/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/ros/anaconda3/envs/ros/lib -Wl,-rpath-link,/home/ros/anaconda3/envs/ros/lib -L/home/ros/anaconda3/envs/ros/lib build/temp.linux-x86_64-cpython-310/evdev/uinput.o -o build/lib.linux-x86_64-cpython-310/evdev/_uinput.cpython-310-x86_64-linux-gnu.so
      building 'evdev._ecodes' extension
      gcc -pthread -B /home/ros/anaconda3/envs/ros/compiler_compat -Wno-unused-result -Wsign-compare -DNDEBUG -fwrapv -O2 -Wall -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -O2 -isystem /home/ros/anaconda3/envs/ros/include -fPIC -I/home/ros/anaconda3/envs/ros/include/python3.10 -c evdev/ecodes.c -o build/temp.linux-x86_64-cpython-310/evdev/ecodes.o -std=c99 -Wno-error=declaration-after-statement
      In file included from /home/ros/anaconda3/envs/ros/include/python3.10/Python.h:126,
                       from evdev/ecodes.c:2:
      evdev/ecodes.c: In function 'PyInit__ecodes':
      evdev/ecodes.c:61:29: error: 'BUS_SPI' undeclared (first use in this function); did you mean 'BUS_PCI'?
         61 |     PyModule_AddIntMacro(m, BUS_SPI);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:61:29: note: each undeclared identifier is reported only once for each function it appears in
         61 |     PyModule_AddIntMacro(m, BUS_SPI);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:62:29: error: 'BUS_RMI' undeclared (first use in this function); did you mean 'BUS_PCI'?
         62 |     PyModule_AddIntMacro(m, BUS_RMI);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:63:29: error: 'BUS_CEC' undeclared (first use in this function); did you mean 'BUS_GSC'?
         63 |     PyModule_AddIntMacro(m, BUS_CEC);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:64:29: error: 'BUS_INTEL_ISHTP' undeclared (first use in this function)
         64 |     PyModule_AddIntMacro(m, BUS_INTEL_ISHTP);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:88:29: error: 'FF_MAX_EFFECTS' undeclared (first use in this function)
         88 |     PyModule_AddIntMacro(m, FF_MAX_EFFECTS);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:96:29: error: 'INPUT_PROP_POINTING_STICK' undeclared (first use in this function); did you mean 'INPUT_PROP_POINTER'?
         96 |     PyModule_AddIntMacro(m, INPUT_PROP_POINTING_STICK);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:117:29: error: 'SYN_DROPPED' undeclared (first use in this function)
        117 |     PyModule_AddIntMacro(m, SYN_DROPPED);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:118:29: error: 'SYN_MAX' undeclared (first use in this function); did you mean 'SCNoMAX'?
        118 |     PyModule_AddIntMacro(m, SYN_MAX);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:119:29: error: 'SYN_CNT' undeclared (first use in this function); did you mean 'SND_CNT'?
        119 |     PyModule_AddIntMacro(m, SYN_CNT);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:274:29: error: 'KEY_ROTATE_DISPLAY' undeclared (first use in this function)
        274 |     PyModule_AddIntMacro(m, KEY_ROTATE_DISPLAY);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:321:29: error: 'KEY_ALL_APPLICATIONS' undeclared (first use in this function)
        321 |     PyModule_AddIntMacro(m, KEY_ALL_APPLICATIONS);
            |                             ^~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:362:29: error: 'KEY_BRIGHTNESS_AUTO' undeclared (first use in this function); did you mean 'KEY_BRIGHTNESS_ZERO'?
        362 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_AUTO);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:365:29: error: 'KEY_WWAN' undeclared (first use in this function); did you mean 'KEY_WLAN'?
        365 |     PyModule_AddIntMacro(m, KEY_WWAN);
            |                             ^~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:404:29: error: 'BTN_SOUTH' undeclared (first use in this function); did you mean 'BTN_TOUCH'?
        404 |     PyModule_AddIntMacro(m, BTN_SOUTH);
            |                             ^~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:406:29: error: 'BTN_EAST' undeclared (first use in this function); did you mean 'BTN_BASE'?
        406 |     PyModule_AddIntMacro(m, BTN_EAST);
            |                             ^~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:409:29: error: 'BTN_NORTH' undeclared (first use in this function); did you mean 'BTN_TOUCH'?
        409 |     PyModule_AddIntMacro(m, BTN_NORTH);
            |                             ^~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:411:29: error: 'BTN_WEST' undeclared (first use in this function); did you mean 'BTN_LEFT'?
        411 |     PyModule_AddIntMacro(m, BTN_WEST);
            |                             ^~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:433:29: error: 'BTN_STYLUS3' undeclared (first use in this function); did you mean 'BTN_STYLUS'?
        433 |     PyModule_AddIntMacro(m, BTN_STYLUS3);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:463:29: error: 'KEY_FULL_SCREEN' undeclared (first use in this function); did you mean 'KEY_SCREEN'?
        463 |     PyModule_AddIntMacro(m, KEY_FULL_SCREEN);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:467:29: error: 'KEY_ASPECT_RATIO' undeclared (first use in this function)
        467 |     PyModule_AddIntMacro(m, KEY_ASPECT_RATIO);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:525:29: error: 'KEY_BRIGHTNESS_TOGGLE' undeclared (first use in this function); did you mean 'KEY_BRIGHTNESS_CYCLE'?
        525 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:536:29: error: 'KEY_IMAGES' undeclared (first use in this function); did you mean 'KEY_GAMES'?
        536 |     PyModule_AddIntMacro(m, KEY_IMAGES);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:537:29: error: 'KEY_NOTIFICATION_CENTER' undeclared (first use in this function)
        537 |     PyModule_AddIntMacro(m, KEY_NOTIFICATION_CENTER);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:538:29: error: 'KEY_PICKUP_PHONE' undeclared (first use in this function); did you mean 'KEY_VIDEOPHONE'?
        538 |     PyModule_AddIntMacro(m, KEY_PICKUP_PHONE);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:539:29: error: 'KEY_HANGUP_PHONE' undeclared (first use in this function)
        539 |     PyModule_AddIntMacro(m, KEY_HANGUP_PHONE);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:565:29: error: 'KEY_FN_RIGHT_SHIFT' undeclared (first use in this function); did you mean 'KEY_RIGHTSHIFT'?
        565 |     PyModule_AddIntMacro(m, KEY_FN_RIGHT_SHIFT);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:588:29: error: 'KEY_NUMERIC_A' undeclared (first use in this function); did you mean 'KEY_NUMERIC_6'?
        588 |     PyModule_AddIntMacro(m, KEY_NUMERIC_A);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:589:29: error: 'KEY_NUMERIC_B' undeclared (first use in this function); did you mean 'KEY_NUMERIC_6'?
        589 |     PyModule_AddIntMacro(m, KEY_NUMERIC_B);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:590:29: error: 'KEY_NUMERIC_C' undeclared (first use in this function); did you mean 'KEY_NUMERIC_6'?
        590 |     PyModule_AddIntMacro(m, KEY_NUMERIC_C);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:591:29: error: 'KEY_NUMERIC_D' undeclared (first use in this function); did you mean 'KEY_NUMERIC_6'?
        591 |     PyModule_AddIntMacro(m, KEY_NUMERIC_D);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:592:29: error: 'KEY_CAMERA_FOCUS' undeclared (first use in this function); did you mean 'KEY_CAMERA'?
        592 |     PyModule_AddIntMacro(m, KEY_CAMERA_FOCUS);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:597:29: error: 'KEY_CAMERA_ZOOMIN' undeclared (first use in this function)
        597 |     PyModule_AddIntMacro(m, KEY_CAMERA_ZOOMIN);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:598:29: error: 'KEY_CAMERA_ZOOMOUT' undeclared (first use in this function)
        598 |     PyModule_AddIntMacro(m, KEY_CAMERA_ZOOMOUT);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:599:29: error: 'KEY_CAMERA_UP' undeclared (first use in this function); did you mean 'KEY_CAMERA'?
        599 |     PyModule_AddIntMacro(m, KEY_CAMERA_UP);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:600:29: error: 'KEY_CAMERA_DOWN' undeclared (first use in this function); did you mean 'KEY_PAGEDOWN'?
        600 |     PyModule_AddIntMacro(m, KEY_CAMERA_DOWN);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:601:29: error: 'KEY_CAMERA_LEFT' undeclared (first use in this function); did you mean 'KEY_CAMERA'?
        601 |     PyModule_AddIntMacro(m, KEY_CAMERA_LEFT);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:602:29: error: 'KEY_CAMERA_RIGHT' undeclared (first use in this function); did you mean 'KEY_CAMERA'?
        602 |     PyModule_AddIntMacro(m, KEY_CAMERA_RIGHT);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:603:29: error: 'KEY_ATTENDANT_ON' undeclared (first use in this function)
        603 |     PyModule_AddIntMacro(m, KEY_ATTENDANT_ON);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:604:29: error: 'KEY_ATTENDANT_OFF' undeclared (first use in this function)
        604 |     PyModule_AddIntMacro(m, KEY_ATTENDANT_OFF);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:605:29: error: 'KEY_ATTENDANT_TOGGLE' undeclared (first use in this function)
        605 |     PyModule_AddIntMacro(m, KEY_ATTENDANT_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:606:29: error: 'KEY_LIGHTS_TOGGLE' undeclared (first use in this function)
        606 |     PyModule_AddIntMacro(m, KEY_LIGHTS_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:607:29: error: 'BTN_DPAD_UP' undeclared (first use in this function); did you mean 'BTN_GEAR_UP'?
        607 |     PyModule_AddIntMacro(m, BTN_DPAD_UP);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:608:29: error: 'BTN_DPAD_DOWN' undeclared (first use in this function); did you mean 'BTN_GEAR_DOWN'?
        608 |     PyModule_AddIntMacro(m, BTN_DPAD_DOWN);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:609:29: error: 'BTN_DPAD_LEFT' undeclared (first use in this function); did you mean 'BTN_LEFT'?
        609 |     PyModule_AddIntMacro(m, BTN_DPAD_LEFT);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:610:29: error: 'BTN_DPAD_RIGHT' undeclared (first use in this function); did you mean 'BTN_RIGHT'?
        610 |     PyModule_AddIntMacro(m, BTN_DPAD_RIGHT);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:611:29: error: 'KEY_ALS_TOGGLE' undeclared (first use in this function); did you mean 'KEY_DISPLAYTOGGLE'?
        611 |     PyModule_AddIntMacro(m, KEY_ALS_TOGGLE);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:612:29: error: 'KEY_ROTATE_LOCK_TOGGLE' undeclared (first use in this function)
        612 |     PyModule_AddIntMacro(m, KEY_ROTATE_LOCK_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:613:29: error: 'KEY_REFRESH_RATE_TOGGLE' undeclared (first use in this function)
        613 |     PyModule_AddIntMacro(m, KEY_REFRESH_RATE_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:614:29: error: 'KEY_BUTTONCONFIG' undeclared (first use in this function); did you mean 'KEY_CONFIG'?
        614 |     PyModule_AddIntMacro(m, KEY_BUTTONCONFIG);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:615:29: error: 'KEY_TASKMANAGER' undeclared (first use in this function)
        615 |     PyModule_AddIntMacro(m, KEY_TASKMANAGER);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:616:29: error: 'KEY_JOURNAL' undeclared (first use in this function); did you mean 'KEY_SOUND'?
        616 |     PyModule_AddIntMacro(m, KEY_JOURNAL);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:617:29: error: 'KEY_CONTROLPANEL' undeclared (first use in this function)
        617 |     PyModule_AddIntMacro(m, KEY_CONTROLPANEL);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:618:29: error: 'KEY_APPSELECT' undeclared (first use in this function); did you mean 'KEY_SELECT'?
        618 |     PyModule_AddIntMacro(m, KEY_APPSELECT);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:619:29: error: 'KEY_SCREENSAVER' undeclared (first use in this function); did you mean 'KEY_SCREEN'?
        619 |     PyModule_AddIntMacro(m, KEY_SCREENSAVER);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:620:29: error: 'KEY_VOICECOMMAND' undeclared (first use in this function); did you mean 'KEY_VOICEMAIL'?
        620 |     PyModule_AddIntMacro(m, KEY_VOICECOMMAND);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:621:29: error: 'KEY_ASSISTANT' undeclared (first use in this function); did you mean 'KEY_RESTART'?
        621 |     PyModule_AddIntMacro(m, KEY_ASSISTANT);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:622:29: error: 'KEY_KBD_LAYOUT_NEXT' undeclared (first use in this function)
        622 |     PyModule_AddIntMacro(m, KEY_KBD_LAYOUT_NEXT);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:623:29: error: 'KEY_EMOJI_PICKER' undeclared (first use in this function)
        623 |     PyModule_AddIntMacro(m, KEY_EMOJI_PICKER);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:624:29: error: 'KEY_DICTATE' undeclared (first use in this function); did you mean 'KEY_MICMUTE'?
        624 |     PyModule_AddIntMacro(m, KEY_DICTATE);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:625:29: error: 'KEY_BRIGHTNESS_MIN' undeclared (first use in this function); did you mean 'KEY_BRIGHTNESSDOWN'?
        625 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_MIN);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:626:29: error: 'KEY_BRIGHTNESS_MAX' undeclared (first use in this function); did you mean 'KEY_BRIGHTNESSUP'?
        626 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_MAX);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:627:29: error: 'KEY_KBDINPUTASSIST_PREV' undeclared (first use in this function)
        627 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_PREV);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:628:29: error: 'KEY_KBDINPUTASSIST_NEXT' undeclared (first use in this function)
        628 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_NEXT);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:629:29: error: 'KEY_KBDINPUTASSIST_PREVGROUP' undeclared (first use in this function)
        629 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_PREVGROUP);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:630:29: error: 'KEY_KBDINPUTASSIST_NEXTGROUP' undeclared (first use in this function)
        630 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_NEXTGROUP);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:631:29: error: 'KEY_KBDINPUTASSIST_ACCEPT' undeclared (first use in this function)
        631 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_ACCEPT);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:632:29: error: 'KEY_KBDINPUTASSIST_CANCEL' undeclared (first use in this function)
        632 |     PyModule_AddIntMacro(m, KEY_KBDINPUTASSIST_CANCEL);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:633:29: error: 'KEY_RIGHT_UP' undeclared (first use in this function); did you mean 'KEY_RIGHTALT'?
        633 |     PyModule_AddIntMacro(m, KEY_RIGHT_UP);
            |                             ^~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:634:29: error: 'KEY_RIGHT_DOWN' undeclared (first use in this function); did you mean 'KEY_PAGEDOWN'?
        634 |     PyModule_AddIntMacro(m, KEY_RIGHT_DOWN);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:635:29: error: 'KEY_LEFT_UP' undeclared (first use in this function); did you mean 'KEY_LEFT'?
        635 |     PyModule_AddIntMacro(m, KEY_LEFT_UP);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:636:29: error: 'KEY_LEFT_DOWN' undeclared (first use in this function); did you mean 'KEY_LEFT'?
        636 |     PyModule_AddIntMacro(m, KEY_LEFT_DOWN);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:637:29: error: 'KEY_ROOT_MENU' undeclared (first use in this function); did you mean 'KEY_MENU'?
        637 |     PyModule_AddIntMacro(m, KEY_ROOT_MENU);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:638:29: error: 'KEY_MEDIA_TOP_MENU' undeclared (first use in this function); did you mean 'KEY_MEDIA_REPEAT'?
        638 |     PyModule_AddIntMacro(m, KEY_MEDIA_TOP_MENU);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:639:29: error: 'KEY_NUMERIC_11' undeclared (first use in this function); did you mean 'KEY_NUMERIC_1'?
        639 |     PyModule_AddIntMacro(m, KEY_NUMERIC_11);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:640:29: error: 'KEY_NUMERIC_12' undeclared (first use in this function); did you mean 'KEY_NUMERIC_2'?
        640 |     PyModule_AddIntMacro(m, KEY_NUMERIC_12);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:641:29: error: 'KEY_AUDIO_DESC' undeclared (first use in this function); did you mean 'KEY_AUDIO'?
        641 |     PyModule_AddIntMacro(m, KEY_AUDIO_DESC);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:642:29: error: 'KEY_3D_MODE' undeclared (first use in this function); did you mean 'KEY_MODE'?
        642 |     PyModule_AddIntMacro(m, KEY_3D_MODE);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:643:29: error: 'KEY_NEXT_FAVORITE' undeclared (first use in this function); did you mean 'KEY_FAVORITES'?
        643 |     PyModule_AddIntMacro(m, KEY_NEXT_FAVORITE);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:644:29: error: 'KEY_STOP_RECORD' undeclared (first use in this function); did you mean 'KEY_RECORD'?
        644 |     PyModule_AddIntMacro(m, KEY_STOP_RECORD);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:645:29: error: 'KEY_PAUSE_RECORD' undeclared (first use in this function); did you mean 'KEY_PAUSECD'?
        645 |     PyModule_AddIntMacro(m, KEY_PAUSE_RECORD);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:646:29: error: 'KEY_VOD' undeclared (first use in this function); did you mean 'KEY_DOT'?
        646 |     PyModule_AddIntMacro(m, KEY_VOD);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:647:29: error: 'KEY_UNMUTE' undeclared (first use in this function); did you mean 'KEY_MUTE'?
        647 |     PyModule_AddIntMacro(m, KEY_UNMUTE);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:648:29: error: 'KEY_FASTREVERSE' undeclared (first use in this function)
        648 |     PyModule_AddIntMacro(m, KEY_FASTREVERSE);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:649:29: error: 'KEY_SLOWREVERSE' undeclared (first use in this function)
        649 |     PyModule_AddIntMacro(m, KEY_SLOWREVERSE);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:650:29: error: 'KEY_DATA' undeclared (first use in this function); did you mean 'KEY_SAT'?
        650 |     PyModule_AddIntMacro(m, KEY_DATA);
            |                             ^~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:651:29: error: 'KEY_ONSCREEN_KEYBOARD' undeclared (first use in this function)
        651 |     PyModule_AddIntMacro(m, KEY_ONSCREEN_KEYBOARD);
            |                             ^~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:652:29: error: 'KEY_PRIVACY_SCREEN_TOGGLE' undeclared (first use in this function)
        652 |     PyModule_AddIntMacro(m, KEY_PRIVACY_SCREEN_TOGGLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:653:29: error: 'KEY_SELECTIVE_SCREENSHOT' undeclared (first use in this function)
        653 |     PyModule_AddIntMacro(m, KEY_SELECTIVE_SCREENSHOT);
            |                             ^~~~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:654:29: error: 'KEY_MACRO1' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        654 |     PyModule_AddIntMacro(m, KEY_MACRO1);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:655:29: error: 'KEY_MACRO2' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        655 |     PyModule_AddIntMacro(m, KEY_MACRO2);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:656:29: error: 'KEY_MACRO3' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        656 |     PyModule_AddIntMacro(m, KEY_MACRO3);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:657:29: error: 'KEY_MACRO4' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        657 |     PyModule_AddIntMacro(m, KEY_MACRO4);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:658:29: error: 'KEY_MACRO5' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        658 |     PyModule_AddIntMacro(m, KEY_MACRO5);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:659:29: error: 'KEY_MACRO6' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        659 |     PyModule_AddIntMacro(m, KEY_MACRO6);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:660:29: error: 'KEY_MACRO7' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        660 |     PyModule_AddIntMacro(m, KEY_MACRO7);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:661:29: error: 'KEY_MACRO8' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        661 |     PyModule_AddIntMacro(m, KEY_MACRO8);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:662:29: error: 'KEY_MACRO9' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        662 |     PyModule_AddIntMacro(m, KEY_MACRO9);
            |                             ^~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:663:29: error: 'KEY_MACRO10' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        663 |     PyModule_AddIntMacro(m, KEY_MACRO10);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:664:29: error: 'KEY_MACRO11' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        664 |     PyModule_AddIntMacro(m, KEY_MACRO11);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:665:29: error: 'KEY_MACRO12' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        665 |     PyModule_AddIntMacro(m, KEY_MACRO12);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:666:29: error: 'KEY_MACRO13' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        666 |     PyModule_AddIntMacro(m, KEY_MACRO13);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:667:29: error: 'KEY_MACRO14' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        667 |     PyModule_AddIntMacro(m, KEY_MACRO14);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:668:29: error: 'KEY_MACRO15' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        668 |     PyModule_AddIntMacro(m, KEY_MACRO15);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:669:29: error: 'KEY_MACRO16' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        669 |     PyModule_AddIntMacro(m, KEY_MACRO16);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:670:29: error: 'KEY_MACRO17' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        670 |     PyModule_AddIntMacro(m, KEY_MACRO17);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:671:29: error: 'KEY_MACRO18' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        671 |     PyModule_AddIntMacro(m, KEY_MACRO18);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:672:29: error: 'KEY_MACRO19' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        672 |     PyModule_AddIntMacro(m, KEY_MACRO19);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:673:29: error: 'KEY_MACRO20' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        673 |     PyModule_AddIntMacro(m, KEY_MACRO20);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:674:29: error: 'KEY_MACRO21' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        674 |     PyModule_AddIntMacro(m, KEY_MACRO21);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:675:29: error: 'KEY_MACRO22' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        675 |     PyModule_AddIntMacro(m, KEY_MACRO22);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:676:29: error: 'KEY_MACRO23' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        676 |     PyModule_AddIntMacro(m, KEY_MACRO23);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:677:29: error: 'KEY_MACRO24' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        677 |     PyModule_AddIntMacro(m, KEY_MACRO24);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:678:29: error: 'KEY_MACRO25' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        678 |     PyModule_AddIntMacro(m, KEY_MACRO25);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:679:29: error: 'KEY_MACRO26' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        679 |     PyModule_AddIntMacro(m, KEY_MACRO26);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:680:29: error: 'KEY_MACRO27' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        680 |     PyModule_AddIntMacro(m, KEY_MACRO27);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:681:29: error: 'KEY_MACRO28' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        681 |     PyModule_AddIntMacro(m, KEY_MACRO28);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:682:29: error: 'KEY_MACRO29' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        682 |     PyModule_AddIntMacro(m, KEY_MACRO29);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:683:29: error: 'KEY_MACRO30' undeclared (first use in this function); did you mean 'KEY_MACRO'?
        683 |     PyModule_AddIntMacro(m, KEY_MACRO30);
            |                             ^~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:684:29: error: 'KEY_MACRO_RECORD_START' undeclared (first use in this function)
        684 |     PyModule_AddIntMacro(m, KEY_MACRO_RECORD_START);
            |                             ^~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:685:29: error: 'KEY_MACRO_RECORD_STOP' undeclared (first use in this function)
        685 |     PyModule_AddIntMacro(m, KEY_MACRO_RECORD_STOP);
            |                             ^~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:686:29: error: 'KEY_MACRO_PRESET_CYCLE' undeclared (first use in this function)
        686 |     PyModule_AddIntMacro(m, KEY_MACRO_PRESET_CYCLE);
            |                             ^~~~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:687:29: error: 'KEY_MACRO_PRESET1' undeclared (first use in this function)
        687 |     PyModule_AddIntMacro(m, KEY_MACRO_PRESET1);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:688:29: error: 'KEY_MACRO_PRESET2' undeclared (first use in this function)
        688 |     PyModule_AddIntMacro(m, KEY_MACRO_PRESET2);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:689:29: error: 'KEY_MACRO_PRESET3' undeclared (first use in this function)
        689 |     PyModule_AddIntMacro(m, KEY_MACRO_PRESET3);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:690:29: error: 'KEY_KBD_LCD_MENU1' undeclared (first use in this function)
        690 |     PyModule_AddIntMacro(m, KEY_KBD_LCD_MENU1);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:691:29: error: 'KEY_KBD_LCD_MENU2' undeclared (first use in this function)
        691 |     PyModule_AddIntMacro(m, KEY_KBD_LCD_MENU2);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:692:29: error: 'KEY_KBD_LCD_MENU3' undeclared (first use in this function)
        692 |     PyModule_AddIntMacro(m, KEY_KBD_LCD_MENU3);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:693:29: error: 'KEY_KBD_LCD_MENU4' undeclared (first use in this function)
        693 |     PyModule_AddIntMacro(m, KEY_KBD_LCD_MENU4);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:694:29: error: 'KEY_KBD_LCD_MENU5' undeclared (first use in this function)
        694 |     PyModule_AddIntMacro(m, KEY_KBD_LCD_MENU5);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:695:29: error: 'BTN_TRIGGER_HAPPY' undeclared (first use in this function); did you mean 'BTN_TRIGGER'?
        695 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:696:29: error: 'BTN_TRIGGER_HAPPY1' undeclared (first use in this function)
        696 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY1);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:697:29: error: 'BTN_TRIGGER_HAPPY2' undeclared (first use in this function)
        697 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY2);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:698:29: error: 'BTN_TRIGGER_HAPPY3' undeclared (first use in this function)
        698 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY3);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:699:29: error: 'BTN_TRIGGER_HAPPY4' undeclared (first use in this function)
        699 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY4);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:700:29: error: 'BTN_TRIGGER_HAPPY5' undeclared (first use in this function)
        700 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY5);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:701:29: error: 'BTN_TRIGGER_HAPPY6' undeclared (first use in this function)
        701 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY6);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:702:29: error: 'BTN_TRIGGER_HAPPY7' undeclared (first use in this function)
        702 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY7);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:703:29: error: 'BTN_TRIGGER_HAPPY8' undeclared (first use in this function)
        703 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY8);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:704:29: error: 'BTN_TRIGGER_HAPPY9' undeclared (first use in this function)
        704 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY9);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:705:29: error: 'BTN_TRIGGER_HAPPY10' undeclared (first use in this function)
        705 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY10);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:706:29: error: 'BTN_TRIGGER_HAPPY11' undeclared (first use in this function)
        706 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY11);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:707:29: error: 'BTN_TRIGGER_HAPPY12' undeclared (first use in this function)
        707 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY12);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:708:29: error: 'BTN_TRIGGER_HAPPY13' undeclared (first use in this function)
        708 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY13);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:709:29: error: 'BTN_TRIGGER_HAPPY14' undeclared (first use in this function)
        709 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY14);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:710:29: error: 'BTN_TRIGGER_HAPPY15' undeclared (first use in this function)
        710 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY15);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:711:29: error: 'BTN_TRIGGER_HAPPY16' undeclared (first use in this function)
        711 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY16);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:712:29: error: 'BTN_TRIGGER_HAPPY17' undeclared (first use in this function)
        712 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY17);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:713:29: error: 'BTN_TRIGGER_HAPPY18' undeclared (first use in this function)
        713 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY18);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:714:29: error: 'BTN_TRIGGER_HAPPY19' undeclared (first use in this function)
        714 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY19);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:715:29: error: 'BTN_TRIGGER_HAPPY20' undeclared (first use in this function)
        715 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY20);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:716:29: error: 'BTN_TRIGGER_HAPPY21' undeclared (first use in this function)
        716 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY21);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:717:29: error: 'BTN_TRIGGER_HAPPY22' undeclared (first use in this function)
        717 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY22);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:718:29: error: 'BTN_TRIGGER_HAPPY23' undeclared (first use in this function)
        718 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY23);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:719:29: error: 'BTN_TRIGGER_HAPPY24' undeclared (first use in this function)
        719 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY24);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:720:29: error: 'BTN_TRIGGER_HAPPY25' undeclared (first use in this function)
        720 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY25);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:721:29: error: 'BTN_TRIGGER_HAPPY26' undeclared (first use in this function)
        721 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY26);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:722:29: error: 'BTN_TRIGGER_HAPPY27' undeclared (first use in this function)
        722 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY27);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:723:29: error: 'BTN_TRIGGER_HAPPY28' undeclared (first use in this function)
        723 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY28);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:724:29: error: 'BTN_TRIGGER_HAPPY29' undeclared (first use in this function)
        724 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY29);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:725:29: error: 'BTN_TRIGGER_HAPPY30' undeclared (first use in this function)
        725 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY30);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:726:29: error: 'BTN_TRIGGER_HAPPY31' undeclared (first use in this function)
        726 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY31);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:727:29: error: 'BTN_TRIGGER_HAPPY32' undeclared (first use in this function)
        727 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY32);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:728:29: error: 'BTN_TRIGGER_HAPPY33' undeclared (first use in this function)
        728 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY33);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:729:29: error: 'BTN_TRIGGER_HAPPY34' undeclared (first use in this function)
        729 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY34);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:730:29: error: 'BTN_TRIGGER_HAPPY35' undeclared (first use in this function)
        730 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY35);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:731:29: error: 'BTN_TRIGGER_HAPPY36' undeclared (first use in this function)
        731 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY36);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:732:29: error: 'BTN_TRIGGER_HAPPY37' undeclared (first use in this function)
        732 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY37);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:733:29: error: 'BTN_TRIGGER_HAPPY38' undeclared (first use in this function)
        733 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY38);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:734:29: error: 'BTN_TRIGGER_HAPPY39' undeclared (first use in this function)
        734 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY39);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:735:29: error: 'BTN_TRIGGER_HAPPY40' undeclared (first use in this function)
        735 |     PyModule_AddIntMacro(m, BTN_TRIGGER_HAPPY40);
            |                             ^~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:749:29: error: 'REL_RESERVED' undeclared (first use in this function); did you mean 'KEY_RESERVED'?
        749 |     PyModule_AddIntMacro(m, REL_RESERVED);
            |                             ^~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:750:29: error: 'REL_WHEEL_HI_RES' undeclared (first use in this function)
        750 |     PyModule_AddIntMacro(m, REL_WHEEL_HI_RES);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:751:29: error: 'REL_HWHEEL_HI_RES' undeclared (first use in this function)
        751 |     PyModule_AddIntMacro(m, REL_HWHEEL_HI_RES);
            |                             ^~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:780:29: error: 'ABS_RESERVED' undeclared (first use in this function); did you mean 'KEY_RESERVED'?
        780 |     PyModule_AddIntMacro(m, ABS_RESERVED);
            |                             ^~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:808:29: error: 'SW_CAMERA_LENS_COVER' undeclared (first use in this function)
        808 |     PyModule_AddIntMacro(m, SW_CAMERA_LENS_COVER);
            |                             ^~~~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:809:29: error: 'SW_KEYPAD_SLIDE' undeclared (first use in this function)
        809 |     PyModule_AddIntMacro(m, SW_KEYPAD_SLIDE);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:810:29: error: 'SW_FRONT_PROXIMITY' undeclared (first use in this function)
        810 |     PyModule_AddIntMacro(m, SW_FRONT_PROXIMITY);
            |                             ^~~~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:811:29: error: 'SW_ROTATE_LOCK' undeclared (first use in this function)
        811 |     PyModule_AddIntMacro(m, SW_ROTATE_LOCK);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:813:29: error: 'SW_MUTE_DEVICE' undeclared (first use in this function)
        813 |     PyModule_AddIntMacro(m, SW_MUTE_DEVICE);
            |                             ^~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:814:29: error: 'SW_PEN_INSERTED' undeclared (first use in this function)
        814 |     PyModule_AddIntMacro(m, SW_PEN_INSERTED);
            |                             ^~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:815:29: error: 'SW_MACHINE_COVER' undeclared (first use in this function)
        815 |     PyModule_AddIntMacro(m, SW_MACHINE_COVER);
            |                             ^~~~~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:823:29: error: 'MSC_TIMESTAMP' undeclared (first use in this function)
        823 |     PyModule_AddIntMacro(m, MSC_TIMESTAMP);
            |                             ^~~~~~~~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      evdev/ecodes.c:842:29: error: 'REP_CNT' undeclared (first use in this function); did you mean 'REL_CNT'?
        842 |     PyModule_AddIntMacro(m, REP_CNT);
            |                             ^~~~~~~
      /home/ros/anaconda3/envs/ros/include/python3.10/modsupport.h:154:67: note: in definition of macro 'PyModule_AddIntMacro'
        154 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant(m, #c, c)
            |                                                                   ^
      error: command '/home/ros/anaconda3/envs/ros/bin/gcc' failed with exit code 1
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for evdev
Failed to build evdev
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (evdev)

@syhanjin
Copy link

I solved this problem.
run

export CC=/usr/bin/gcc
export CXX=/usr/bin/g++

to use system compiler

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

5 participants