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

Support Python 3.12 #525

Closed
chaostheory88 opened this issue Nov 16, 2023 · 1 comment
Closed

Support Python 3.12 #525

chaostheory88 opened this issue Nov 16, 2023 · 1 comment
Assignees

Comments

@chaostheory88
Copy link

Hi, I'm getting the following error while trying to install on Fedora 39 with Python 3.12.0. Is support for this Python release coming soon? Or should I switch to an older version?

pip3 install -U galois
Defaulting to user installation because normal site-packages is not writeable
Collecting galois
  Using cached galois-0.3.6-py3-none-any.whl.metadata (15 kB)
Requirement already satisfied: numpy<1.26,>=1.21.0 in /usr/lib64/python3.12/site-packages (from galois) (1.24.4)
Collecting numba<0.59,>=0.55 (from galois)
  Using cached numba-0.58.1.tar.gz (2.6 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [21 lines of output]
      Traceback (most recent call last):
        File "/usr/local/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/usr/local/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/usr/local/lib64/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-x2kbwjr0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 355, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-x2kbwjr0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-x2kbwjr0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 507, in run_setup
          super(_BuildMetaLegacyBackend, self).run_setup(setup_script=setup_script)
        File "/tmp/pip-build-env-x2kbwjr0/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in run_setup
          exec(code, locals())
        File "<string>", line 51, in <module>
        File "<string>", line 48, in _guard_py_ver
      RuntimeError: Cannot install on Python version 3.12.0; only versions >=3.8,<3.12 are supported.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
@mhostetter
Copy link
Owner

Python 3.12 is not supported yet. We are waiting on Numba to support Python 3.12, numba/numba#9197.

The latest supported version is Python 3.11.

@mhostetter mhostetter changed the title Installation fails on Python 3.12.0 on Fedora 39 Support Python 3.12 Nov 16, 2023
@mhostetter mhostetter pinned this issue Nov 16, 2023
@mhostetter mhostetter self-assigned this Jan 31, 2024
mhostetter added a commit that referenced this issue Jan 31, 2024
mhostetter added a commit that referenced this issue Feb 1, 2024
@mhostetter mhostetter unpinned this issue Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants