sqlite3.OperationalError: no such table: sqlite_schema

Posted by simonstephan on
URL: http://owlready.306.s1.nabble.com/sqlite3-OperationalError-no-such-table-sqlite-schema-tp2473.html

Hi everyone,

I recently used OWLReady2 to create an ontology, with no issues.
I switched to RDFLib for a project.
And now that I go back to OWLReady2 I have an error :

sqlite3.OperationalError: no such table: sqlite_schema


Full message error is :

Traceback (most recent call last):
  File "main.py", line 1, in <module>
    from owlready2 import *
  File "/usr/local/lib/python3.8/dist-packages/owlready2/__init__.py", line 129, in <module>
    default_world = IRIS = World()
  File "/usr/local/lib/python3.8/dist-packages/owlready2/namespace.py", line 443, in __init__
    self.set_backend(backend, filename, dbname, **kargs)
  File "/usr/local/lib/python3.8/dist-packages/owlready2/namespace.py", line 453, in set_backend
    self.graph = Graph(filename, world = self, **kargs)
  File "/usr/local/lib/python3.8/dist-packages/owlready2/triplelite.py", line 173, in __init__
    self.analyze()
  File "/usr/local/lib/python3.8/dist-packages/owlready2/triplelite.py", line 403, in analyze
    self.execute("""ANALYZE sqlite_schema""")
sqlite3.OperationalError: no such table: sqlite_schema


It's a new project, the only code i've writte is :

from owlready2 import *

I use Python3 for compile
I've already upgrade SQLite :

sqlite3 --version
3.34.1 2021-01-20 14:10:07 10e20c0b43500cfb9bbc0eaa061c57514f715d87238f4d835880cd846b9ebd1f

If you have any idea ...
Thanks :)