View: 95|Reply: 2

PiCar Pro fresh installation not works

[Copy link]

1

Threads

2

Posts

9

Credits

Newbie

Rank: 1

Credits
9
Post time 2022-3-23 20:09:17 | Show all posts |Read mode
Dear everyone,
I prepare & install sd card according instructions and everything pass (rasbian 11). However, after reboot webServer does not start. When I start it manually a get following error:

pi@raspberrypi:~ $ sudo python3 //home/pi/adeept_picarpro/server/webServer.py
......................pause..........................
mpu6050 disconnected, ARM MODE ON
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "//home/pi/adeept_picarpro/server/webServer.py", line 26, in
import app
File "/home/pi/adeept_picarpro/server/app.py", line 8, in
from camera_opencv import Camera
File "/home/pi/adeept_picarpro/server/camera_opencv.py", line 2, in
import cv2
File "/usr/local/lib/python3.9/dist-packages/cv2/init.py", line 5, in
from .cv2 import *
ImportError: numpy.core.multiarray failed to import
Thanks for any advice.

Reply

Use magic Report

1

Threads

2

Posts

9

Credits

Newbie

Rank: 1

Credits
9
 Author| Post time 2022-3-24 20:33:28 | Show all posts
fixed by sudo pip3 install opencv-contrib-python==3.4.3.18
sudo pip3 install opencv-python==3.4.11.45
Reply

Use magic Report

0

Threads

16

Posts

39

Credits

Administrator

Rank: 9Rank: 9Rank: 9

Credits
39
Post time 2022-5-5 16:29:34 | Show all posts
It may be that the Raspberry Pi version compatibility problem causes the dependent library to fail to be installed successfully. Please download and install Raspberry Pi OS (Legacy).
Raspberry Pi OS (Legacy) download address: https://www.raspberrypi.com/software/operating-systems/
You need to find ”Raspberry Pi OS (Legacy)“ in the link and download the image file.

Raspberry Pi official description of the Raspberry Pi OS (Legacy):
https://www.raspberrypi.com/news ... berry-pi-os-legacy/
Reply

Use magic Report

You have to log in before you can reply Login | Sign Up

Points Rules