I was reading this earlier:
So i tried creating a requirements.txt and adding evdev inside, but when building the app I get this error now:
$ arduino-app-cli app logs user:usb-scanner
[main]
[main] By 2026-Feb-18, you need to update your project and remove
[main] deprecated calls
[main] or your builds will no longer be supported.
[main]
[main] See
[main] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
[main] for details.
[main]
[main] ********************************************************************************
[main]
[main] !!
[main] corresp(dist, value, root_dir)
[main] /app/.cache/uv/builds-v0/.tmpsEfKY8/lib/python3.13/site-packages/setuptools/config/_apply_pyprojecttoml.py:61:
[main] SetuptoolsDeprecationWarning: License classifiers are deprecated.
[main] !!
[main]
[main]
[main] ********************************************************************************
[main] Please consider removing the following classifiers in favor of a
[main] SPDX license expression:
[main]
[main] License :: OSI Approved :: BSD License
[main]
[main] See
[main] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
[main] for details.
[main]
[main] ********************************************************************************
[main]
[main] !!
[main] dist._finalize_license_expression()
[main] /app/.cache/uv/builds-v0/.tmpsEfKY8/lib/python3.13/site-packages/setuptools/dist.py:759:
[main] SetuptoolsDeprecationWarning: License classifiers are deprecated.
[main] !!
[main]
[main]
[main] ********************************************************************************
[main] Please consider removing the following classifiers in favor of a
[main] SPDX license expression:
[main]
[main] License :: OSI Approved :: BSD License
[main]
[main] See
[main] https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license
[main] for details.
[main]
[main] ********************************************************************************
[main]
[main] !!
[main] self._finalize_license_expression()
[main] warning: no previously-included files found matching
[main] 'src/evdev/ecodes.c'
[main] The 'linux/input.h' and 'linux/input-event-codes.h' include files
[main] are missing. You will have to install the kernel header files in
[main] order to continue:
[main]
[main] dnf install kernel-headers-$(uname -r)
[main] apt-get install linux-headers-$(uname -r)
[main] emerge sys-kernel/linux-headers
[main] pacman -S kernel-headers
[main]
[main] In case they are installed in a non-standard location, you may use
[main] the '--evdev-headers' option to specify one or more colon-separated
[main] paths. For example:
[main]
[main] python setup.py \
[main] build \
[main] build_ecodes --evdev-headers path/input.h:path/input-event-codes.h
[main] \
[main] build_ext --include-dirs path/ \
[main] install
[main]
[main] If you want to avoid building this package from source, then please
[main] consider
[main] installing the `evdev-binary` package instead. Keep in mind that it may
[main] not be
[main] fully compatible with, or support all the features of your current
[main] kernel.
[main]
[main] hint: This usually indicates a problem with the package or the build
[main] environment.
[main] Clearing cache at: .cache/uv
[main] Removed 573 files (4.9MiB)
[main] Traceback (most recent call last):
[main] File "/app/python/main.py", line 1, in <module>
[main] from evdev import InputDevice, categorize, ecodes
[main] ModuleNotFoundError: No module named 'evdev'
[main] Activating python virtual environment
[main] No cache found at: .cache/uv
[main] Traceback (most recent call last):
[main] File "/app/python/main.py", line 1, in <module>
[main] from evdev import InputDevice, categorize, ecodes
[main] ModuleNotFoundError: No module named 'evdev'
[main] Activating python virtual environment
[main] No cache found at: .cache/uv
[main] Traceback (most recent call last):
[main] File "/app/python/main.py", line 1, in <module>
[main] from evdev import InputDevice, categorize, ecodes
[main] ModuleNotFoundError: No module named 'evdev'