question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Superset 2.0 with databricks driver fails to start

See original GitHub issue

Hi,

I am trying to start superset, install with pip and databricks driver. steps:

  1. pip install -U apache-superset
  2. pip uninstall -y Werkzeug
  3. pip install Werkzeug==2.0.3
  4. superset db upgrade
  5. superset init
  6. superset run -p 8088 --with-threads --reload --debugger. # superset started OK
  7. pip install “superset[databricks]”
  8. superset run -p 8088 --with-threads --reload --debugger. # superset FAILED to start

Traceback (most recent call last):
  File "/Users/user/venvsuperset/bin/superset", line 18, in <module>
    from superset.cli import superset
  File "/Users/user/venvsuperset/lib/python3.9/site-packages/superset/__init__.py", line 23, in <module>
    from superset.extensions import (
ImportError: cannot import name 'jinja_context_manager' from 'superset.extensions' (/Users/user/venvsuperset/lib/python3.9/site-packages/superset/extensions/__init__.py)

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
epa095commented, Sep 21, 2022

@helmanofer in step 7 you are installing superset, not apache-superset. So then you get a old and new version of superset at the same time. Tried changing it to apache-superset[databricks] ?

0reactions
helmanofercommented, Jul 21, 2022

while trying to reproduce the issue, by installing superset, starting it successfully, installing databricks driver I ran into a new issue while trying to start

Traceback (most recent call last):
  File "/Users/user/venv/bin/superset", line 18, in <module>
    from superset.cli import superset
ImportError: cannot import name 'superset' from 'superset.cli' (/Users/user/venv/lib/python3.8/site-packages/superset/cli/__init__.py)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Databricks - Apache Superset
ODBC​ For ODBC you first need to install the ODBC drivers for your platform. The driver path should be: /Library/simba/spark/lib/libsparkodbc_sbu.
Read more >
Apache Superset 2.0: Release Notes - Preset
Apache Superset 2.0 is a major release for the open source project. 2.0 brings a wide ... Native database driver for Databricks (#20320)....
Read more >
apache-superset - PyPI
Superset can query data from any SQL-speaking datastore or data engine (Presto, Trino, Athena, and more) that has a Python DB-API driver and...
Read more >
Spark Startup Failure: Spark was not able to start in time
Please refer to the Spark driver logs to troubleshoot this issue, and contact Databricks if the problem persists. Internal error message: Spark failed...
Read more >
Superset failed to connect Azure Databricks - Stack Overflow
Superset is up and running and I am able to login to superset. Issue: Go to "Data" -> "Connect a database "Select "Databricks...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found