Abhijeetsinghjat commented on issue #23861:
URL: https://github.com/apache/superset/issues/23861#issuecomment-1527301437
> > > 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"
> ```
I tried running the command: **export FLASK_APP=superset # on Ubuntu** after
that I tried **superset db upgrade** command and got below error:
**--------------------------------------------------------------------------------
WARNING
--------------------------------------------------------------------------------
A Default SECRET_KEY was detected, please use superset_config.py to override
it.
Use a strong complex alphanumeric string and use a tool to help you generate
a sufficiently random sequence, ex: openssl rand -base64 42
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Refusing to start due to insecure SECRET_KEY**
any help on above warning?
--
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]