Versa model for Web resources & relationships. Similar to Resource Description Framework (RDF) but with a goal to be at once simpler and more expressive. Includes processing tools.
Not sure how it got this way, but it must be fixed
$ pytest test
================================== test session starts ===================================
platform darwin -- Python 3.8.5, pytest-6.0.1, py-1.9.0, pluggy-0.13.1
rootdir: /Users/uche/dev/versa
collected 16 items / 5 errors / 11 selected
========================================= ERRORS =========================================
_______________________ ERROR collecting test/py/test_diskcache.py _______________________
ImportError while importing test module '/Users/uche/dev/versa/test/py/test_diskcache.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/py/test_diskcache.py:15: in <module>
from versa.driver.diskcache import newmodel
../../.local/venv/main/lib/python3.8/site-packages/versa/driver/diskcache.py:27: in <module>
from diskcache import Index #pip install diskcache
E ModuleNotFoundError: No module named 'diskcache'
_________________________ ERROR collecting test/py/test_lmdb.py __________________________
ImportError while importing test module '/Users/uche/dev/versa/test/py/test_lmdb.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/py/test_lmdb.py:15: in <module>
from versa.driver.lmdb import newmodel
../../.local/venv/main/lib/python3.8/site-packages/versa/driver/lmdb.py:34: in <module>
import lmdb
E ModuleNotFoundError: No module named 'lmdb'
_________________________ ERROR collecting test/py/test_mongo.py _________________________
ImportError while importing test module '/Users/uche/dev/versa/test/py/test_mongo.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/py/test_mongo.py:14: in <module>
from versa.driver.mongo import newmodel
../../.local/venv/main/lib/python3.8/site-packages/versa/driver/mongo.py:42: in <module>
from pymongo import MongoClient
E ModuleNotFoundError: No module named 'pymongo'
________________________ ERROR collecting test/py/test_parsemd.py ________________________
ImportError while importing test module '/Users/uche/dev/versa/test/py/test_parsemd.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/py/test_parsemd.py:6: in <module>
from versa.reader.md import from_markdown
E ModuleNotFoundError: No module named 'versa.reader'
_______________________ ERROR collecting test/py/test_postgres.py ________________________
ImportError while importing test module '/Users/uche/dev/versa/test/py/test_postgres.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/importlib/__init__.py:127: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
test/py/test_postgres.py:86: in <module>
from versa.driver import postgres
../../.local/venv/main/lib/python3.8/site-packages/versa/driver/postgres.py:19: in <module>
import psycopg2 #http://initd.org/psycopg/
E ModuleNotFoundError: No module named 'psycopg2'
==================================== warnings summary ====================================
/Users/uche/.local/venv/main/lib/python3.8/site-packages/amara3/uxml/tree.py:167
/Users/uche/.local/venv/main/lib/python3.8/site-packages/amara3/uxml/tree.py:167: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _handler(self):
/Users/uche/.local/venv/main/lib/python3.8/site-packages/amara3/uxml/treeiter.py:125
/Users/uche/.local/venv/main/lib/python3.8/site-packages/amara3/uxml/treeiter.py:125: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
def _handler(self):
-- Docs: https://docs.pytest.org/en/stable/warnings.html
================================ short test summary info =================================
ERROR test/py/test_diskcache.py
ERROR test/py/test_lmdb.py
ERROR test/py/test_mongo.py
ERROR test/py/test_parsemd.py
ERROR test/py/test_postgres.py
!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 5 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!
============================= 2 warnings, 5 errors in 0.56s ==============================
Not sure how it got this way, but it must be fixed