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

ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory #262

Closed
Andy1314Chen opened this issue Aug 25, 2017 · 8 comments

Comments

@Andy1314Chen
Copy link

Raspberry pi3.
just follow the docs, but i got the error.

@Andy1314Chen
Copy link
Author

I downloaded the pre-packaged Snowboy binaries and their Python wrappers from https://s3-us-west-2.amazonaws.com/snowboy/snowboy-releases/rpi-arm-raspbian-8.0-1.1.1.tar.bz2 (for Raspberry Pi with Raspbian 8.0, all versions (1/2/3/Zero)). I run the demo.py with Python2, it's OK. However , with the Python3 , I got the Error.

Import Error: dynamic module does not define init function (PyInit__snowboydetect)

So, I google it , but i failed. They all talked about 'swig version', 'make',etc.

@chenguoguo
Copy link
Collaborator

First of all, for libf77blas.so.3, you have to install ATLAS, something like sudo apt-get install libatlas-base-dev

Then, for Python3, you cannot use the pre-compiled version. Please use our github repository and use https://github.com/Kitt-AI/snowboy/tree/master/swig/Python3 and https://github.com/Kitt-AI/snowboy/tree/master/examples/Python3.

@Flowdeeps
Copy link

Andy's comment totally fixed my issue. With the older v1 AIY Pi kit and the image from 2017 you have to specify python2 and not python as it appears that python3 is the system default.

@tall-josh
Copy link

Thanks @chenguoguo,
I just got TF1.8 with Python3.5 on a fresh install of Raspbian9.0. Thankfully, all I needed was the libatlas-base-dev.

So.

sudo apt-get install python3-pip python3-dev
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo pip3 install /tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo apt-get install libatlas-base-dev

@jshep321
Copy link

Thanks @chenguoguo,
I just got TF1.8 with Python3.5 on a fresh install of Raspbian9.0. Thankfully, all I needed was the libatlas-base-dev.

So.

sudo apt-get install python3-pip python3-dev
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo pip3 install /tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo apt-get install libatlas-base-dev

for us copy/pasters: need the ./ instead of just / in line 3:
sudo apt-get install python3-pip python3-dev
wget https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.8.0/tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo pip3 install ./tensorflow-1.8.0-cp35-none-linux_armv7l.whl
sudo apt-get install libatlas-base-dev

@clonbg
Copy link

clonbg commented Jul 18, 2019

sudo apt-get install libatlas-base-dev

Thanks¡¡¡¡

@krizmo1992
Copy link

krizmo1992 commented Dec 27, 2019

I just used the following and it fixed the issue.
sudo ln -s /usr/lib/libf77blas.so.3 /usr/lib/libf77blas.so.3gf

@fabianmendes
Copy link

I just used the following and it fixed the issue.
sudo ln -s /usr/lib/libf77blas.so.3 /usr/lib/libf77blas.so.3gf

Just this one helped me. Thanks

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

8 participants