Error for Compiling OpenCV with Gstreamer Backend

Hello everyone,

I tried to use a bunch of commands in order to launch librairies for using Yolov5 neuron network on a monitoring robot.

I created a virtual environment for Python entitled nameVirtualEnv

The following commands :

git clone --recursive https://github.com/skvark/opencv-python.git
cd opencv-python
export CMAKE_ARGS="-DWITH_GSTREAMER=ON"
pip install --upgrade pip wheel
# this is the build step - the repo estimates it can take from 5 
#   mins to > 2 hrs depending on your computer hardware
pip wheel . --verbose
pip install opencv_python*.whl

but when I’m running pip wheel . --verbose I get the error

Command errored out with exit status 1: /home/adrien/yolov5/nameVirtualEnv/bin/python3.9 /tmp/tmpf63r3igz_in_process.py get_requires_for_build_wheel /tmp/tmput89_dig Check the logs for full command output.

Is there a command to run so as to avoid this behaviour please ?

Thanks in advance