Greetings !
I am trying to have a sandbox environment through Docker.
- Dremio running on a container – based on AlexMerced’s tutorial docker-compose
- Superset based on the non-dev docker-compose. I have included sqlalchemy_dremio in the ./docker/requirements-local.txt as per the Superset documentation. I checked the logs of superset_init container and it looks like the driver was successfully installed.
==
2024-02-14 15:28:08 Installing local overrides at /app/docker/requirements-local.txt
2024-02-14 15:28:08 Collecting sqlalchemy_dremio
2024-02-14 15:28:08 Downloading sqlalchemy_dremio-3.0.3-py2.py3-none-any.whl (18 kB)
2024-02-14 15:28:08 Requirement already satisfied: pyarrow>=5.0.0 in /usr/local/lib/python3.9/site-packages (from sqlalchemy_dremio->-r /app/docker/requirements-local.txt (line 1)) (14.0.1)
2024-02-14 15:28:08 Requirement already satisfied: sqlalchemy>=1.3.24 in /usr/local/lib/python3.9/site-packages (from sqlalchemy_dremio->-r /app/docker/requirements-local.txt (line 1)) (1.4.36)
2024-02-14 15:28:08 Requirement already satisfied: numpy>=1.16.6 in /usr/local/lib/python3.9/site-packages (from pyarrow>=5.0.0->sqlalchemy_dremio->-r /app/docker/requirements-local.txt (line 1)) (1.23.5)
2024-02-14 15:28:08 Requirement already satisfied: greenlet!=0.4.17 in /usr/local/lib/python3.9/site-packages (from sqlalchemy>=1.3.24->sqlalchemy_dremio->-r /app/docker/requirements-local.txt (line 1)) (2.0.2)
2024-02-14 15:28:09 Installing collected packages: sqlalchemy_dremio
2024-02-14 15:28:09 Successfully installed sqlalchemy_dremio-3.0.3
2024-02-14 16:03:34 superset.commands.database.exceptions.DatabaseTestConnectionDriverError: Could not load database driver: DremioEngineSpec
==
However, when I tried to add a new datasource through superset UI and hit TestConnection i get teh following error.
2024-02-14 16:03:34 superset.commands.database.exceptions.DatabaseTestConnectionDriverError: Could not load database driver: DremioEngineSpec
=== log from superset_app Docker container
2024-02-14 16:03:34 2024-02-14 21:03:34,583:WARNING:superset.views.base:CommandException
2024-02-14 16:03:34 Traceback (most recent call last):
2024-02-14 16:03:34 File “/app/superset/commands/database/test_connection.py”, line 131, in run
2024-02-14 16:03:34 with database.get_sqla_engine_with_context(
2024-02-14 16:03:34 File “/usr/local/lib/python3.9/contextlib.py”, line 119, in enter
2024-02-14 16:03:34 return next(self.gen)
2024-02-14 16:03:34 File “/app/superset/models/core.py”, line 423, in get_sqla_engine_with_context
2024-02-14 16:03:34 yield self._get_sqla_engine(
2024-02-14 16:03:34 File “/app/superset/models/core.py”, line 440, in _get_sqla_engine
2024-02-14 16:03:34 self.db_engine_spec.validate_database_uri(sqlalchemy_url)
2024-02-14 16:03:34 File “/app/superset/db_engine_specs/base.py”, line 1963, in validate_database_uri
2024-02-14 16:03:34 sqlalchemy_uri.get_driver_name(), set()
2024-02-14 16:03:34 File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/url.py”, line 624, in get_driver_name
2024-02-14 16:03:34 return self.get_dialect().driver
2024-02-14 16:03:34 File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/url.py”, line 679, in get_dialect
2024-02-14 16:03:34 entrypoint = self._get_entrypoint()
2024-02-14 16:03:34 File “/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/url.py”, line 661, in _get_entrypoint
2024-02-14 16:03:34 cls = registry.load(name)
2024-02-14 16:03:34 File “/usr/local/lib/python3.9/site-packages/sqlalchemy/util/langhelpers.py”, line 343, in load
2024-02-14 16:03:34 raise exc.NoSuchModuleError(
2024-02-14 16:03:34 sqlalchemy.exc.NoSuchModuleError: Can’t load plugin: sqlalchemy.dialects:dremio
2024-02-14 16:03:34
2024-02-14 16:03:34 The above exception was the direct cause of the following exception:
2024-02-14 16:03:34
I appreciate any guidance/pointers on resolving this.
Sri