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

FYI: SafeConfigParser in versioneer not compatible with Python 3.12 #315

Open
laserson opened this issue Apr 3, 2024 · 1 comment
Open

Comments

@laserson
Copy link
Contributor

laserson commented Apr 3, 2024

Python 3.12 removed the SafeConfigParser class:
https://docs.python.org/3.12/whatsnew/3.12.html#configparser

The versioneer.py file included in your repo is therefore not compatible with Python 3.12. Just something to keep in mind as time goes on.

@VincentGardeux
Copy link

A quick fix is to download the gimmemotifs-0.18.0.tar.gz from the release section, then

tar -xzvf gimmemotifs-0.18.0.tar.gz
cd gimmemotifs-0.18.0/
sed -i 's/SafeConfigParser/ConfigParser/g' versioneer.py
sed -i 's/readfp/read_file/g' versioneer.py
python3.12 -m pip install .

SafeConfigParser was replaced by ConfigParser in latest Python v3.12

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

2 participants