Error while loading owlready2

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error while loading owlready2

Pradip
from owlready2 import *

gives error:

  File "/home/pradip/Desktop/owlquery.py", line 1, in <module>
    from owlready2 import *
  File "/usr/local/lib/python3.4/dist-packages/owlready2/__init__.py", line 27, in <module>
    from owlready2.namespace       import *
  File "/usr/local/lib/python3.4/dist-packages/owlready2/namespace.py", line 365
    trace = (*trace, storid)
                        ^
SyntaxError: can use starred expression only as assignment target
Reply | Threaded
Open this post in threaded view
|

Re: Error while loading owlready2

Jiba
Administrator
Hello,

You need Python version 3.6 or more for Owlready2. The use of *expression has been extended in 3.6.

Best regards,

Jiba
Reply | Threaded
Open this post in threaded view
|

Re: Error while loading owlready2

Ulrich18
I am not able to load ontology.
my python version is 3.6.6