panel: MaterialTemplate, BootstrapTemplate, GoldenTemplate not working - GET 404 when requesting bundled assets

I have installed the latest version of the Panel Master Branch and reinstalled my conda environment following the developer guide. I get an error during the installation https://github.com/holoviz/panel/issues/1652. But I believe Panel, Bokeh etc. is still installed and I can run what I need. I have also successfully run panel build panel.

If I replace VanillaTemplate with MaterialTemplate in the file panel\tests\template\test_vanilla_manual.py I get

image

$ python -m panel serve 'panel\tests\template\test_vanilla_manual.py' --dev
2020-10-20 08:30:40,156 Starting Bokeh server version 2.2.2 (running on Tornado 6.0.4)
2020-10-20 08:30:40,158 User authentication hooks NOT provided (default user enabled)
2020-10-20 08:30:40,161 Bokeh app running at: http://localhost:5006/test_vanilla_manual
2020-10-20 08:30:40,161 Starting Bokeh server with process id: 26420
2020-10-20 08:30:55,676 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='1340', ...)
2020-10-20 08:30:55,676 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='1342', ...)
2020-10-20 08:30:55,677 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='1344', ...)
2020-10-20 08:30:55,782 404 GET /static/extensions/panel/bundled/materialtemplate/material.css (::1) 1.96ms
2020-10-20 08:30:55,784 404 GET /static/extensions/panel/bundled/materialtemplate/material-components-web@v4.0.0/dist/material-components-web.min.css (::1) 2.04ms
2020-10-20 08:30:55,784 404 GET /static/extensions/panel/bundled/materialtemplate/material-components-web@v4.0.0/dist/material-components-web.min.js (::1) 2.04ms
2020-10-20 08:30:56,006 404 GET /static/extensions/panel/bundled/materialtemplate/default.css (::1) 223.31ms
2020-10-20 08:30:56,106 WebSocket connection opened
2020-10-20 08:30:56,107 ServerConnection created
2020-10-20 08:36:30,527 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='2185', ...)
2020-10-20 08:36:30,528 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='2187', ...)
2020-10-20 08:36:30,528 W-1005 (FIXED_SIZING_MODE): 'fixed' sizing mode requires width and height to be set: Button(id='2189', ...)
2020-10-20 08:36:30,559 404 GET /static/extensions/panel/bundled/materialtemplate/material.css (::1) 1.00ms
2020-10-20 08:36:30,561 404 GET /static/extensions/panel/bundled/materialtemplate/default.css (::1) 1.00ms
2020-10-20 08:36:30,563 404 GET /static/extensions/panel/bundled/materialtemplate/material-components-web@v4.0.0/dist/material-components-web.min.css (::1) 1.00ms
2020-10-20 08:36:30,566 404 GET /static/extensions/panel/bundled/materialtemplate/material-components-web@v4.0.0/dist/material-components-web.min.js (::1) 1.00ms
2020-10-20 08:36:30,758 WebSocket connection opened
2020-10-20 08:36:30,758 ServerConnection created

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 27 (11 by maintainers)

Most upvoted comments

Thanks @xavArtley, I appreciate it. Overall I’m very happy about the bundling work, by default everything is now loaded from the server itself, which means most things can be run even when there’s not internet available. There’s also no more inlined CSS and everything can fall back cleanly to CDN resources if requested.

I have tested python setup.py develop on the last commit all seems working now

image

The CI does do that but it’s on linux, we need to set up GitHub actions to run it on OSX and Windows too.

My fault, will fix momentarily. Need a pre-commit hook to make sure I’ve done that before tagging a dev release.