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

AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? #166

Open
moggers87 opened this issue Mar 29, 2024 · 2 comments
Assignees
Labels

Comments

@moggers87
Copy link
Owner

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/pyproject_api/_backend.py", line 90, in run
    outcome = backend_proxy(parsed_message["cmd"], **parsed_message["kwargs"])
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/site-packages/pyproject_api/_backend.py", line 32, in __call__
    return getattr(on_object, name)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/moggers/workspace/salmon/.tox/.pkg/lib/python3.12/site-packages/setuptools/build_meta.py", line 366, in prepare_metadata_for_build_wheel
    self.run_setup()
  File "/home/moggers/workspace/salmon/.tox/.pkg/lib/python3.12/site-packages/setuptools/build_meta.py", line 487, in run_setup
    super().run_setup(setup_script=setup_script)
  File "/home/moggers/workspace/salmon/.tox/.pkg/lib/python3.12/site-packages/setuptools/build_meta.py", line 311, in run_setup
    exec(code, locals())
  File "<string>", line 29, in <module>
  File "/home/moggers/workspace/salmon/versioneer.py", line 1476, in get_version
    return get_versions()["version"]
           ^^^^^^^^^^^^^^
  File "/home/moggers/workspace/salmon/versioneer.py", line 1408, in get_versions
    cfg = get_config_from_root(root)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/moggers/workspace/salmon/versioneer.py", line 338, in get_config_from_root
    parser = configparser.SafeConfigParser()
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
@moggers87 moggers87 self-assigned this Mar 29, 2024
@moggers87 moggers87 added the bug label Mar 29, 2024
@moggers87
Copy link
Owner Author

This happens in 🐟 and in latest from PyPI

@moggers87
Copy link
Owner Author

Fixed by efd1027

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant