turing-smart-screen-python icon indicating copy to clipboard operation
turing-smart-screen-python copied to clipboard

fatal error: 'xf86drm.h' file not found

Open tapsu01 opened this issue 8 months ago • 3 comments

Describe the bug
when i try to add pyamdgpuinfo, I am getting a error 'xf86drm.h' file not found

To Reproduce
Steps to reproduce the behavior:

  1. Run python3 -m pip install pyamdgpuinfo

  2. See error

Environment:

  • Smart screen model: Turing 3.5"
  • Revision of this project: 3.9.2
  • OS with version: MacOS 13.7
  • Python version: 3.12.7
  • Hardware [Intel CPU core i7 8700, AMD Radeon Pro WX 4100 4 GB]

Screenshots / photos of the Turing screen

python3 -m pip install pyamdgpuinfo
Collecting pyamdgpuinfo
  Using cached pyamdgpuinfo-2.1.6.tar.gz (21 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pyamdgpuinfo
  Building wheel for pyamdgpuinfo (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for pyamdgpuinfo (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [27 lines of output]
      /private/var/folders/14/6qcc7jl95h9dkqcg2hz09_dr0000gn/T/pip-build-env-pw389bel/overlay/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 :: GNU General Public License v3 (GPLv3)

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

      !!
        self._finalize_license_expression()
      running bdist_wheel
      running build
      running build_py
      creating build/lib.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      copying pyamdgpuinfo/__init__.py -> build/lib.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      running build_ext
      building 'pyamdgpuinfo._pyamdgpuinfo' extension
      creating build/temp.macosx-10.13-universal2-cpython-312/pyamdgpuinfo
      clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -arch arm64 -arch x86_64 -g -I/usr/local/opt/ruby/include -I/usr/include/libdrm -I/Library/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c pyamdgpuinfo/_pyamdgpuinfo.c -o build/temp.macosx-10.13-universal2-cpython-312/pyamdgpuinfo/_pyamdgpuinfo.o
      pyamdgpuinfo/_pyamdgpuinfo.c:1241:10: fatal error: 'xf86drm.h' file not found
      #include "xf86drm.h"
               ^~~~~~~~~~~
      1 error generated.
      error: command '/usr/bin/clang' 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 pyamdgpuinfo
Failed to build pyamdgpuinfo
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyamdgpuinfo)

tapsu01 avatar Apr 05 '25 01:04 tapsu01