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

Unable to install on Python 3.12: module 'configparser' has no attribute 'SafeConfigParser' #463

Closed
carderne opened this issue Mar 7, 2024 · 2 comments

Comments

@carderne
Copy link

carderne commented Mar 7, 2024

Seems to be similar to this issue:
pydata/pandas-datareader#969

If I run pip install pygeos==0.14 on Python 3.12.1 I get the following error:

        File "<string>", line 214, in <module>
        File "/<snip>/pygeos_ec04d2bcfc0d432cacb2068bfb3c52a2/versioneer.py", line 1480, in get_version
          return get_versions()["version"]
                 ^^^^^^^^^^^^^^
        File "/<snip>/pygeos_ec04d2bcfc0d432cacb2068bfb3c52a2/versioneer.py", line 1412, in get_versions
          cfg = get_config_from_root(root)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/<snip>/pygeos_ec04d2bcfc0d432cacb2068bfb3c52a2/versioneer.py", line 342, in get_config_from_root
          parser = configparser.SafeConfigParser()
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
      [end of output]

Seems to be solution was to replace versioneer with setuptools_scm?

@mwtoews
Copy link
Contributor

mwtoews commented Mar 7, 2024

It looks like you are using pygeos as a dependency in a project that uses geopandas. I'd suggest removing both shapely and pygeos from this list, as geopandas should get the correct backend dependency.

As a background note, pygeos is no longer updated, as it was merged with shapely 2.0. See the "Migration from PyGEOS geometry backend to Shapely 2.0" doc from geopandas for more info.

@carderne
Copy link
Author

Thanks!

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

No branches or pull requests

2 participants