I am using Jetpack 7.5 and my python version is 3.6.9.
After running pip3 install opencv-contrib-python it takes almost 3 hours before showing the following error:
Error building wheel for opencv-contrib-python.txt (193.9 KB)
Hi,
It looks like you are facing something similar to the below link:
opened 11:52AM - 15 Jan 22 UTC
closed 07:37AM - 03 Jun 22 UTC
My configuration:
```
pi@raspberrypi:~ $ neofetch
`.::///+:/-. --///… +//-:`` pi@raspberrypi
`+oooooooooooo: `+oooooooooooo: --------------
/oooo++//ooooo: ooooo+//+ooooo. OS: Raspbian GNU/Linux 10 (buster) armv7l
`+ooooooo:-:oo- +o+::/ooooooo: Host: Raspberry Pi 4 Model B Rev 1.4
`:oooooooo+`` `.oooooooo+- Kernel: 5.10.63-v7l+
`:++ooo/. :+ooo+/.` Uptime: 34 days, 6 hours, 8 mins
...` `.----.` ``.. Packages: 2328 (dpkg)
.::::-``:::::::::.`-:::-` Shell: bash 5.0.3
-:::-` .:::::::-` `-:::- Terminal: /dev/pts/1
`::. `.--.` `` `.---.``.::` CPU: BCM2711 (4) @ 1.500GHz
.::::::::` -::::::::` ` Memory: 345MiB / 7719MiB
pi@raspberrypi:~ $ python3 --version
Python 3.7.3
pi@raspberrypi:~ $ pip --version
pip 21.3.1 from /home/pi/.local/lib/python3.7/site-packages/pip (python 3.7)
```
I have an older version, which works just fine:
```
opencv-contrib-python 4.5.3.56
```
Installation fails with these messages:
```
pi@raspberrypi:~/pick $ pip install --upgrade opencv-contrib-python
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Requirement already satisfied: opencv-contrib-python in /home/pi/.local/lib/python3.7/site-packages (4.5.3.56)
Collecting opencv-contrib-python
Using cached opencv-contrib-python-4.5.5.62.tar.gz (150.4 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy>=1.14.5 in /home/pi/.local/lib/python3.7/site-packages (from opencv-contrib-python) (1.21.4)
Building wheels for collected packages: opencv-contrib-python
Building wheel for opencv-contrib-python (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 /home/pi/.local/lib/python3.7/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmp0pwnyagk
cwd: /tmp/pip-install-b4yo4rie/opencv-contrib-python_23756fb2c01b4849b12d8da4f7866dcf
Complete output (5119 lines):
patching file opencv/3rdparty/openexr/IlmImf/ImfSystemSpecific.cpp
Not searching for unused variables given on the command line.
CMake Error at CMakeLists.txt:2 (PROJECT):
Running
'/usr/sbin/ninja' '--version'
failed with:
die: error: must run as root
```
Thanks.
The link you provided does not have the solutions.
I am actually trying to install mediapipe in my jetson nano but it gets stuck while building wheel for opencv-comtrib-python
Hi,
Have you tried to upgrade the Numpy as mentioned in the above link?
Does it work?
Thank.
Hi, I downgraded my Jetpack to 4.6 and installed opencv-contrib-python 4.5.5.62 and it worked. The installed numpy version is 1.19.4.
system
Closed
October 9, 2024, 2:41am
9
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.