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.

No module named superset.__main__ when using "superset db upgrade"command

See original GitHub issue

When I am using this command, it isnt working right. And it is showing the following error.

image

Expected results

This command should run.

Actual results

This error shows:

E:\KevTest\venv\Scripts\python.exe: No module named superset._main_; ‘superset’ is a package and cannot be directly executed

Environment

  • superset version: 28.1
  • python version: 3.6.3
  • Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
SamerAlrantawycommented, Feb 13, 2020

try to type python before any superset command ex : python superset db upgrade

0reactions
sedhhacommented, Apr 13, 2020

try to type python before any superset command ex : python superset db upgrade

This works! Thanks man

Read more comments on GitHub >

github_iconTop Results From Across the Web

No module named superset.__main__ when using ... - GitHub
When I am using this command, it isnt working right. And it is showing the following error. Expected results This command should run....
Read more >
Superset: command not found - Stack Overflow
First I was trying without installing superset package in my virtual environment. After successful installation it's working fine. Share.
Read more >
Installing Database Drivers - Apache Superset
Database PyPI package Connection String Amazon Redshift pip install sqlalchemy‑redshift redshift+psycopg2://:@:5439/ Apache Drill pip install sqlalchemy‑drill drill+sadrill:// For JDBC drill+jdbc:// Apache Druid pip install pydruid druid://:@:/druid/v2/sql...
Read more >
Installation & Configuration - apache-superset - Read the Docs
With only the 2GB of RAM allocated by default, Superset will fail to start. ... pip install apache-superset # Initialize the database superset...
Read more >
Error while running “superset db upgrade” after changing ...
rishi reddy · 1) Installed Superset using pip (pip install superset) · 2) Created "superset_config.py" with below content: · 3) Added superset_config.py path...
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