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

The datashape package can not be installed in a python 3.12 env #245

Open
xtianpoli opened this issue Oct 29, 2023 · 1 comment
Open

The datashape package can not be installed in a python 3.12 env #245

xtianpoli opened this issue Oct 29, 2023 · 1 comment

Comments

@xtianpoli
Copy link

The datashape package can not be installed in a python 3.12 environment due to versioneer module which invokes configparser.SafeConfigParser(). This class has been renamed to ConfigParser in Python 3.2. SafeConfigParser then became a deprecated alias and has been removed in Python 3.12.

@VincentGardeux
Copy link

A quick fix is to download the 0.5.4 tar.gz from the release section, then

tar -xzvf 0.5.4.tar.gz
cd datashape-0.5.4/
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