zilin-huang / PE-RLHF

The official code for paper "Trustworthy Human-AI Collaboration: Reinforcement Learning with Human Feedback and Physics Knowledge for Safe Autonomous Driving"
https://zilin-huang.github.io/PE-RLHF-website/
MIT License
16 stars 0 forks source link

ERROR: Failed building wheel for evdev #3

Open Xiong666bro opened 5 days ago

Xiong666bro commented 5 days ago

hello, I am very interested in your work, and I tried to achieve your work, but there is a problem in downloading the environment, whose content is "ERROR: Could not build wheels for evdev, which is required to install pyproject.toml-based projects",the full error is : D:\temp\pip-build-env-f9g6dqbf\overlay\Lib\site-packages\setuptools\config\pyprojecttoml.py:66: _BetaConfiguration: Support for [tool.setuptools] in pyproject.toml is still beta. config = read_configuration(filepath, True, ignore_option_errors, dist) 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.win-amd64-cpython-37\evdev copying evdev\uinput.c -> build\lib.win-amd64-cpython-37\evdev running build_ext running build_ecodes The 'linux/input.h' and 'linux/input-event-codes.h' include files are missing. You will have to install the kernel header files in order to continue:

      dnf install kernel-headers-$(uname -r)
      apt-get install linux-headers-$(uname -r)
      emerge sys-kernel/linux-headers
      pacman -S kernel-headers

  In case they are installed in a non-standard location, you may use
  the '--evdev-headers' option to specify one or more colon-separated
  paths. For example:

      python setup.py \
        build \
        build_ecodes --evdev-headers path/input.h:path/input-event-codes.h \
        build_ext --include-dirs path/ \
        install
  [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: Could not build wheels for evdev, which is required to install pyproject.toml-based projects. hope you can give me some suggestions. Thank you

zilin-huang commented 3 days ago

Hi, thank you for your interest in our project. I am sorry that this project has only been tested on Ubuntu. This error is related to the evdev package, which is generally used for handling input devices in Linux. However, you seem to be trying to install it on Windows, where evdev is not natively supported. We recommend running the project on an Ubuntu system or using Windows Subsystem for Linux (WSL) for compatibility.