Skip to content

Python 3.12 incompatible with versioneer #79

@thelostscout

Description

@thelostscout

When installing bgflow with pip in a conda env based on python 3.12, I find the following error:

File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/tmp/pip-install-zhnn22g8/bgflow_eb74916574b843488e1884c71c62d8f8/setup.py", line 30, in <module>
  version=versioneer.get_version(),
          ^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-zhnn22g8/bgflow_eb74916574b843488e1884c71c62d8f8/versioneer.py", line 1480, in get_version
  return get_versions()["version"]
         ^^^^^^^^^^^^^^
File "/tmp/pip-install-zhnn22g8/bgflow_eb74916574b843488e1884c71c62d8f8/versioneer.py", line 1412, in get_versions
  cfg = get_config_from_root(root)
        ^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-install-zhnn22g8/bgflow_eb74916574b843488e1884c71c62d8f8/versioneer.py", line 342, in get_config_from_root
  parser = configparser.SafeConfigParser()
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?

According to this comment: pydata/pandas-datareader#969 (comment), versioneer isn't compatible with modern python anymore.

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