Problem import owlready2

Posted by Dumas Anthony on
URL: http://owlready.306.s1.nabble.com/Problem-import-owlready2-tp74.html

hi,

Sorry for my poor english, i'm french.
i m' using centos 6.3 and python 3.5.4.
pip install owlready result is ok.
but when i import owlready2, i got the result below :

>>> import owlready2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/python3/lib/python3.5/site-packages/owlready2/__init__.py", line 105, in <module>
    default_world = IRIS = World()
  File "/opt/python3/lib/python3.5/site-packages/owlready2/namespace.py", line 224, in __init__
    self.graph = Graph(filename)
  File "/opt/python3/lib/python3.5/site-packages/owlready2/triplelite.py", line 55, in __init__
    self.execute("""CREATE TABLE resources (storid TEXT PRIMARY KEY, iri TEXT) WITHOUT ROWID""")
sqlite3.OperationalError: near "WITHOUT": syntax error

Why ?

and if i retry import owlready2, result below :

>>> import owlready2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/python3/lib/python3.5/site-packages/owlready2/__init__.py", line 40, in <module>
    owlready2.namespace.EntityClass             = EntityClass
AttributeError: module 'owlready2' has no attribute 'namespace'

Do you have an idea ?

Tanks.