I am trying to run an Arducam MT9J001 camera on a raspberry pi 3b+. I am getting the following error when I try to run the program, "ImportError: libcblas.so3: cannot open shared object file: No such file or directory." I have the computer vision software downloaded onto the raspberry pi, though it seems that it is still not working. I'm not sure what other information is viable to this project, but if there is something else I should be specifying please let me know.
Asked
Active
Viewed 1.4e+01k times
44
-
1Hello, you should try: sudo apt-get update and then sudo apt-get install libcblas-dev. It worked for me in the same situation. – thvs86 Nov 20 '18 at 21:57
-
I appreciate the feedback. Do I need to restart my Pi after running these installs? Unfortunately I am getting the same error even after your advised installation code. – isaiahoptics22 Nov 20 '18 at 22:02
-
1Is it the same error? Or are you missing a different package? – thvs86 Nov 20 '18 at 22:04
-
oh it is now "ImportError: libatlas.so.3: cannot open shared object file: No such file or directory" – isaiahoptics22 Nov 20 '18 at 22:08
-
1What worked for me (I was missing some dependencies): pip3 install opencv-python sudo apt-get install libatlas-base-dev sudo apt-get install libjasper-dev sudo apt-get install libqtgui4 sudo apt-get install libqt4-test – thvs86 Nov 20 '18 at 22:09
-
That worked great!! Thank you! I am now getting the error "ImportError: /home/pi/ArduCAM_USB_Camera_Shield/RaspberryPi/Python/Streaming_demo/ArducamSDK.so: undefined symbol: _Py_ZeroStruct" Is this now an unrelated error to this thread? – isaiahoptics22 Nov 20 '18 at 22:16
-
Yes, I think you should start a new question about this one. I'm glad it helped you at least so far. – thvs86 Nov 20 '18 at 22:20
-
I appreciate all of your help! – isaiahoptics22 Nov 20 '18 at 22:21
3 Answers
90
What worked for me (I was missing some dependencies):
pip3 install opencv-python
sudo apt-get install libcblas-dev
sudo apt-get install libhdf5-dev
sudo apt-get install libhdf5-serial-dev
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
sudo apt-get install libqtgui4
sudo apt-get install libqt4-test

thvs86
- 1,458
- 2
- 20
- 24
-
4In addition, I also neede to install `libilmbase-dev` `libopenexr-dev` `libgstreamer1.0-dev` `libavcodec-dev` `libavformat-dev` `libswscale-dev` and `libwebp-dev` – Nebulosar Oct 17 '19 at 10:53
-
-
4libatlas-base-dev is now replaced by libatlas-base-dev so you might want to update the update to this: sudo apt-get install libatlas-base-dev libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqtgui4 libqt4-test – blackjack75 Mar 31 '21 at 16:12
-
@blackjack75 thanks, this definitly helped out a lot since my raspberrypi 3b couldn't find the package lbcblas-dev! – Ari24 Apr 28 '21 at 10:04
78
You need to install only one package with neccessary shared object for it to work
sudo apt-get install libatlas-base-dev
-
1on raspberry 4 Raspbian I get ``ImportError: libjasper.so.1: cannot open shared object file: No such file or directory`` – hamaney Oct 08 '19 at 17:58
-
3@hamaney You'll need to install that library `sudo apt-get install libjasper-dev` – lucidyan Oct 08 '19 at 21:20
-
awesome. worked for pi 3b+ ! (issue occured when installing pandas, no real need for libqtgui4) – pangyuteng Jan 23 '23 at 13:52
28
Exact same solution as @thvs86 but here's a single 1 line copy-paste so you don't have to insert each command individually:
pip3 install opencv-contrib-python; sudo apt-get install -y libatlas-base-dev libhdf5-dev libhdf5-serial-dev libatlas-base-dev libjasper-dev libqtgui4 libqt4-test
-
all at once didn't work for me. @thvs86 one-by-one approach did work. Don't know why, but if this doesn't work, give the other solution a try! – Nebulosar Oct 17 '19 at 10:38