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
Python 3.11 ModuleNotFoundError: No module named 'tomllib' #2983
Comments
Python 3.11 is still in alpha. The released version will have tomllib available, but whatever alpha version you're running might not have it yet. We'll run 3.11 in CI once we're closer to the release date for 3.11. |
I will also note that I have tried testing 3.11-dev in GHA CI, but last time I tried our dependencies weren't 3.11 ready: 0505c8f and https://github.com/psf/black/runs/5504048923?check_suite_focus=true I did actually schedule a reminder to try again when the first beta comes out, but I'd be open to trying again soon. |
Also this did work on |
Would it be possible to change to a try/except (and put back tomli as dep without marker) instead of a condition on the Python version, at least until tomllib is available in Python 3.11 (alpha or not)? I understand 3.11 is still alpha, but I believe many users want to test their code and run their CI tools (i.e. Black) on Python 3.11. Of course I can pin Black to |
Describe the bug
In Python 3.11 it is raising exception with
ModuleNotFoundError
.To Reproduce
Install Python 3.11
$ black .
The resulting error is:
Environment
Additional context
Logs from my CI.
Also, why you haven't did any CI on 3.11?
The text was updated successfully, but these errors were encountered: