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 is broken on Python 3.12 #68

Closed
QuLogic opened this issue Jun 28, 2023 · 2 comments · May be fixed by #70
Closed

Bundled versioneer is broken on Python 3.12 #68

QuLogic opened this issue Jun 28, 2023 · 2 comments · May be fixed by #70

Comments

@QuLogic
Copy link
Contributor

QuLogic commented Jun 28, 2023

Describe the issue:

This is due to using the removed configparser.SafeConfigParser:

Traceback (most recent call last):
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 555, in main
    generate_requires(
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 451, in generate_requires
    generate_build_requirements(backend, requirements)
  File "/usr/lib/rpm/redhat/pyproject_buildrequires.py", line 274, in generate_build_requirements
    new_reqs = get_requires(config_settings=requirements.config_settings)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
    return self._get_build_requires(config_settings, requirements=['wheel'])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
    self.run_setup()
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 488, in run_setup
    self).run_setup(setup_script=setup_script)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/setuptools/build_meta.py", line 338, in run_setup
    exec(code, locals())
  File "<string>", line 8, in <module>
  File "/builddir/build/BUILD/partd-1.4.0/versioneer.py", line 1480, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/partd-1.4.0/versioneer.py", line 1412, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/builddir/build/BUILD/partd-1.4.0/versioneer.py", line 342, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Environment:

  • Dask version: n/a
  • Python version: 3.12.0 b3
  • Operating System: Fedora
  • Install method (conda, pip, source): source
hrnciar added a commit to hrnciar/partd that referenced this issue Jul 12, 2023
Fixes: dask#68 

(Untested on other Python versions than 3.12)
@ptrcnull
Copy link

Removed configparser module APIs: the SafeConfigParser class alias, [...], all of which were deprecated since Python 3.2.

could we please get a release with this merged soon? :)

algitbot pushed a commit to alpinelinux/aports that referenced this issue Mar 28, 2024
their current version is from Python 3.2 (???):
dask/partd#68
@jrbourbeau
Copy link
Member

Closing as partd=1.4.2 is out which has this update

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