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

Add support for Python 3.12 #1222

Open
ammar-khan opened this issue May 31, 2024 · 3 comments
Open

Add support for Python 3.12 #1222

ammar-khan opened this issue May 31, 2024 · 3 comments

Comments

@ammar-khan
Copy link

Please add Python 3.12 support

@edgarrmondragon
Copy link
Contributor

This project is compatible with Python 3.12. What problem(s) are you running into?

@johnthagen
Copy link

Probably related to the fact there hasn't been a release in over a year and as such the trove classifier does not indicate that Python 3.12 is officially tested/supported

@gatoniel
Copy link

When using Python 3.12, I get the following error

AttributeError: module 'pkgutil' has no attribute 'ImpImporter'. Did you mean: 'zipimporter'?

It can be solved by prepending to the session.install command the following (based on https://stackoverflow.com/a/77364602/10106730)

session.run("python", "-m", "ensurepip", "--upgrade")
session.run("python", "-m", "pip", "install", "--upgrade", "setuptools")
# now comes the
session.install(...)

However, after doing so, I got the warning that nox-poetry was using the pip from .pyenv/shims and not the one from the temporally created virtualenv. Hence, I switched all session.install to session.run("python", "-m", "pip", "install", ...).

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

4 participants