Closed vyang2968 closed 2 years ago
Have you read the section about compiling from source? If you get that error, it means you don't have OpenCV installed.
I've tried compiling from source before and it did not work for me. I've worked around this issue in the past by following the instructions on this website but that was on 64-bit Bullseye. Ideally I'd like to get the same process working with this operating system that I'm on.
@auscompgeek any chance you can update that package?
The OBS package does have python3-cscore binary packages for Raspbian 10 and 11. Unfortunately OBS download pages seem to not properly support Raspbian, so it doesn't provide install instructions. The packages are listed under Unknown
however.
If you want to do an online install, you can use the Debian instructions, but replace Debian
with Raspbian
in the URLs.
Thank you so much! It worked perfectly, I verified it with python3 -c "import cscore"
.
For anyone wanting to just copy and paste, here's the scripts:
echo 'deb http://download.opensuse.org/repositories/home:/auscompgeek:/robotpy/Raspbian_10/ /' | sudo tee /etc/apt/sources.list.d/home:auscompgeek:robotpy.list
curl -fsSL https://download.opensuse.org/repositories/home:auscompgeek:robotpy/Raspbian_10/Release.key | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/home_auscompgeek_robotpy.gpg > /dev/null
sudo apt update
sudo apt install python3-cscore
Problem description
I am trying to install cscore on my Raspberry Pi 4, 32-Bit buster OS Lite. As far as I know, you can do this through
pip3 install robotpy-cscore
or following the instructions at [https://software.opensuse.org/download.htmlproject=home%3Aauscompgeek%3Arobotpy&package=python3-cscore]. I have tried the second one, but it saysE: Unable to locate package robotpy-cscore
. That's why I went onto installing from pip. With this approach, `src/_cscore.cpp:12:10: fatal error: opencv2/opencv.hpp: No such file or directoryinclude <opencv2/opencv.hpp>
Any help with either of these would be much appreciated.
Operating System
Raspbian