Request
clp_package_utils/general.py has recently started pulling in SQL related dependencies in order to implement validate_dataset_exists. This transitively gives scripts like start_clp.py a dependency on libmaridb.so. Now, when I run the package start scripts I get the following error:
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/user/Projects/clp/build/clp-package/lib/python3/site-packages/clp_package_utils/scripts/start_clp.py", line 45, in <module>
from clp_package_utils.general import (
File "/home/user/Projects/clp/build/clp-package/lib/python3/site-packages/clp_package_utils/general.py", line 40, in <module>
from clp_py_utils.sql_adapter import SQL_Adapter
File "/home/user/Projects/clp/build/clp-package/lib/python3/site-packages/clp_py_utils/sql_adapter.py", line 5, in <module>
import mariadb
File "/home/user/Projects/clp/build/clp-package/lib/python3/site-packages/mariadb/__init__.py", line 10, in <module>
from ._mariadb import (
ImportError: libmariadb.so.3: cannot open shared object file: No such file or directory
Currently our package requirments (found in docs/src/user-guide/quick-start/index.md) only mention python3.8+ and docker as requirements for running the package.
Possible implementation
Our options are either to:
- Update the documentation to cover the new dependency on
libmaridb.so (and any other new database related dependencies) or
- Remove the new dependency on
libmariadb.so in order to keep the package in order to keep the requirements for the package simple.
Personally I prefer option 2 since part of the point of the package is to simplify deployment by encapsulating most of the dependencies in docker containers.
Request
clp_package_utils/general.pyhas recently started pulling in SQL related dependencies in order to implementvalidate_dataset_exists. This transitively gives scripts likestart_clp.pya dependency onlibmaridb.so. Now, when I run the package start scripts I get the following error:Currently our package requirments (found in
docs/src/user-guide/quick-start/index.md) only mentionpython3.8+anddockeras requirements for running the package.Possible implementation
Our options are either to:
libmaridb.so(and any other new database related dependencies) orlibmariadb.soin order to keep the package in order to keep the requirements for the package simple.Personally I prefer option 2 since part of the point of the package is to simplify deployment by encapsulating most of the dependencies in docker containers.