Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing from requirements-file fails because of numba version #74

Open
benatouba opened this issue Nov 23, 2024 · 2 comments · Fixed by #75
Open

Installing from requirements-file fails because of numba version #74

benatouba opened this issue Nov 23, 2024 · 2 comments · Fixed by #75
Labels

Comments

@benatouba
Copy link

Numba version is not specified in requirements files and pyproject-file.

The installation fails (tested on python>=3.11) as pip solves version constraints by choosing numba 0.53.1

Numba added support for numpy2.0 in 0.60. I suggest using this version.

Stacktrace:

  × Failed to download and build `numba==0.53.1`
  ╰─▶ Build backend failed to determine requirements with `build_wheel()` (exit status: 1)

      [stderr]
      Traceback (most recent call last):
        File "<string>", line 14, in <module>
        File "/home/ben/.cache/uv/builds-v0/.tmpegLw1v/lib/python3.11/site-packages/setuptools/build_meta.py", line 334,
      in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=[])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/ben/.cache/uv/builds-v0/.tmpegLw1v/lib/python3.11/site-packages/setuptools/build_meta.py", line 304,
      in _get_build_requires
          self.run_setup()
        File "/home/ben/.cache/uv/builds-v0/.tmpegLw1v/lib/python3.11/site-packages/setuptools/build_meta.py", line 522,
      in run_setup
          super().run_setup(setup_script=setup_script)
        File "/home/ben/.cache/uv/builds-v0/.tmpegLw1v/lib/python3.11/site-packages/setuptools/build_meta.py", line 320,
      in run_setup
          exec(code, locals())
        File "<string>", line 50, in <module>
        File "<string>", line 47, in _guard_py_ver
      RuntimeError: Cannot install on Python version 3.11.6; only versions >=3.6,<3.10 are supported.

  help: `numba` (v0.53.1) was included because `cosipymodel` (v2.0.0) depends on `numba
benatouba added a commit to benatouba/cosipy that referenced this issue Nov 23, 2024
benatouba added a commit to benatouba/cosipy that referenced this issue Nov 23, 2024
@gampnico
Copy link
Collaborator

Thanks, did this occur with pip install cosipymodel or with pip install -r requirements.txt (or some other installation method)?

@benatouba
Copy link
Author

Only when installing via any requirements file or editable mode (pip install -e .). The released version does not seem to be affected.

@gampnico gampnico added the bug label Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants