I am facing with two errors, 1 is a numpy failing to import (I have open a new issue in numpy github as per the instructions in the error command line) and another is a ModuleNotFoundError.
I am currently running on Rasbian Buster on a Raspberry Pi4 4GB, using python 3.7 and numpy v1.17.3.
Below is the code I enter which I follow from the github page.
deepspeech --model deepspeech-0.5.1-models/output_graph.pbmm --alphabet deepspeech-0.5.1-models/alphabet.txt --lm deepspeech-0.5.1-models/lm.binary --trie deepspeech-0.5.1-models/trie --audio audio/2830-3980-0043.wav
The error is as listed:
Traceback (most recent call last):
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/numpy/core/init.py”, line 17, in
from . import multiarray
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/numpy/core/multiarray.py”, line 14, in
from . import overrides
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/numpy/core/overrides.py”, line 7, in
from numpy.core._multiarray_umath import (
ImportError: libf77blas.so.3: 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 “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/numpy/init.py”, line 142, in
from . import core
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/numpy/core/init.py”, line 47, in
raise ImportError(msg)
ImportError:
IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
Importing the numpy c-extensions failed.
-
Try uninstalling and reinstalling numpy.
-
If you have already done that, then:
- Check that you expected to use Python3.7 from “/home/pi/tmp/deepspeech-venv/bin/python3”,
and that you have no directories in your PATH or PYTHONPATH that can
interfere with the Python and numpy version “1.17.3” you’re trying to use. - If (1) looks fine, you can open a new issue at
https://github.com/numpy/numpy/issues. Please include details on:- how you installed Python
- how you installed numpy
- your operating system
- whether or not you have multiple versions of Python installed
- if you built from source, your compiler versions and ideally a build log
- Check that you expected to use Python3.7 from “/home/pi/tmp/deepspeech-venv/bin/python3”,
-
If you’re working with a numpy git repository, try
git clean -xdf
(removes all files not under version control) and rebuild numpy.
Note: this error has many possible causes, so please don’t comment on
an existing issue about this - open a new one instead.
Original error was: libf77blas.so.3: cannot open shared object file: No such file or directory
Traceback (most recent call last):
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/deepspeech/impl.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1006, in _gcd_import
File “”, line 983, in _find_and_load
File “”, line 967, in _find_and_load_unlocked
File “”, line 670, in _load_unlocked
File “”, line 583, in module_from_spec
File “”, line 1043, in create_module
File “”, line 219, in _call_with_frames_removed
ImportError: numpy.core.multiarray failed to import
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/home/pi/tmp/deepspeech-venv/bin/deepspeech”, line 5, in
from deepspeech.client import main
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/deepspeech/init.py”, line 23, in
from deepspeech.impl import PrintVersions as printVersions
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/deepspeech/impl.py”, line 17, in
_impl = swig_import_helper()
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/site-packages/deepspeech/impl.py”, line 16, in swig_import_helper
return importlib.import_module(’_impl’)
File “/home/pi/tmp/deepspeech-venv/lib/python3.7/importlib/init.py”, line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named ‘_impl’