You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "jaihind213 (via GitHub)" <gi...@apache.org> on 2023/09/30 01:51:30 UTC

[GitHub] [superset] jaihind213 commented on issue #20319: werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server

jaihind213 commented on issue #20319:
URL: https://github.com/apache/superset/issues/20319#issuecomment-1741625516

   on mac m1:
   
   faced the same exception which was giving me a bad rendering:
   ---
   ```
   2023-09-29 11:26:34,361:WARNING:superset.views.base:HTTPException
   superset_app           | Traceback (most recent call last):
   superset_app           |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
   superset_app           |     rv = self.dispatch_request()
   superset_app           |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1788, in dispatch_request
   superset_app           |     self.raise_routing_exception(req)
   superset_app           |   File "/usr/local/lib/python3.9/site-packages/flask/app.py", line 1770, in raise_routing_exception
   superset_app           |     raise request.routing_exception  # type: ignore
   superset_app           |   File "/usr/local/lib/python3.9/site-packages/flask/ctx.py", line 351, in match_request
   superset_app           |     result = self.url_adapter.match(return_rule=True)  # type: ignore
   superset_app           |   File "/usr/local/lib/python3.9/site-packages/werkzeug/routing/map.py", line 652, in match
   superset_app           |     raise NotFound() from None
   superset_app           | werkzeug.exceptions.NotFound: 404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.
   
   ```
   ---
   
   I did the following and it worked for me:
   ```
   git clone https://github.com/apache/superset
   #installed node npm with versions v18.16.0/ 9.5.1 respectively.
   npm install cross-env
   npm install -f --no-optional --global webpack webpack-cli; 
   npm run build
   #create virtual env of 3.9 and activate
   mamba create -n superset python=3.9 ; mamba activate superset; 
   pip install -r requirements/testing.txt;
   pip install -e .;
   superset db upgrade;
   superset fab create-admin;
   superset init;
   superset load-examples;
   export SUPERSET_SECRET_KEY=D1acauGDSStiNuu2O1ZmK9E59QUPkRfB_some_key
   export TALISMAN_ENABLED="False"
   FLASK_ENV=development superset run -p 8088 --with-threads --reload --debugger
   ```
   
   hope this helps.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org