kima-org / kima

A data analysis framework for exoplanet detection
http://www.kima.science
MIT License
4 stars 1 forks source link

Installation failling in Ubuntu 24.04.1 LTS x86_64 #21

Open Kamuish opened 2 months ago

Kamuish commented 2 months ago

Hi,

A fresh clone of the repository fails to install with the following output:

Building wheels for collected packages: kima
  Building editable for kima (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building editable for kima (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      *** scikit-build-core 0.10.5 using CMake 3.28.3 (editable)
      *** Configuring CMake...
      loading initial cache file build/cp312-abi3-linux_x86_64/CMakeInit.txt
      CMake Error at /usr/share/cmake-3.28/Modules/CMakeDetermineCXXCompiler.cmake:48 (message):
        Could not find compiler set in environment variable CXX:

        x86_64-linux-gnu-g++.

      Call Stack (most recent call first):
        CMakeLists.txt:3 (project)

      CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage
      CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
      -- Configuring incomplete, errors occurred!

      *** CMake configuration failed
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for kima
Failed to build kima

My cmake version is 3.28.3, so that shouldn't be the problem. Any clue on what is going on?

Ps: the pypi version works as expected (i.e., pip install kima), it is only the latest github version that has issues

j-faria commented 1 month ago

I'll try to investigate this asap.

j-faria commented 1 month ago

What command did you run to install? From the error above it looks like Cmake can't find the compiler. This ran just now with a fresh clone and doing pip install .