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

configparser error? #82

Open
jjkoehorst opened this issue May 8, 2024 · 2 comments
Open

configparser error? #82

jjkoehorst opened this issue May 8, 2024 · 2 comments
Assignees

Comments

@jjkoehorst
Copy link
Contributor

python3 enaDataGet.py               
Traceback (most recent call last):
  File "/Volumes/Git/other/enaBrowserTools/python3/enaDataGet.py", line 23, in <module>
    import sequenceGet
  File "/Volumes/Git/other/enaBrowserTools/python3/sequenceGet.py", line 22, in <module>
    import utils
  File "/Volumes/Git/other/enaBrowserTools/python3/utils.py", line 32, in <module>
    from configparser import SafeConfigParser
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/local/Cellar/[email protected]/3.12.2_1/Frameworks/Python.framework/Versions/3.12/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
@lilim-ebi lilim-ebi self-assigned this Jul 23, 2024
@lilim-ebi
Copy link
Contributor

Hi,

I've been using python3.10 and it worked fine. I get the same issue on 3.12, I'll look into a solution.

@ramacleod
Copy link

Apparently it's just renamed in python3.2, see pyupio/dparse#52 ; rewriting the utils.py line 32 as:

from configparser import ConfigParser

worked for me.

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

3 participants