khaldoun92 commented on issue #23861:
URL: https://github.com/apache/superset/issues/23861#issuecomment-1527290961

   > > The problem is probably due to your sqlparse version just try out `pip 
install sqlparse=='0.4.3'` , it should work after it
   > 
   > Thanks for the help I ran the sqlparse version command and after that I 
again tried superset db upgrade command and got below error:
   > 
   > **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.**
   > 
   > anything I am missing?
   
   you need to setup your flask app
   ```shell
   export FLASK_APP=superset # on Ubuntu
   set FLASK_APP=superset # on windows
   ``` 
   it it doesn't work, then you need to try out
   
   ```shell
   $env:FLASK_APP="SupersetPath\Superset\Lib\site-packages\superset\app.py"
   ``` 


-- 
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