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 for Python 3.11 #219

Closed
jonbarker68 opened this issue Mar 14, 2023 · 2 comments · Fixed by #276
Closed

Support for Python 3.11 #219

jonbarker68 opened this issue Mar 14, 2023 · 2 comments · Fixed by #276
Labels
enhancement New feature or request

Comments

@jonbarker68
Copy link
Contributor

Currently appear to be two external dependencies blocking upgrade to 3.11: pytorch and numba

  • pytorch: Nightly build of pytorch currently runs on 3.11 but I think best to wait until pytorch 2.0 release due in early March.
  • numba: a Python 3.11 compatible version is due this month, see discussion here

Plan to test against Python 3.11 as soon as these are released

@jonbarker68 jonbarker68 added the enhancement New feature or request label Mar 14, 2023
@jonbarker68
Copy link
Contributor Author

Update:

  • pytorch 2.0 is now out and supports Python 3.11. But it does seem to be leading to significant changes in test results. Needs some investigation.
  • numba - sounds like it will still be another week or two

@jonbarker68
Copy link
Contributor Author

jonbarker68 commented Mar 23, 2023

Latest numba on github is supposed to support Python 3.11

pip install git+https://github.com/numba/numba.git

But it has llvmlite v0.40.0dev0 as a prerequisite

pip install git+https://github.com/numba/[email protected]

On the mac this has further issues see discussion (here)[https://github.com/cvxgrp/pymde/issues/49]

brew install llvm@11
LLVM_CONFIG="/opt/homebrew/Cellar/llvm@11/11.1.0_4/bin/llvm-config" arch -arm64 python3 -m pip  install git+https://github.com/numba/[email protected]

(Note, require llvm@11, the llvmlite build states "Building llvmlite requires LLVM 11.x.x")

But this still fails with a lot of "Undefined symbols for architecture arm64"

Might have to wait a bit longer for a numba release on PyPI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant