Closed repole closed 3 years ago
Thanks for your report. For numpy to work, you need to install:
sudo apt install libatlas3-base libgfortran5
I needed the same dependencies for Rasa on ARM.
Can you confirm that it works when you install these packages in the running Docker container?
Gave that shot, seems they were already installed?
root@satellite1:/# apt install libatlas3-base libgfortran5
Reading package lists... Done
Building dependency tree
Reading state information... Done
libgfortran5 is already the newest version (9.2.1-9ubuntu2).
libgfortran5 set to manually installed.
libatlas3-base is already the newest version (3.10.3-8ubuntu5).
0 upgraded, 0 newly installed, 0 to remove and 4 not upgraded.
Also tried running the install command mentioned in the README, which did seem to update a few things:
root@satellite1:/# apt-get install liblapack3 libatlas-base-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
libatlas-doc liblapack-doc
The following NEW packages will be installed:
libatlas-base-dev liblapack3
0 upgraded, 2 newly installed, 0 to remove and 4 not upgraded.
Need to get 4502 kB of archives.
After this operation, 22.0 MB of additional disk space will be used.
Get:1 http://ports.ubuntu.com/ubuntu-ports eoan/universe armhf libatlas-base-dev armhf 3.10.3-8ubuntu5 [2883 kB]
Get:2 http://ports.ubuntu.com/ubuntu-ports eoan/main armhf liblapack3 armhf 3.8.0-2 [1619 kB]
Fetched 4502 kB in 2s (2777 kB/s)
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libatlas-base-dev:armhf.
(Reading database ... 13263 files and directories currently installed.)
Preparing to unpack .../libatlas-base-dev_3.10.3-8ubuntu5_armhf.deb ...
Unpacking libatlas-base-dev:armhf (3.10.3-8ubuntu5) ...
Selecting previously unselected package liblapack3:armhf.
Preparing to unpack .../liblapack3_3.8.0-2_armhf.deb ...
Unpacking liblapack3:armhf (3.8.0-2) ...
Setting up liblapack3:armhf (3.8.0-2) ...
Setting up libatlas-base-dev:armhf (3.10.3-8ubuntu5) ...
update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/libblas.so to provide /usr/lib/arm-linux-gnueabihf/libblas.so (libblas.so-arm-linux-gnueabihf) in auto mode
update-alternatives: using /usr/lib/arm-linux-gnueabihf/atlas/liblapack.so to provide /usr/lib/arm-linux-gnueabihf/liblapack.so (liblapack.so-arm-linux-gnueabihf) in auto mode
But still got the same error after restarting Rhasspy.
Finally tried just installing the library numpy was complaining about (apt-get install libopenblas-dev
), and that seemed to solve my issues. Would assume that line just needs to get thrown into the Dockerfile and things should be good to go?
Great, thanks for testing this! Yes, we'll have to install this library then in the Dockerfile.
I added this in https://github.com/rhasspy/rhasspy/commit/be756fa138431bee62fdff139bd0506d4224fb2e. @synesthesiam this should suffice to fix this, no?
Awesome, thanks! I'll re-built the image and push it up. I tested this on amd64
and didn't have any issue with Raven. I wonder if there is something different in the ARM packages?
Really excited to try this out. Unfortunately the latest Rhasspy docker image doesn't seem to want to play nice with Raven thanks to a NumPy packaging issue: