Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not locate flask app #108

Open
kabirwalia8300 opened this issue Mar 6, 2021 · 1 comment
Open

Could not locate flask app #108

kabirwalia8300 opened this issue Mar 6, 2021 · 1 comment
Assignees

Comments

@kabirwalia8300
Copy link
Collaborator

kabirwalia8300 commented Mar 6, 2021

I found this issue while trying to recreate another issue. It was on a new clone in master and in a fresh virtual env - so I went through the steps of installation. See if anybody can reproduce or can suggest a solution.

================= MINIBOT CLIENT GUI =================
=========== STARTING BASESTATION ===============

  • Tip: There are .env or .flaskenv files present. Do "pip install python-dotenv" to use them.

cs-minibot-platform@1.0.0 webpack
webpack

Webpack is watching the files…

  • Environment: production
    WARNING: This is a development server. Do not use it in a production deployment.
    Use a production WSGI server instead.
  • Debug mode: off
    Usage: flask run [OPTIONS]

Error: 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.

@slawrence100
Copy link
Collaborator

slawrence100 commented Mar 9, 2021

I was able to replicate this bug by unstalling the python-dotenvpackage from my (working) virtual environment. Try this:

pip install python-dotenv

You did say it was a clean install from master though (and python-dotenv is in requirements.txt), so this might not be the solution you're looking for.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants