Skip to content

Versioneer seems to be broken on python3.12 #87

@ferrine

Description

@ferrine

Traceback

error: builder for '/nix/store/klb2gzpffqv0hpwydv2v1rba6yarmlyr-python3.12-xhistogram-0.3.2.drv' failed with exit code 1;
       last 25 log lines:
       >   File "/nix/store/j3xg6ln22ng7b3qcs1dpha12x1kyldzd-python3.12-pyproject-hooks-1.0.0/lib/python3.12/site-packages/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
       >     return hook(config_settings)
       >            ^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xnd1jdqjqdva8aqcbgw9ynmnfphpkzcy-python3.12-setuptools-70.0.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 325, in get_requires_for_build_wheel
       >     return self._get_build_requires(config_settings, requirements=['wheel'])
       >            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/nix/store/xnd1jdqjqdva8aqcbgw9ynmnfphpkzcy-python3.12-setuptools-70.0.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 295, in _get_build_requires
       >     self.run_setup()
       >   File "/nix/store/xnd1jdqjqdva8aqcbgw9ynmnfphpkzcy-python3.12-setuptools-70.0.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
       >     super().run_setup(setup_script=setup_script)
       >   File "/nix/store/xnd1jdqjqdva8aqcbgw9ynmnfphpkzcy-python3.12-setuptools-70.0.0/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
       >     exec(code, locals())
       >   File "<string>", line 36, in <module>
       >   File "/private/tmp/nix-build-python3.12-xhistogram-0.3.2.drv-0/xhistogram-0.3.2/versioneer.py", line 1524, in get_version
       >     return get_versions()["version"]
       >            ^^^^^^^^^^^^^^
       >   File "/private/tmp/nix-build-python3.12-xhistogram-0.3.2.drv-0/xhistogram-0.3.2/versioneer.py", line 1451, in get_versions
       >     cfg = get_config_from_root(root)
       >           ^^^^^^^^^^^^^^^^^^^^^^^^^^
       >   File "/private/tmp/nix-build-python3.12-xhistogram-0.3.2.drv-0/xhistogram-0.3.2/versioneer.py", line 346, in get_config_from_root
       >     parser = configparser.SafeConfigParser()
       >              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
       > AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions