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

bundled versioneer 0.18 is incompatible with Python 3.12 #124

Closed
rathann opened this issue Jul 7, 2023 · 1 comment · Fixed by #131
Closed

bundled versioneer 0.18 is incompatible with Python 3.12 #124

rathann opened this issue Jul 7, 2023 · 1 comment · Fixed by #131
Assignees

Comments

@rathann
Copy link
Contributor

rathann commented Jul 7, 2023

This leads to an error:

$ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -sP'
/builddir/build/BUILD/GridDataFormats-1.0.1/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
  LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
  File "/builddir/build/BUILD/GridDataFormats-1.0.1/setup.py", line 13, in <module>
    version=versioneer.get_version(),
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/GridDataFormats-1.0.1/versioneer.py", line 1480, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/GridDataFormats-1.0.1/versioneer.py", line 1412, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/GridDataFormats-1.0.1/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Please either unbundle or update to the latest 0.28 version, which seems to work fine.

@orbeckst
Copy link
Member

Fixed in PR #128

This was referenced Oct 21, 2023
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

Successfully merging a pull request may close this issue.

3 participants