DLTA-AI icon indicating copy to clipboard operation
DLTA-AI copied to clipboard

installation issue with uv and python3.13

Open mio-19 opened this issue 10 months ago • 0 comments

I am using a package manager called uv https://github.com/astral-sh/uv

I am getting following errors:

**                                                                                                                                                                                  04:51:21 pm
uv tool install --python=3.13 --with=numpy DLTA-AI
Resolved 85 packages in 104ms
  × Failed to build `lap==0.4.0`
  ├─▶ The build backend returned an error
  ╰─▶ Call to `setuptools.build_meta:__legacy__.build_wheel` failed (exit status: 1)

      [stderr]
      <string>:4: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
        sys.path.pop(0)
      Partial import of lap during the build process.
      Traceback (most recent call last):
        File "<string>", line 127, in get_numpy_status
      ModuleNotFoundError: No module named 'numpy'
      Traceback (most recent call last):
        File "<string>", line 11, in <module>
          wheel_filename = backend.build_wheel("/Users/user/.cache/uv/builds-v0/.tmpeVm8tH", {}, None)
        File "/Users/user/.cache/uv/builds-v0/.tmp0jvrAx/lib/python3.13/site-packages/setuptools/build_meta.py", line 435, in build_wheel
          return _build(['bdist_wheel'])
        File "/Users/user/.cache/uv/builds-v0/.tmp0jvrAx/lib/python3.13/site-packages/setuptools/build_meta.py", line 426, in _build
          return self._build_with_temp_dir(
                 ~~~~~~~~~~~~~~~~~~~~~~~~~^
              cmd,
              ^^^^
          ...<3 lines>...
              self._arbitrary_args(config_settings),
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
          )
          ^
        File "/Users/user/.cache/uv/builds-v0/.tmp0jvrAx/lib/python3.13/site-packages/setuptools/build_meta.py", line 407, in _build_with_temp_dir
          self.run_setup()
          ~~~~~~~~~~~~~~^^
        File "/Users/user/.cache/uv/builds-v0/.tmp0jvrAx/lib/python3.13/site-packages/setuptools/build_meta.py", line 522, in run_setup
          super().run_setup(setup_script=setup_script)
          ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/Users/user/.cache/uv/builds-v0/.tmp0jvrAx/lib/python3.13/site-packages/setuptools/build_meta.py", line 320, in run_setup
          exec(code, locals())
          ~~~~^^^^^^^^^^^^^^^^
        File "<string>", line 236, in <module>
        File "<string>", line 220, in setup_package
      ImportError: lap requires numpy, please "pip install numpy".

      hint: This usually indicates a problem with the package or the build environment.
  help: `lap` (v0.4.0) was included because `dlta-ai` (v1.1) depends on `lap`

mio-19 avatar Feb 04 '25 05:02 mio-19