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.

flask.cli.NoAppException on fresh installation of superset via docker

See original GitHub issue

I’m trying to install superset using docker and followed the instructions mentioned in installation.rst After running docker-compose up and opening http://localhost:8088 I’m getting following error.

Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 95, in find_best_app
    module=module.__name__
flask.cli.NoAppException: Failed to find Flask application or factory in module "app". Use "FLASK_APP=app:name to specify one.

Issue #6505 looks similar and installing python-dotenv resolved the issue for it. I checked the requirements-dev.txt file and it mentions python-dotenv and I assume same has been installed. I’m not very familiar with docker and not sure how to proceed.

Thanks

image

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
kiryakacommented, Dec 20, 2018

@sushan-upadhyay , @krdeepak Are you guys sure you rebuilt docker without a cache and not just pop it up from docker images? sudo docker-compose build --no-cache superset - should do the job, but to be 100% sure do also try docker rm on the container, docker rmi on the image

2reactions
kiryakacommented, Dec 18, 2018

@lhyundeadsoul, Thank you that works for me also!

@MarcusSorealheis, didn’t solve it for my case

contrib/docker$ sudo docker-compose build --no-cache superset
...
Collecting python-dotenv==0.10.1 (from -r requirements-dev.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/8c/14/501508b016e7b1ad0eb91bba581e66ad9bfc7c66fcacbb580eaf9bc38458/python_dotenv-0.10.1-py2.py3-none-any.whl
...
superset_1  | Traceback (most recent call last):
superset_1  |   File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 330, in __call__
superset_1  |     rv = self._load_unlocked()
superset_1  |   File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 317, in _load_unlocked
superset_1  |     self._app = rv = self.loader()
superset_1  |   File "/usr/local/lib/python3.6/site-packages/flask/cli.py", line 384, in load_app
superset_1  |     'Could not locate a Flask application. You did not provide '
superset_1  | flask.cli.NoAppException: Could not locate a Flask application. You did not provide the "FLASK_APP" environment variable, and a "wsgi.py" or "app.py" module was not found in the current directory.
Read more comments on GitHub >

github_iconTop Results From Across the Web

flask.cli.NoAppException on fresh installation of superset via ...
I'm trying to install superset using docker and followed the instructions mentioned in installation.rst After running docker-compose up and ...
Read more >
Error: Could not locate a Flask application - Stack Overflow
I have the same issue, setting environment variable using $env:FLASK_APP="base.py". then flask run. This worked for me. This works for flask ...
Read more >
Installing Locally Using Docker Compose - Apache Superset
The fastest way to try Superset locally is using Docker and Docker Compose on a Linux or Mac OSX computer. Superset does not...
Read more >
[GitHub] [incubator-superset] sridharj-in commented on issue ...
[GitHub] [incubator-superset] sridharj-in commented on issue #11081: Installation Error - Docker-Compose Up on Ubuntu VM on Windows 10.
Read more >
Installation & Configuration - apache-superset - Read the Docs
Once that command completes successfully, you should see a new incubator-superset folder in your current directory. Step 2 - Launch Superset via `docker-compose ......
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