-
Notifications
You must be signed in to change notification settings - Fork 49
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'? #39
Comments
I am trying to install pmx on my Mac(BigSur Ver 11.6.5), I created a conda environment with package version listed below: packages in environment at /Users/jiangxu/anaconda3/envs/pmx:Name Version Build Channelbrotli 1.1.0 h0dc2134_1 conda-forge |
And then I tried to install the pmx of the development branch to be compatible with python 3 as shown below: And I saw the error message shown above, So how can I solve this problem? |
It seems like a versioneer issue: likely it doesn't work with the latest python. Need to fix this in the future, but for now you could try using an older python version |
python setup.py install
/usr/local/pmx/versioneer.py:421: SyntaxWarning: invalid escape sequence '\s'
LONG_VERSION_PY['git'] = '''
Traceback (most recent call last):
File "/usr/local/pmx/setup.py", line 43, in
version=versioneer.get_version(),
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/pmx/versioneer.py", line 1480, in get_version
return get_versions()["version"]
^^^^^^^^^^^^^^
File "/usr/local/pmx/versioneer.py", line 1412, in get_versions
cfg = get_config_from_root(root)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/pmx/versioneer.py", line 342, in get_config_from_root
parser = configparser.SafeConfigParser()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'configparser' has no attribute 'SafeConfigParser'. Did you mean: 'RawConfigParser'?
The text was updated successfully, but these errors were encountered: