Skip to content

numpy pinned at version incompatible with py3.12+ (ditutils) #57

@WillForan

Description

@WillForan

Trying

uv tool run nii2dcm

Fails b/c numpy 1.23.2 (Aug 13, 2022) depends on distutils, removed in python 3.12 (released Oct. 2, 2023)

  × Failed to build `numpy==1.23.2`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 8, in <module>
        File "/home/recontwix/.cache/uv/builds-v0/.tmpgSrEYF/lib/python3.12/site-packages/setuptools/__init__.py", line 10, in <module>
          import distutils.core
      ModuleNotFoundError: No module named 'distutils'

      hint: `distutils` was removed from the standard library in Python 3.12. Consider adding a constraint (like `numpy >1.23.2`) to avoid building a
      version of `numpy` that depends on `distutils`.
  help: `numpy` (v1.23.2) was included because `nii2dcm` (v0.1.6) depends on `numpy`

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