Skip to content

Failed to build evdev==1.9.2 #245

Open

Description

@p3p3fr0g

uv pip install evdev
Resolved 1 package in 2ms
× Failed to build evdev==1.9.2
├─▶ The build backend returned an error
╰─▶ Call to setuptools.build_meta.build_wheel failed (exit status: 1)

  [stdout]
  running bdist_wheel
  running build
  running build_py
  copying src/evdev/events.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/ecodes_runtime.py ->
  build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/__init__.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/genecodes_py.py ->
  build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/ecodes.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/uinput.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/eventio.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/ff.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/evtest.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/eventio_async.py ->
  build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/device.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/util.py -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/genecodes_c.py ->
  build/lib.linux-x86_64-cpython-312/evdev
  running egg_info
  writing src/evdev.egg-info/PKG-INFO
  writing dependency_links to src/evdev.egg-info/dependency_links.txt
  writing top-level names to src/evdev.egg-info/top_level.txt
  reading manifest file 'src/evdev.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file 'src/evdev.egg-info/SOURCES.txt'
  copying src/evdev/input.c -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/py.typed -> build/lib.linux-x86_64-cpython-312/evdev
  copying src/evdev/uinput.c -> build/lib.linux-x86_64-cpython-312/evdev
  running build_ext
  ecodes.c already exists ... skipping build_ecodes
  building 'evdev._input' extension
  clang -fsanitize=signed-integer-overflow -fsanitize=undefined
  -ggdb3 -O0 -std=c11 -Wall -Werror -Wextra -Wno-sign-compare
  -Wno-unused-parameter -Wno-unused-variable -Wshadow
  -fPIC -I/home/ipm/.cache/uv/builds-v0/.tmpsKR5TB/include
  -I/home/ipm/.local/share/uv/python/cpython-3.12.10-linux-x86_64-gnu/include/python3.12
  -c src/evdev/input.c -o
  build/temp.linux-x86_64-cpython-312/src/evdev/input.o -std=c99
  -Wno-error=declaration-after-statement

  [stderr]
  /home/ipm/.cache/uv/builds-v0/.tmpsKR5TB/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:82:
  SetuptoolsDeprecationWarning: `project.license` as a TOML table is
  deprecated
  !!

  
  ********************************************************************************
          Please use a simple string containing a SPDX expression for
  `project.license`. You can also use `project.license-files`. (Both
  options available on setuptools>=77.0.0).

          By 2026-Feb-18, you need to update your project and remove
  deprecated calls
          or your builds will no longer be supported.

          See
  https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
  for details.
  
  ********************************************************************************

  !!
    corresp(dist, value, root_dir)
  /home/ipm/.cache/uv/builds-v0/.tmpsKR5TB/lib/python3.12/site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

  
  ********************************************************************************
          Please consider removing the following classifiers in favor of a
  SPDX license expression:

          License :: OSI Approved :: BSD License

          See
  https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
  for details.
  
  ********************************************************************************

  !!
    dist._finalize_license_expression()
  /home/ipm/.cache/uv/builds-v0/.tmpsKR5TB/lib/python3.12/site-packages/setuptools/dist.py:759:
  SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

  
  ********************************************************************************
          Please consider removing the following classifiers in favor of a
  SPDX license expression:

          License :: OSI Approved :: BSD License

          See
  https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
  for details.
  
  ********************************************************************************

  !!
    self._finalize_license_expression()
  src/evdev/input.c:539:65: error: missing field 'ml_doc' initializer
  [-Werror,-Wmissing-field-initializers]
      { "ioctl_EVIOCGREP",      ioctl_EVIOCGREP,      METH_VARARGS},
                                                                  ^
  src/evdev/input.c:540:65: error: missing field 'ml_doc' initializer
  [-Werror,-Wmissing-field-initializers]
      { "ioctl_EVIOCSREP",      ioctl_EVIOCSREP,      METH_VARARGS},
                                                                  ^
  src/evdev/input.c:541:65: error: missing field 'ml_doc' initializer
  [-Werror,-Wmissing-field-initializers]
      { "ioctl_EVIOCGVERSION",  ioctl_EVIOCGVERSION,  METH_VARARGS},
                                                                  ^
  src/evdev/input.c:542:65: error: missing field 'ml_doc' initializer
  [-Werror,-Wmissing-field-initializers]
      { "ioctl_EVIOCGRAB",      ioctl_EVIOCGRAB,      METH_VARARGS},
                                                                  ^
  4 errors generated.
  error: command '/usr/bin/clang' failed with exit code 1

  hint: This usually indicates a problem with the package or the build
  environment.

Activity

  1. excited-bore commented on Aug 3, 2025

    @excited-bore

    Same over here, although with a different error:

    running bdist_wheel
          running build
          running build_py
          creating build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/genecodes_py.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/evtest.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/ecodes.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/device.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/__init__.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/eventio.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/util.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/events.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/ff.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/eventio_async.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/genecodes_c.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/ecodes_runtime.py -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/uinput.py -> build/lib.linux-x86_64-cpython-311/evdev
          running egg_info
          writing src/evdev.egg-info/PKG-INFO
          writing dependency_links to src/evdev.egg-info/dependency_links.txt
          writing top-level names to src/evdev.egg-info/top_level.txt
          reading manifest file 'src/evdev.egg-info/SOURCES.txt'
          reading manifest template 'MANIFEST.in'
          warning: no previously-included files found matching 'src/evdev/ecodes.c'
          adding license file 'LICENSE'
          writing manifest file 'src/evdev.egg-info/SOURCES.txt'
          copying src/evdev/input.c -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/py.typed -> build/lib.linux-x86_64-cpython-311/evdev
          copying src/evdev/uinput.c -> build/lib.linux-x86_64-cpython-311/evdev
          running build_ext
          running build_ecodes
          writing /tmp/pip-install-n8idiore/evdev_de574847543d4b3fb660b3414a8f208d/src/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-311/src/evdev
          x86_64-linux-gnu-gcc -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/home/vboxuser/.local/pipx/venvs/evdev/include -I/usr/include/python3.11 -c src/evdev/input.c -o build/temp.linux-x86_64-cpython-311/src/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
          src/evdev/input.c:10:10: fatal error: Python.h: No such file or directory
             10 | #include <Python.h>
                |          ^~~~~~~~~~
          compilation terminated.
          error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
          [end of output]
    

    Seems to miss a file called Python.h

  2. ssieb commented on Aug 3, 2025

    @ssieb

    You need to install the devel package for Python, whatever it's called in your distro.

  3. excited-bore commented on Aug 3, 2025

    @excited-bore

    You need to install the devel package for Python, whatever it's called in your distro.

    Thanks, my bad.
    sudo apt install python3-dev fixed my issue

  4. nekomeowww commented on Sep 28, 2025

    @nekomeowww

    Experiencing the same issue in GitHub Actions with pixi.sh, Python 3.13:

    pixi install --locked
      /home/runner/.pixi/bin/pixi install --locked --manifest-path pyproject.toml --color always
      Error:   × Failed to update PyPI packages for environment 'default'
        ├─▶ Failed to prepare distributions
        ├─▶ Failed to build `evdev==1.9.2`
        ├─▶ The build backend returned an error
        ╰─▶ Call to `setuptools.build_meta.build_wheel` failed (exit status: 1)
            
            [stdout]
            running bdist_wheel
            running build
            running build_py
            creating build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/ecodes_runtime.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/eventio.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/genecodes_py.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/ecodes.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/util.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/events.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/genecodes_c.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/device.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/ff.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/eventio_async.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/uinput.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/__init__.py -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/evtest.py -> build/lib.linux-x86_64-cpython-313/evdev
            running egg_info
            writing src/evdev.egg-info/PKG-INFO
            writing dependency_links to src/evdev.egg-info/dependency_links.txt
            writing top-level names to src/evdev.egg-info/top_level.txt
            reading manifest file 'src/evdev.egg-info/SOURCES.txt'
            reading manifest template 'MANIFEST.in'
            adding license file 'LICENSE'
            writing manifest file 'src/evdev.egg-info/SOURCES.txt'
            copying src/evdev/input.c -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/py.typed -> build/lib.linux-x86_64-cpython-313/evdev
            copying src/evdev/uinput.c -> build/lib.linux-x86_64-cpython-313/evdev
            running build_ext
            running build_ecodes
            writing /home/runner/.cache/rattler/cache/uv-cache/sdists-v9/pypi/evdev/1.9.2/R360w9Vnf2LefnDaHN7ms/src/src/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-313/src/evdev
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -fPIC -I/home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13 -c src/evdev/input.c -o build/temp.linux-x86_64-cpython-313/src/evdev/input.o -std=c99 -Wno-error=declaration-after-statement
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/lib/stubs -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl build/temp.linux-x86_64-cpython-313/src/evdev/input.o -o build/lib.linux-x86_64-cpython-313/evdev/_input.cpython-313-x86_64-linux-gnu.so
            building 'evdev._uinput' extension
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -fPIC -I/home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13 -c src/evdev/uinput.c -o build/temp.linux-x86_64-cpython-313/src/evdev/uinput.o -std=c99 -Wno-error=declaration-after-statement
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc -shared -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -Wl,-rpath-link,/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/lib -L/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/lib/stubs -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl build/temp.linux-x86_64-cpython-313/src/evdev/uinput.o -o build/lib.linux-x86_64-cpython-313/evdev/_uinput.cpython-313-x86_64-linux-gnu.so
            building 'evdev._ecodes' extension
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/targets/x86_64-linux/include/cccl -fPIC -I/home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/include -I/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13 -c src/evdev/ecodes.c -o build/temp.linux-x86_64-cpython-313/src/evdev/ecodes.o -std=c99 -Wno-error=declaration-after-statement
            
            [stderr]
            /home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:82: SetuptoolsDeprecationWarning: `project.license` as a TOML table is deprecated
            !!
            
                    ********************************************************************************
                    Please use a simple string containing a SPDX expression for `project.license`. You can also use `project.license-files`. (Both options available on setuptools>=77.0.0).
            
                    By 2026-Feb-18, you need to update your project and remove deprecated calls
                    or your builds will no longer be supported.
            
                    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                    ********************************************************************************
            
            !!
              corresp(dist, value, root_dir)
            /home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:61: SetuptoolsDeprecationWarning: License classifiers are deprecated.
            !!
            
                    ********************************************************************************
                    Please consider removing the following classifiers in favor of a SPDX license expression:
            
                    License :: OSI Approved :: BSD License
            
                    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                    ********************************************************************************
            
            !!
              dist._finalize_license_expression()
            /home/runner/.cache/rattler/cache/uv-cache/builds-v0/.tmpOr6st2/lib/python3.13/site-packages/setuptools/dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
            !!
            
                    ********************************************************************************
                    Please consider removing the following classifiers in favor of a SPDX license expression:
            
                    License :: OSI Approved :: BSD License
            
                    See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
                    ********************************************************************************
            
            !!
                  |                                                                      ^
            src/evdev/ecodes.c:667:29: error: 'KEY_NAV_CHART' undeclared (first use in this function); did you mean 'KEY_CHAT'?
              667 |     PyModule_AddIntMacro(m, KEY_NAV_CHART);
                  |                             ^~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:668:29: error: 'KEY_FISHING_CHART' undeclared (first use in this function)
              668 |     PyModule_AddIntMacro(m, KEY_FISHING_CHART);
                  |                             ^~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:669:29: error: 'KEY_SINGLE_RANGE_RADAR' undeclared (first use in this function)
              669 |     PyModule_AddIntMacro(m, KEY_SINGLE_RANGE_RADAR);
                  |                             ^~~~~~~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:670:29: error: 'KEY_DUAL_RANGE_RADAR' undeclared (first use in this function)
              670 |     PyModule_AddIntMacro(m, KEY_DUAL_RANGE_RADAR);
                  |                             ^~~~~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:671:29: error: 'KEY_RADAR_OVERLAY' undeclared (first use in this function)
              671 |     PyModule_AddIntMacro(m, KEY_RADAR_OVERLAY);
                  |                             ^~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:672:29: error: 'KEY_TRADITIONAL_SONAR' undeclared (first use in this function)
              672 |     PyModule_AddIntMacro(m, KEY_TRADITIONAL_SONAR);
                  |                             ^~~~~~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:673:29: error: 'KEY_CLEARVU_SONAR' undeclared (first use in this function)
              673 |     PyModule_AddIntMacro(m, KEY_CLEARVU_SONAR);
                  |                             ^~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:674:29: error: 'KEY_SIDEVU_SONAR' undeclared (first use in this function)
              674 |     PyModule_AddIntMacro(m, KEY_SIDEVU_SONAR);
                  |                             ^~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:675:29: error: 'KEY_NAV_INFO' undeclared (first use in this function); did you mean 'KEY_INFO'?
              675 |     PyModule_AddIntMacro(m, KEY_NAV_INFO);
                  |                             ^~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:676:29: error: 'KEY_BRIGHTNESS_MENU' undeclared (first use in this function); did you mean 'KEY_BRIGHTNESS_MIN'?
              676 |     PyModule_AddIntMacro(m, KEY_BRIGHTNESS_MENU);
                  |                             ^~~~~~~~~~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            src/evdev/ecodes.c:802:29: error: 'ABS_PROFILE' undeclared (first use in this function); did you mean 'ABS_THROTTLE'?
              802 |     PyModule_AddIntMacro(m, ABS_PROFILE);
                  |                             ^~~~~~~~~~~
            /home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/include/python3.13/modsupport.h:47:70: note: in definition of macro 'PyModule_AddIntMacro'
               47 | #define PyModule_AddIntMacro(m, c) PyModule_AddIntConstant((m), #c, (c))
                  |                                                                      ^
            error: command '/home/runner/work/game-playing-ai-balatro/game-playing-ai-balatro/.pixi/envs/default/bin/x86_64-conda-linux-gnu-cc' failed with exit code 1
            
            hint: This usually indicates a problem with the package or the build environment.
      
    Error: The process '/home/runner/.pixi/bin/pixi' failed with exit code 1
    
  5. Ytydt-Reuz commented on Jan 22, 2026

    @Ytydt-Reuz

    Having tried to install the python3-evdev but not work.
    This is my solution find at: https://blog.csdn.net/qq_38967931/article/details/143879959

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

    Hopes it help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions