thomas-haslwanter / scikit-kinematics

Python functions for working with 3D kinematics.
Other
129 stars 45 forks source link

Raspbian Buster installation anomaly #34

Open baqwas opened 5 years ago

baqwas commented 5 years ago

Unable to use scikit-kinematics package under Raspbian Buster: Linux raspbari10 4.19.58-v7+ #1245 SMP Fri Jul 12 17:25:51 BST 2019 armv7l GNU/Linux Installation via pip3 (19.2.1) or setup.py (python 3.7.3) worked fine without any error/warning messages.

Unfortunately, importing module into a python3 environment failed with following stream of messages (apologies for the length):

>>> import skinematics as skin
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/projects/scikit-kinematics/skinematics/__init__.py", line 29, in <module>
    importlib.import_module('.'+_m, package='skinematics')
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "/home/pi/projects/scikit-kinematics/skinematics/imus.py", line 28, in <module>
    from scipy.integrate import cumtrapz
  File "/usr/local/lib/python3.7/dist-packages/scipy/integrate/__init__.py", line 89, in <module>
    from .quadrature import *
  File "/usr/local/lib/python3.7/dist-packages/scipy/integrate/quadrature.py", line 13, in <module>
    from scipy.special import roots_legendre
  File "/usr/local/lib/python3.7/dist-packages/scipy/special/__init__.py", line 641, in <module>
    from ._ufuncs import *
ImportError: libf77blas.so.3: cannot open shared object file: No such file or directory
>>> 

I did dutifully update all supporting modules/packages explicitly except BLAS because I did not have instructions for the latter. Thanks for looking into this. Kind regards.

P.S. I did revisit BLAS as follows:

pi@raspbari10:~/projects/scikit-kinematics $ sudo apt install libblas-dev liblapack-dev
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libblas-dev is already the newest version (3.8.0-2).
libblas-dev set to manually installed.
liblapack-dev is already the newest version (3.8.0-2).
liblapack-dev set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
pi@raspbari10:~/projects/scikit-kinematics $