inakianduaga commented on PR #19317:
URL: https://github.com/apache/superset/pull/19317#issuecomment-1161303805

   Hi, testing this and Superset doesn't work when installing `duckdb-engine`, 
throws a 500 internal error on any page in the UI, backend says
   
   ```
   module 'duckdb_engine' has no attribute 'name'
   Traceback (most recent call last):                                           
                                                                                
                                                                                
                   File "/usr/local/lib/python3.8/site-packages/flask/app.py", 
line 1516, in full_dispatch_request
       rv = self.dispatch_request()
     File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1502, in 
dispatch_request
       return 
self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
     File "/app/superset/utils/log.py", line 245, in wrapper
       value = f(*args, **kwargs)
     File "/app/superset/views/core.py", line 2677, in welcome
       "common": common_bootstrap_payload(),
     File "/app/superset/views/base.py", line 368, in common_bootstrap_payload
       available_specs = get_available_engine_specs()
     File "/app/superset/db_engine_specs/__init__.py", line 141, in 
get_available_engine_specs
       backend = dialect.name
       ```
   
   Here's my full Dockerfile
   
   ```
   FROM apache/superset
   
   # Switching to root to install the required packages
   USER root
   
   # Example: installing the MySQL driver to connect to the metadata database
   # if you prefer Postgres, you may want to use `psycopg2-binary` instead
   RUN pip install psycopg2-binary
   
   # Example: installing a driver to connect to Redshift
   # Find which driver you need based on the analytics database
   # you want to connect to here:
   # https://superset.apache.org/installation.html#database-dependencies
   # RUN pip install sqlalchemy-redshift
   RUN pip install pyhive[hive]
   RUN pip install pyhive[presto]
   
   # DuckDB support
   RUN pip install duckdb-engine
   
   ADD ./config/superset_config.py /app/pythonpath/superset_config.py
   
   # Switching back to using the `superset` user
   USER superset
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to