Closed
Description
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
Metadata
Metadata
Assignees
Labels
No labels