Skip to content

issue of installing&Changing libraries  #241

@0xygens

Description

@0xygens

Hi,
I successfully installed python-fsps. And want to use PADOVA as the isochron library MILES as the stellar spectrum library, and follow the instructions to uninstall and change the library and reinstall. However, the installation was not successful.
Could you provide some insights into this?Thanks for your guidance!
The installation process and error information are as follows:

(pixedfit2) kongxiangming@agn:~/Downloads/fsps-3.2/src$ python -m pip install fsps
Collecting fsps
  Downloading fsps-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (1.4 kB)
Collecting numpy (from fsps)
  Using cached numpy-1.26.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (61 kB)
Downloading fsps-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 944.9 kB/s eta 0:00:00
Using cached numpy-1.26.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (18.2 MB)
Installing collected packages: numpy, fsps
Successfully installed fsps-0.4.5 numpy-1.26.1
(pixedfit2) kongxiangming@agn:~/Downloads/fsps-3.2/src$ pip uninstall fsps
Found existing installation: fsps 0.4.5
Uninstalling fsps-0.4.5:
  Would remove:
    /home/kongxiangming/.conda/envs/pixedfit2/lib/python3.10/site-packages/fsps-0.4.5.dist-info/*
    /home/kongxiangming/.conda/envs/pixedfit2/lib/python3.10/site-packages/fsps.libs/libgfortran-040039e1.so.5.0.0
    /home/kongxiangming/.conda/envs/pixedfit2/lib/python3.10/site-packages/fsps.libs/libquadmath-96973f99.so.0.0.0
    /home/kongxiangming/.conda/envs/pixedfit2/lib/python3.10/site-packages/fsps/*
Proceed (Y/n)? y
  Successfully uninstalled fsps-0.4.5
(pixedfit2) kongxiangming@agn:~/Downloads/fsps-3.2/src$ FFLAGS="-DMIST=0 -DPADOVA=1 -DMILES=1 -DBASEL=0" python -m pip install fsps --no-binary fsps
Collecting fsps
  Using cached fsps-0.4.5.tar.gz (54 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Installing backend dependencies ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /home/kongxiangming/.conda/envs/pixedfit2/lib/python3.10/site-packages (from fsps) (1.26.1)
Building wheels for collected packages: fsps
  Building wheel for fsps (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for fsps (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      *** scikit-build-core 0.5.1 using CMake 3.27.7 (wheel)
      *** Configuring CMake...
      2023-10-20 17:11:05,408 - scikit_build_core - WARNING - libdir/ldlibrary: /home/kongxiangming/.conda/envs/pixedfit2/lib/libpython3.10.a is not a real file!
      2023-10-20 17:11:05,408 - scikit_build_core - WARNING - Can't find a Python library, got libdir=/home/kongxiangming/.conda/envs/pixedfit2/lib, ldlibrary=libpython3.10.a, multiarch=x86_64-linux-gnu, masd=None
      loading initial cache file /tmp/tmpl_bb60du/build/CMakeInit.txt
      -- The C compiler identification is GNU 7.5.0
      -- The Fortran compiler identification is GNU 7.5.0
      -- Detecting C compiler ABI info
      -- Detecting C compiler ABI info - done
      -- Check for working C compiler: /usr/bin/gcc - skipped
      -- Detecting C compile features
      -- Detecting C compile features - done
      -- Detecting Fortran compiler ABI info
      -- Detecting Fortran compiler ABI info - done
      -- Check for working Fortran compiler: /usr/bin/gfortran - skipped
      -- Found Python: /home/kongxiangming/.conda/envs/pixedfit2/bin/python (found version "3.10.13") found components: Interpreter Development.Module NumPy
      -- Configuring done (1.3s)
      CMake Error at /tmp/pip-build-env-rwru3336/normal/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython/Support.cmake:4035 (add_library):
        Cannot find source file:
      
          /tmp/pip-install-puzkp0w9/fsps_8534c0ebc53f480ebd10627ff2cf21d0/src/fsps/libfsps/src/sps_vars.f90
      Call Stack (most recent call first):
        /tmp/pip-build-env-rwru3336/normal/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython.cmake:635 (__Python_add_library)
        src/fsps/CMakeLists.txt:64 (python_add_library)
      
      
      CMake Error at /tmp/pip-build-env-rwru3336/normal/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython/Support.cmake:4035 (add_library):
        No SOURCES given to target: _fsps
      Call Stack (most recent call first):
        /tmp/pip-build-env-rwru3336/normal/lib/python3.10/site-packages/cmake/data/share/cmake-3.27/Modules/FindPython.cmake:635 (__Python_add_library)
        src/fsps/CMakeLists.txt:64 (python_add_library)
      
      
      CMake Generate step failed.  Build files cannot be regenerated correctly.
      
      *** CMake configuration failed
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for fsps
Failed to build fsps
ERROR: Could not build wheels for fsps, which is required to install pyproject.toml-based projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions