CPCLAB-UNIPI / SIPPY

Systems Identification Package for PYthon
GNU Lesser General Public License v3.0
268 stars 92 forks source link

Fails to install under Windows #33

Open osinenkop opened 2 years ago

osinenkop commented 2 years ago

Installed cmake, sk-build, but setup.py still exists with an error, namely,

error: Setup script exited with ********************************************************************************
scikit-build could not get a working generator for your system. Aborting build.

Building windows wheels for Python 3.8 requires Microsoft Visual Studio 2019.

This is becoming tricky. Probably, dependencies are not sufficiently configured

CameronDevine commented 2 years ago

I have no experience with SIPPY on Windows, but the error message is telling you to install Visual Studio 2019. Installing that might fix your problem.

osinenkop commented 2 years ago

I'll check it out on Linux and report later. Previously (about a year ago), it wasn't quite straightforward under Linux either:)

CPCLAB-UNIPI commented 2 years ago

Dear OsinenkoP, we have not experienced any problem with the installation of SIPPY on Windows or Mac yet. We will investigate the dependencies and required packages to make the SIPPY installation smoother.

SIPPY team

OrangeDog commented 2 years ago

I got this far, because Visual Studio doesn't include a Fortran complier.

  CMake Error at CMakeLists.txt:4 (ENABLE_LANGUAGE):
    The CMAKE_Fortran_COMPILER:

      .venv/scripts/Library/bin/flang.exe

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full
    path to the compiler, or to the compiler name if it is in the PATH.

...

Successfully built sippy-rcognita control future
Failed to build slycot

According to its documentation, a conda build should be a lot easier, as it will also include flang and the other native dependencies.