Ontospy
Ontospy copied to clipboard
Error in CLI after using pipx on NixOS
I installed it using pipx on Nixos, but it seem to have forgotten something. A module called configparser.py seems to be missing.
ontospy
Traceback (most recent call last):
File "/home/user/.local/bin/ontospy", line 5, in <module>
from ontospy.cli import main_cli
File "/home/user/.local/share/pipx/venvs/ontospy/lib/python3.12/site-packages/ontospy/__init__.py", line 7, in <module>
from .core.ontospy import Ontospy
File "/home/user/.local/share/pipx/venvs/ontospy/lib/python3.12/site-packages/ontospy/core/__init__.py", line 9, in <module>
from configparser import SafeConfigParser
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/nix/store/dksjvr69ckglyw1k2ss1qgshhcix73p8-python3-3.12.8/lib/python3.12/configparser.py). Did you mean: 'RawConfigParser'?
Same error using pip in a Fedora Linux:
$ ontospy --help
Traceback (most recent call last):
File "/home/olea/.local/bin/ontospy", line 5, in <module>
from ontospy.cli import main_cli
File "/home/olea/.local/lib/python3.12/site-packages/ontospy/__init__.py", line 7, in <module>
from .core.ontospy import Ontospy
File "/home/olea/.local/lib/python3.12/site-packages/ontospy/core/__init__.py", line 9, in <module>
from configparser import SafeConfigParser
ImportError: cannot import name 'SafeConfigParser' from 'configparser' (/usr/lib64/python3.12/configparser.py). Did you mean: 'RawConfigParser'?