Repository navigation
Cannot build or install slycot on Ubuntu #177
Copy link
Copy link
Closed
Labels
build systemIssues with compiling, linking and installing SlycotIssues with compiling, linking and installing Slycot
Description
Activity
- addedbuild systemIssues with compiling, linking and installing SlycotIssues with compiling, linking and installing Slycot
on Jun 30, 2022 - What comes after the
SKBuildError(? - Have you tried using the
python3-numpy-devpackage from Ubuntu instead of pip?
- What comes after the
apt update ; apt install python3 python3-dev gcc gfortran libopenblas-dev python3-pip cmake pip install numpy scikit-build pip install -v slycotI can reproduce the error with the exact same commands in a docker container, but it built successfully if I installed python3-numpy with apt first and don't get any intermediate pip installations of numpy or scikit-build.
Strangely enough:
root@baaf58a31626:/# apt update ; apt install python3 python3-dev gcc gfortran libopenblas-dev python3-pip cmake python3-numpy ... Get:155 http://archive.ubuntu.com/ubuntu jammy/main amd64 python3-numpy amd64 1:1.21.5-1build2 [3464 kB] ... root@baaf58a31626:/# pip install -v slycot ... Collecting numpy Downloading numpy-1.23.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (17.0 MB) ... Successfully installed cmake-3.22.5 distro-1.7.0 numpy-1.23.0 packaging-21.3 pyparsing-3.0.9 scikit-build-0.15.0 setuptools-62.6.0 wheel-0.37.1 ... -- Found NumPy: /usr/lib/python3/dist-packages/numpy/core/include (found version "1.21.5") ... Successfully installed slycot-0.4.0 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venvSo maybe you found an incompatibility with NumPy 1.23.0
Thanks for the quick reply !
Indeed I hadn't tried with old numpy versions, but it works with numpy 1.21, installing it like you did.Numpy 1.23.1 and Slycot 0.5.0 have been released
Metadata
Metadata
Assignees
Labels
build systemIssues with compiling, linking and installing SlycotIssues with compiling, linking and installing Slycot
I'm not able to get slycot to install on Ubuntu 22.04.
This can be reproduced in docker: from a vanilla ubuntu, I install all dependancies then try to perform a pip install:
But I end up with the following error:
Note that I get the same error when trying to build master from source directly.