Skip to content

Installation issue from repository #61

@tobiscode

Description

@tobiscode

Hi,

I tried to install the entire package from the git repository but it failed:

❯ pip install --upgrade -e .[dev]
Obtaining file:///home/download/s2let
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Installing backend dependencies ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /envfolder/upsample/lib/python3.13/site-packages (from pys2let==2.2.7) (2.3.1)
Requirement already satisfied: scipy in /envfolder/upsample/lib/python3.13/site-packages (from pys2let==2.2.7) (1.16.0)
WARNING: pys2let 2.2.7 does not provide the extra 'dev'
Building wheels for collected packages: pys2let
  Building editable for pys2let (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building editable for pys2let (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [44 lines of output]
      *** scikit-build-core 0.11.5 using CMake 3.26.5 (editable)
      *** Configuring CMake...
      Traceback (most recent call last):
        File "/envfolder/upsample/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in <module>
          main()
          ~~~~^^
        File "/envfolder/upsample/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
          json_out["return_val"] = hook(**hook_input["kwargs"])
                                   ~~~~^^^^^^^^^^^^^^^^^^^^^^^^
        File "/envfolder/upsample/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 303, in build_editable
          return hook(wheel_directory, config_settings, metadata_directory)
        File "/tmp/pip-build-env-rp6ajnn8/overlay/lib/python3.13/site-packages/scikit_build_core/build/__init__.py", line 57, in build_editable
          return _build_wheel_impl(
                 ~~~~~~~~~~~~~~~~~^
              wheel_directory,
              ^^^^^^^^^^^^^^^^
          ...<2 lines>...
              editable=True,
              ^^^^^^^^^^^^^^
          ).wheel_filename
          ^
        File "/tmp/pip-build-env-rp6ajnn8/overlay/lib/python3.13/site-packages/scikit_build_core/build/wheel.py", line 176, in _build_wheel_impl
          return _build_wheel_impl_impl(
              wheel_directory,
          ...<5 lines>...
              pyproject=pyproject,
          )
        File "/tmp/pip-build-env-rp6ajnn8/overlay/lib/python3.13/site-packages/scikit_build_core/build/wheel.py", line 429, in _build_wheel_impl_impl
          builder.configure(
          ~~~~~~~~~~~~~~~~~^
              defines=defines,
              ^^^^^^^^^^^^^^^^
          ...<2 lines>...
              version=metadata.version,
              ^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
        File "/tmp/pip-build-env-rp6ajnn8/overlay/lib/python3.13/site-packages/scikit_build_core/builder/builder.py", line 191, in configure
          local_def = set_environment_for_gen(
              current_gen, self.config.cmake, self.config.env, self.settings.ninja
          )
        File "/tmp/pip-build-env-rp6ajnn8/overlay/lib/python3.13/site-packages/scikit_build_core/builder/generator.py", line 130, in set_environment_for_gen
          raise NinjaNotFoundError(msg)
      scikit_build_core.errors.NinjaNotFoundError: Ninja is required to build
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building editable for pys2let
Failed to build pys2let
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pys2let)

I removed the [dev] because of the warning and installed ninja into my environment but it just changed the error message:

❯ pip install --upgrade -e .
Obtaining file:///home/download/s2let
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /envfolder/upsample/lib/python3.13/site-packages (from pys2let==2.2.7) (2.3.1)
Requirement already satisfied: scipy in /envfolder/upsample/lib/python3.13/site-packages (from pys2let==2.2.7) (1.16.0)
Building wheels for collected packages: pys2let
  Building editable for pys2let (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building editable for pys2let (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      2025-07-24 09:56:34,773 - scikit_build_core - WARNING - ninja should not be in build-system.requires - scikit-build-core will inject it as needed
      *** scikit-build-core 0.11.5 using CMake 3.26.5 (editable)
      *** Configuring CMake...
      loading initial cache file build/CMakeInit.txt
      -- The C compiler identification is GNU 11.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
      CMake Error at cmake/conan_provider.cmake:649 (find_program):
        Could not find CONAN_COMMAND using the following names: conan
      Call Stack (most recent call first):
        CMakeLists.txt:29 (find_package)
      
      
      CMake Error at CMakeLists.txt:29 (find_package):
        By not providing "Findastro-informatics-so3.cmake" in CMAKE_MODULE_PATH
        this project has asked CMake to find a package configuration file provided
        by "astro-informatics-so3", but CMake did not find one.
      
        Could not find a package configuration file provided by
        "astro-informatics-so3" with any of the following names:
      
          astro-informatics-so3Config.cmake
          astro-informatics-so3-config.cmake
      
        Add the installation prefix of "astro-informatics-so3" to CMAKE_PREFIX_PATH
        or set "astro-informatics-so3_DIR" to a directory containing one of the
        above files.  If "astro-informatics-so3" provides a separate development
        package or SDK, be sure it has been installed.
      
      
      -- 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 pys2let
Failed to build pys2let
ERROR: Failed to build installable wheels for some pyproject.toml based projects (pys2let)

Is there something I'm doing wrong? I appreciate all the help. (Installing using pip install pys2let works, and running a test script as well.)

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions