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.
-
1Hello, you should try: sudo apt-get update and then sudo apt-get install libcblas-dev. It worked for me in the same situation.– thvs86Nov 20, 2018 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.– isaiahoptics22Nov 20, 2018 at 22:02
-
1Is it the same error? Or are you missing a different package?– thvs86Nov 20, 2018 at 22:04
-
oh it is now "ImportError: libatlas.so.3: cannot open shared object file: No such file or directory"– isaiahoptics22Nov 20, 2018 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– thvs86Nov 20, 2018 at 22:09
3 Answers
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
-
4In addition, I also neede to install
libilmbase-dev
libopenexr-dev
libgstreamer1.0-dev
libavcodec-dev
libavformat-dev
libswscale-dev
andlibwebp-dev
Oct 17, 2019 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 Mar 31, 2021 at 16:12
-
@blackjack75 thanks, this definitly helped out a lot since my raspberrypi 3b couldn't find the package lbcblas-dev!– Ari24Apr 28, 2021 at 10:04
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
– hamaneyOct 8, 2019 at 17:58 -
3@hamaney You'll need to install that library
sudo apt-get install libjasper-dev
– lucidyanOct 8, 2019 at 21:20 -
awesome. worked for pi 3b+ ! (issue occured when installing pandas, no real need for libqtgui4) Jan 23 at 13:52
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! Oct 17, 2019 at 10:38