ERROR: Could not build wheels for pynq, which is required to install pyproject.toml-based projects

PYNQ version: PYNQ version: 3.0.1
Board name: Ultrascale+ RFSoC 2x2

I was trying to use the project strath-sdr/rfsoc_xilinx_adapt: RFSoC OFDM and Spectrum Analyser demonstration for Xilinx Adapt 2021. (github.com)

It says to execute the below command to install it to the PYNQ board.

pip3 install git+https://github.com/strath-sdr/rfsoc_xilinx_adapt@v0.1.0

But after executing the command I am getting the below error message:

  make PYNQ_BUILD_ARCH=aarch64 -C pynq/lib/_pynq/_displayport/
  make: Entering directory '/tmp/pip-install-36sdsomd/pynq_536d4a11de564331a065d6b3dc09627f/pynq/lib/_pynq/_displayport'
  g++ -fPIC -I=/usr/include/libdrm -c -g -std=c++11 displayport.cpp
  In file included from displayport.cpp:14:
  /usr/include/xf86drm.h:40:10: fatal error: drm.h: No such file or directory
     40 | #include <drm.h>
        |          ^~~~~~~
  compilation terminated.
  make: *** [Makefile:8: all] Error 1
  make: Leaving directory '/tmp/pip-install-36sdsomd/pynq_536d4a11de564331a065d6b3dc09627f/pynq/lib/_pynq/_displayport'
  error: command '/usr/bin/make' failed with exit code 2
  [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pynq
  Building wheel for rfsoc-sam (pyproject.toml) ... done
  Created wheel for rfsoc-sam: filename=rfsoc_sam-0.3.1-py3-none-any.whl size=8242499 sha256=aad25961160b1fb8fdc7092e1253853529ea804b17c1742d5f0e1c7fa99e6b3d
  Stored in directory: /tmp/pip-ephem-wheel-cache-z1e2g0ob/wheels/b6/61/6d/2818d3ea824e5a244c5a25271b65ef644a4f771e74c2b54033
  Building wheel for rfsoc-freqplan (pyproject.toml) ... done
  Created wheel for rfsoc-freqplan: filename=rfsoc_freqplan-0.1-py3-none-any.whl size=13737 sha256=5139ca2702264973476735e138e69d6617bb54d4587439726d63457ddbd9ab66
  Stored in directory: /tmp/pip-ephem-wheel-cache-z1e2g0ob/wheels/32/97/29/271cd0331d11f67b2175277b2d0b7a66f1866ea7d74d2ee9f8
  Successfully built rfsoc-xilinx-adapt rfsoc-sam rfsoc-freqplan
  Failed to build pynq
  ERROR: Could not build wheels for pynq, which is required to install pyproject.toml-based projects

Adding @davidnorthcote as well if he can help.

Hi @hdutta,

Please, try with a newer version of this project

Mario