Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fix installation in Python 3.12 #208

Merged
merged 1 commit into from
Jun 7, 2024

Conversation

israelmcmc
Copy link
Contributor

@israelmcmc israelmcmc commented Jun 6, 2024

From Python 12 release notes

configparser no longer has a SafeConfigParser class. Use the shorter ConfigParser name instead.
configparser.ConfigParser no longer has a readfp method. Use read_file() instead.

I changed those names, and now it works. These were marked as deprecated since Python 3.2, so this change doesn't break the installation for the previous Python version (I checked with Python>=3.9)

Closes #204

@israelmcmc
Copy link
Contributor Author

Same in threeMLl: threeML/threeML#631

@israelmcmc
Copy link
Contributor Author

Note that I needed to use pip install --use-pep517 to test this, as explained on #209, which is an unrelated issue.

@omodei
Copy link
Contributor

omodei commented Jun 7, 2024

Thanks for fixing this!

@omodei omodei merged commit 5312256 into threeML:master Jun 7, 2024
19 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Installation broken in Python v3.12
2 participants