pyparrot: ImportError: libjasper.so.1: cannot open shared object file: No such file or directory

I tried to run the demoMamboVisionGUI.py but got this error msg.

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

then I managed to solved it by this command

pip3 install opencv-python

then I got another error when try to execute the demoMamboVisionGUI.py

ImportError: libcblas.so.3: cannot open shared object file: No such file or directory

then I solved it with this command

sudo apt-get install libatlas-base-dev

no I got another error ImportError: libjasper.so.1: cannot open shared object file: No such file or directory

How I can solve this problem? Any complete guide to install all dependencies ?

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Finally I managed to solved all dependencies Here it is


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 python3-pyqt5

Finally I managed to solved all dependencies Here it is


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 python3-pyqt5

I needed one more step after this:

sudo apt-get install libqt4-test

Guys you do not need to install any updates or other libraries. The problem is because the current version of opencv (currently 4.1.1.26) is not compatible with RPi, just run pip3 uninstall opencv-python and then run pip3 install opencv-python==3.4.6.27 This should sort you out and if you have any issues just check what versions of opencv are compatible with your Raspbian or whatever you are using.

Hi! For people who are trying to install libjasper-dev on ubuntu 18.04 can do the following:

sudo add-apt-repository 'deb http://security.ubuntu.com/ubuntu xenial-security main'
sudo apt update
sudo apt install libjasper-dev

use sudo apt install python3-opencv instead of pip, as suggested by https://stackoverflow.com/a/60237868/9697329