Skip to content

pip install . fails #33

@dscarmo

Description

@dscarmo

Hello, when following current instructions pip install . fails with:

pip install .
Processing /home/diedre/micview
  Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in /home/diedre/miniconda3/envs/micview/lib/python3.8/site-packages (from MICView==1.0.0) (75.1.0)
Collecting numpy>=1.22 (from MICView==1.0.0)
  Using cached numpy-1.24.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (5.6 kB)
Collecting pillow>=9.0.0 (from MICView==1.0.0)
  Using cached pillow-10.4.0-cp38-cp38-manylinux_2_28_x86_64.whl.metadata (9.2 kB)
Collecting SimpleITK>=2.3.0 (from MICView==1.0.0)
  Downloading simpleitk-2.5.0.tar.gz (2.1 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.1/2.1 MB 9.0 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting screeninfo>=0.8.1 (from MICView==1.0.0)
  Downloading screeninfo-0.8.1-py3-none-any.whl.metadata (2.9 kB)
Collecting pydicom (from MICView==1.0.0)
  Using cached pydicom-2.4.4-py3-none-any.whl.metadata (7.8 kB)
Collecting dicom2nifti (from MICView==1.0.0)
  Downloading dicom2nifti-2.6.2-py3-none-any.whl.metadata (1.5 kB)
Collecting matplotlib (from MICView==1.0.0)
  Using cached matplotlib-3.7.5-cp38-cp38-manylinux_2_12_x86_64.manylinux2010_x86_64.whl.metadata (5.7 kB)
Collecting nibabel (from dicom2nifti->MICView==1.0.0)
  Using cached nibabel-5.2.1-py3-none-any.whl.metadata (8.8 kB)
Collecting scipy (from dicom2nifti->MICView==1.0.0)
  Using cached scipy-1.10.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (58 kB)
INFO: pip is looking at multiple versions of dicom2nifti to determine which version is compatible with other requirements. This could take a while.
Collecting dicom2nifti (from MICView==1.0.0)
  Downloading dicom2nifti-2.6.1-py3-none-any.whl.metadata (1.5 kB)
  Downloading dicom2nifti-2.6.0-py3-none-any.whl.metadata (1.5 kB)
Collecting python-gdcm (from dicom2nifti->MICView==1.0.0)
  Downloading python_gdcm-3.0.26.tar.gz (3.4 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.4/3.4 MB 7.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      *** scikit-build-core 0.9.10 using CMake 4.1.0 (wheel)
      *** Configuring CMake...
      loading initial cache file /tmp/tmpj1t6x86j/build/CMakeInit.txt
      CMake Error: The source directory "/tmp/pip-install-e4o4uocp/python-gdcm_68442fd54cd7403685f099ac34bf8ddb" does not appear to contain CMakeLists.txt.
      Specify --help for usage, or press the help button on the CMake GUI.
      Traceback (most recent call last):
        File "/home/diedre/miniconda3/envs/micview/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/diedre/miniconda3/envs/micview/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/diedre/miniconda3/envs/micview/lib/python3.8/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 152, in prepare_metadata_for_build_wheel
          whl_basename = backend.build_wheel(metadata_directory, config_settings)
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/hatchling/build.py", line 58, in build_wheel
          return os.path.basename(next(builder.build(directory=wheel_directory, versions=['standard'])))
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/hatchling/builders/plugin/interface.py", line 147, in build
          build_hook.initialize(version, build_data)
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/scikit_build_core/hatch/plugin.py", line 125, in initialize
          self._initialize(build_data=build_data)
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/scikit_build_core/hatch/plugin.py", line 226, in _initialize
          builder.configure(
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/scikit_build_core/builder/builder.py", line 237, in configure
          self.config.configure(
        File "/tmp/pip-build-env-triqxc72/overlay/lib/python3.8/site-packages/scikit_build_core/cmake.py", line 221, in configure
          raise FailedLiveProcessError(msg) from None
      scikit_build_core.errors.FailedLiveProcessError: CMake configuration failed
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions