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

Fail to install on python 3.12 #963

Open
alneberg opened this issue Mar 20, 2024 · 0 comments
Open

Fail to install on python 3.12 #963

alneberg opened this issue Mar 20, 2024 · 0 comments

Comments

@alneberg
Copy link

I got this error when installing on python 3.12:

Collecting configparser
  Downloading configparser-6.0.1-py3-none-any.whl.metadata (10 kB)
Downloading configparser-6.0.1-py3-none-any.whl (19 kB)
Installing collected packages: configparser
Successfully installed configparser-6.0.1
❯ python setup.py install
Traceback (most recent call last):
  File "/Users/johannesalneberg/repos/bioconda-utils/setup.py", line 34, in <module>
    version=versioneer.get_version(),
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johannesalneberg/repos/bioconda-utils/versioneer.py", line 1480, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/Users/johannesalneberg/repos/bioconda-utils/versioneer.py", line 1412, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/johannesalneberg/repos/bioconda-utils/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

I found that the SafeConfigParser has been removed:
python/cpython#89336

Downgrading to python 3.10 fixed my issue for this time but thought you might want to know.

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

1 participant