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

python 3.12 support #416

Closed
sikmir opened this issue May 25, 2024 · 4 comments · Fixed by #418
Closed

python 3.12 support #416

sikmir opened this issue May 25, 2024 · 4 comments · Fixed by #418

Comments

@sikmir
Copy link

sikmir commented May 25, 2024

Python 3.12 removed distutils after it being deprecated since Python 3.10. See https://docs.python.org/3/whatsnew/3.12.html#distutils

python3.12-pyogrio> Traceback (most recent call last):
python3.12-pyogrio>   File "/private/tmp/nix-build-python3.12-pyogrio-0.8.0.drv-0/source/setup.py", line 8, in <module>
python3.12-pyogrio>     from distutils import log
python3.12-pyogrio> ModuleNotFoundError: No module named 'distutils'
@jorisvandenbossche
Copy link
Member

We should definitely clean that up, but it's also strange this is giving problems for you (we test Python 3.12 on CI). What version of setuptools do you have installed in that environment? (potentially an older version of setuptools might not install distutils as well)

@sikmir
Copy link
Author

sikmir commented May 25, 2024

Replacing distutils with setuptools._distutils solves the problem for me.
setuptools 69.5.1

@jorisvandenbossche
Copy link
Member

How is your setuptools installed? Normally installing setuptools also ensures there is an importable distutils (which points to setuptools._distutils)

@sikmir
Copy link
Author

sikmir commented May 25, 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

Successfully merging a pull request may close this issue.

2 participants