Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working anymore (september 2022) #26

Open
joancatala opened this issue Sep 22, 2022 · 2 comments
Open

Not working anymore (september 2022) #26

joancatala opened this issue Sep 22, 2022 · 2 comments

Comments

@joancatala
Copy link

I follow the instructions last night and there is no libqtgui4 and libqt4-test
And there is a version problem also with numpy.

So, at the end when you start with sudo python3 pi-camera-stream-flask/main.py there are some errors.

@matttb1984
Copy link

Same for me. Here's what I get when I try to run the script. This is after installing a few missing packages too.

pi@raspberrypicam:~ $ sudo python3 /home/pi/pi-camera-stream-flask/main.py RuntimeError: module compiled against API version 0xf but this version of numpy is 0xd Traceback (most recent call last): File "/home/pi/pi-camera-stream-flask/main.py", line 7, in <module> from camera import VideoCamera File "/home/pi/pi-camera-stream-flask/camera.py", line 5, in <module> import cv2 as cv File "/usr/local/lib/python3.9/dist-packages/cv2/__init__.py", line 181, in <module> bootstrap() File "/usr/local/lib/python3.9/dist-packages/cv2/__init__.py", line 153, in bootstrap native_module = importlib.import_module("cv2") File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ImportError: numpy.core.multiarray failed to import pi@raspberrypicam:~ $

@carpequarq
Copy link

I found on issue 13 the solution to what you have above.
I tried running the numpy upgrade without sudo
pip3 install --upgrade numpy
per BernardNyarko

and running main.py without sudo as well
python3 /home/pi/pi-camera-stream-flask/main.py
per BjoernLuig

I found the solution under issue 13:
#13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants