Skip to content

Error with version 0.2.0a2 #21

@tlvu

Description

@tlvu

ALL software version info

(this library, plus any other relevant software, e.g. bokeh, python, notebook, OS, browser, etc)
See inside docker image below.

Version 0.2.0a2 installed from https://anaconda.org/pyviz/jupyter-panel-proxy/files

Description of expected behavior and the observed behavior

Should be able to click on the Panel Launcher icon without error, got the following 2 errors instead:

ServerApp - ERROR - Uncaught exception GET /server-proxy/icon/panel (10.10.10.7)                                                 
HTTPServerRequest(protocol='http', host='lvu.ouranos.ca:8890', method='GET', uri='/server-proxy/icon/panel', version='HTTP/1.1', remote_ip='10.10.10.7
')                                                                                                                     
Traceback (most recent call last):                                                                               
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute                
    result = await result                                                                                                  
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/api.py", line 68, in get                
    with open(self.icons[name]) as f:                                                                                       
FileNotFoundError: [Errno 2] No such file or directory: '/opt/conda/envs/birdy/lib/python3.8/site-packages/panel_server/icons/logo.svg'


ServerApp - ERROR - Uncaught exception GET /panel/ (10.10.10.7)                                                                               
HTTPServerRequest(protocol='http', host='lvu.ouranos.ca:8890', method='GET', uri='/panel/', version='HTTP/1.1', remote_ip='10.10.10.7')               
Traceback (most recent call last):                                                                                                                    
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/tornado/web.py", line 1704, in _execute                                                     
    result = await result                                                                                                                             
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/websocket.py", line 91, in get
    return await self.http_get(*args, **kwargs)
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/handlers.py", line 668, in http_get
    return await ensure_async(self.proxy(self.port, path))
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server/utils.py", line 182, in ensure_async
    result = await obj
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/handlers.py", line 662, in proxy
    await self.ensure_process()
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/handlers.py", line 627, in ensure_process
    cmd = self.get_cmd()
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/config.py", line 65, in get_cmd
    return self._realize_rendered_template(command)
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/config.py", line 62, in _realize_rendered_template
    return self._render_template(attribute)
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/config.py", line 47, in _render_template
    return [self._render_template(v) for v in value]
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/config.py", line 47, in <listcomp>
    return [self._render_template(v) for v in value]
  File "/opt/conda/envs/birdy/lib/python3.8/site-packages/jupyter_server_proxy/config.py", line 45, in _render_template
    return value.format(**args)
KeyError: 'cookiecutter'

Complete, minimal, self-contained example code that reproduces the issue

Stack traceback and/or browser JavaScript console output

Screenshots or screencasts of the bug in action

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions