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

Cannot import name 'SafeConfigParser' from 'configparser' #15

Open
MiaNCSU opened this issue Sep 26, 2024 · 0 comments
Open

Cannot import name 'SafeConfigParser' from 'configparser' #15

MiaNCSU opened this issue Sep 26, 2024 · 0 comments

Comments

@MiaNCSU
Copy link

MiaNCSU commented Sep 26, 2024

ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?

Received the above error when trying to run the example experiments provided.
The required site package ontospy/core attempts to import this module in its __init__.py file.
It seems SafeConfigParser is not compatible with python versions >= 3, so I replaced the call with the following:

from configparser import ConfigParser and the program compiled successfully.

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

1 participant