JolleJolles / pirecorder

Controlled and automated image and video recording with the raspberry pi
https://jollejolles.github.io/pirecorder/
Apache License 2.0
43 stars 9 forks source link

import pirecorder issue #39

Open CanroDaply opened 6 months ago

CanroDaply commented 6 months ago

I'm trying to run pirecorder, ive followed the install steps but when i enter import pirrecorer i get the following issue

import pirecorder Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/numpy/core/init.py", line 24, in from . import multiarray File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(*args, kw) File "/usr/local/lib/python3.9/dist-packages/numpy/core/multiarray.py", line 10, in from . import overrides File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(*args, *kw) File "/usr/local/lib/python3.9/dist-packages/numpy/core/overrides.py", line 8, in from numpy.core._multiarray_umath import ( File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(args, kw) ImportError: libopenblas.so.0: cannot open shared object file: No such file or directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.9/dist-packages/numpy/init.py", line 130, in from numpy.config import show as show_config File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(*args, *kw) File "/usr/local/lib/python3.9/dist-packages/numpy/config.py", line 4, in from numpy.core._multiarray_umath import ( File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(args, **kw) File "/usr/local/lib/python3.9/dist-packages/numpy/core/init.py", line 50, in raise ImportError(msg) ImportError:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for many reasons, often due to issues with your setup or how NumPy was installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

and make sure that they are the versions you expect. Please carefully study the documentation linked above for further help.

Original error was: libopenblas.so.0: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/lib/python3/dist-packages/thonny/plugins/cpython_backend/cp_back.py", line 263, in _custom_import module = self._original_import(*args, *kw) File "/usr/local/lib/python3.9/dist-packages/numpy/init.py", line 135, in raise ImportError(msg) from e ImportError: Error importing numpy: you should not try to import numpy from its source directory; please exit the numpy source tree, and relaunch your python interpreter from there. Traceback (most recent call last): File "", line 1, in File "/home/robcanning/.local/lib/python3.9/site-packages/pirecorder/init.py", line 19, in from .pirecorder import File "/home/robcanning/.local/lib/python3.9/site-packages/pirecorder/pirecorder.py", line 23, in import cv2 File "/home/robcanning/.local/lib/python3.9/site-packages/cv2/init.py", line 5, in from .cv2 import * ImportError: numpy.core.multiarray failed to import