-
Notifications
You must be signed in to change notification settings - Fork 102
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.10: No module named 'distutils.util' #463
Comments
What OS are you using? If ubuntu or debian, you can install python3-distutils with apt.
|
https://github.com/pypa/distutils/blob/main/distutils/util.py#L340-L353 |
Porting the distutils.util.strtobool method (fix #463)
@laughingman7743 , thank you for the quick fix! FYI, I am using Ubuntu and distutils had already been installed before I filed the ticket. Before your fix was in, I simply switched to a Python 3.9 environment as a workaround. However, I am curious why Python 3.10 tests have been passing in pyathena Github ci/cd all along? |
I use Ubuntu for testing with GitHubActions, and Python 3.10 seems to work fine. It's curious. 🤔 |
I believe python 3.10.12 is where dateutils is being deprecated. Which minor version is being used in the builds? |
Thanks. I wonder if this could be due to me using Ubuntu on WSL2 and somehow that makes dateutils work from Python 3.9 but not from Python 3.10.12. |
It has been fixed in 3.0.6, so you don't have to worry about it anymore. |
With Python 3.10, the following code throws "ModuleNotFoundError: No module named 'distutils.util'" on pyathena/connection.py:13 line "from distutils.util import strtobool".
It appears that distutils is deprecated in Python 3.10 and will be permanently removed in Python 3.12.
The text was updated successfully, but these errors were encountered: