Skip to content

Conversation

@st143575
Copy link

@st143575 st143575 commented Sep 3, 2024

For python3.11, executing ontology_viz.py raises the following error:
Traceback (most recent call last):
File ".../ontology-visualization-master/ontology_viz.py", line 6, in
from rdflib.plugins.sparql import prepareQuery
File ".../condaenvs/ontology_vis/lib/python3.11/site-packages/rdflib/plugins/sparql/init.py", line 33, in
from . import parser
File ".../condaenvs/ontology_vis/lib/python3.11/site-packages/rdflib/plugins/sparql/parser.py", line 198, in
PNAME_NS = Optional(Param("prefix", PN_PREFIX)) + Suppress(":").leaveWhitespace()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File ".../condaenvs/ontology_vis/lib/python3.11/site-packages/rdflib/plugins/sparql/parserutils.py", line 114, in init
self.name = name
^^^^^^^^^
AttributeError: property 'name' of 'Param' object has no setter

…txt to rdflib >= 6.0.2, <=6.1.1, since versions in [6.0.0, 6.0.2) and in (6.1.1, 7.0.0) raise the following error: AttributeError: property name of Param object has no setter.
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

Successfully merging this pull request may close these issues.

1 participant