-
Notifications
You must be signed in to change notification settings - Fork 683
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' #969
Comments
I have the same problem when building pandas-datareader in Fedora. I have patched |
I'm encountering the same problem. |
Same when installing pygeos |
Fixed in main by removing versioneer. |
@bashtage can you explain what you mean by "removing versioneer" or point me to documentation to do that? I am trying to install the spylon-kernel and am getting the same error. |
Versioneer isn't compatible with modern Python. I removed it and replaced it with setuptools_scm in the main branch. |
Don't know if this is still active, but I would deeply appreciate any help. I don't have versioneer installed but am seeing issues with the versioneer.py when matplotlib is installed (checks an older version even though I have the newest version installed).
|
If your using a juypter notebook in vscode try installing the packages or libraries through that. So in your notebook (not the terminal) try %pip install matplotlib, that's what worked for me. Hopefully that works, the other thing you can do is try deleting and reinstalling python in a file location that's convenient for you (normally it's the default "user" path and that's fine too). Then try installing the packages through the terminal or your notebook environment. |
Thanks for your reply. That didn't quite work. I don't know if this context is helpful, but I'm working in a virtual environment in VSCode. I've tried recreating the environment but keep running into the same issue. The issue arises when downloading Pyviz (although it looks like the error occurs upon the matplotlib reference). I have a newer version of matplotlib than the one Pyviz seems to check. Thanks! |
Same error here installing google-colab. It seems to fail when installing pandas. I have Python 3.12 on my mac `Collecting pandas~=0.24.0 (from google-colab) × Getting requirements to build wheel did not run successfully. |
You need to use an older python which will then let you use an older pandas which has this available. |
Hi, |
Yes, it is: https://github.com/python-versioneer/python-versioneer
|
报错提示: |
how to reslolve |
Just use python 3.11 venv |
Python 3.12 doesn't work: # poetry run pflake8 --config ./pyproject.toml Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/bin/pflake8", line 5, in <module> from pflake8.__main__ import main File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/lib/python3.12/site-packages/pflake8/__init__.py", line 55, in <module> class DivertingSafeConfigParser(ConfigParserTomlMixin, configparser.SafeConfigParser): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? See this upstream bug report: pydata/pandas-datareader#969 Our CI already checks out Python 3.11, so let's align our maximum version with what CI uses. Signed-off-by: Simon Ser <contact@emersion.fr>
Python 3.12 doesn't work: # poetry run pflake8 --config ./pyproject.toml Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/bin/pflake8", line 5, in <module> from pflake8.__main__ import main File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/lib/python3.12/site-packages/pflake8/__init__.py", line 55, in <module> class DivertingSafeConfigParser(ConfigParserTomlMixin, configparser.SafeConfigParser): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? See this upstream bug report: pydata/pandas-datareader#969 Our CI already checks out Python 3.11, so let's align our maximum version with what CI uses. Signed-off-by: Simon Ser <contact@emersion.fr>
Python 3.12 doesn't work: # poetry run pflake8 --config ./pyproject.toml Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/bin/pflake8", line 5, in <module> from pflake8.__main__ import main File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/lib/python3.12/site-packages/pflake8/__init__.py", line 55, in <module> class DivertingSafeConfigParser(ConfigParserTomlMixin, configparser.SafeConfigParser): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? See this upstream bug report: pydata/pandas-datareader#969 Our CI already checks out Python 3.11, so let's align our maximum version with what CI uses. Signed-off-by: Simon Ser <contact@emersion.fr>
Python 3.12 doesn't work: # poetry run pflake8 --config ./pyproject.toml Traceback (most recent call last): File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/bin/pflake8", line 5, in <module> from pflake8.__main__ import main File "/root/.cache/pypoetry/virtualenvs/railjson-generator--f9Ha3Rv-py3.12/lib/python3.12/site-packages/pflake8/__init__.py", line 55, in <module> class DivertingSafeConfigParser(ConfigParserTomlMixin, configparser.SafeConfigParser): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'? See this upstream bug report: pydata/pandas-datareader#969 Our CI already checks out Python 3.11, so let's align our maximum version with what CI uses. Signed-off-by: Simon Ser <contact@emersion.fr>
When trying to build with Python 3.12:
I think versioneer needs to get updated in your repo.
The text was updated successfully, but these errors were encountered: