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

The project is no longer working with the recent awesome_panel_extensions #6

Open
cloud-rocket opened this issue Apr 27, 2021 · 1 comment

Comments

@cloud-rocket
Copy link

cloud-rocket commented Apr 27, 2021

Any ideas?

Thanks

Running with invoke site.serve triggers the following exception

ERROR:bokeh.application.application:Error running application handler <bokeh.application.handlers.script.ScriptHandler object at 0x7f4419cc9430>: 'TemplateConfig' object has no attribute 'js_files'
File "base.py", line 512, in _template_resources:
for name, js in self.config.js_files.items(): Traceback (most recent call last):
  File "/usr/local/lib/python3.8/dist-packages/bokeh/application/handlers/code_runner.py", line 197, in run
    exec(self._code, module.__dict__)
  File "/home/meir/web-dashboard/awesome-analytics-apps-template/src/apps/home/app.py", line 31, in <module>
    view().servable()
  File "/usr/local/lib/python3.8/dist-packages/panel/viewable.py", line 315, in servable
    self.server_doc(title=title, location=True)
  File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 292, in server_doc
    return self._init_doc(doc, title=title, location=location)
  File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 464, in _init_doc
    self._update_vars()
  File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 613, in _update_vars
    self._render_variables['template_resources'] = self._template_resources()
  File "/usr/local/lib/python3.8/dist-packages/panel/template/base.py", line 512, in _template_resources
    for name, js in self.config.js_files.items():
AttributeError: 'TemplateConfig' object has no attribute 'js_files'
@Axeldnahcram
Copy link

@cloud-rocket I think the template used in the example is not correct. You should change the ListTemplate to GalleryTemplate
I have proposed a PR here. I would open a PR but I do not think I have the requested credentials.

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

2 participants