Skip to content

Incompatible with jupyter-labhub #235

@fritterhoff

Description

@fritterhoff

Bug description

As soon as I try to use a nbgitpuller Link with the jupyter-labhub Backend I only get a "Internal Server Error" and some errors in the logs. Using the "normal" backend works fine.

Expected behaviour

Normal cloning of the repo.

Actual behaviour

HTTP Status 500

How to reproduce

Start single user nb with jupyter-labhub and try to open a nbgitpuller link

Your personal set up

  • Logs
[E 2021-11-22 19:03:55.343 SingleUserLabApp web:1789] Uncaught exception GET ***Redacted***', version='HTTP/1.1', remote_ip='')
    Traceback (most recent call last):
      File "/opt/conda/lib/python3.9/site-packages/tornado/web.py", line 1704, in _execute
        result = await result
      File "/opt/conda/lib/python3.9/site-packages/tornado/gen.py", line 216, in wrapper
        result = ctx_run(func, *args, **kwargs)
      File "/opt/conda/lib/python3.9/site-packages/nbgitpuller/handlers.py", line 175, in get
        self.render_template(
      File "/opt/conda/lib/python3.9/site-packages/notebook/base/handlers.py", line 515, in render_template
        template = self.get_template(name)
      File "/opt/conda/lib/python3.9/site-packages/nbclassic/nbserver.py", line 140, in get_template
        return self.settings['notebook_jinja2_env'].get_template(name)
      File "/opt/conda/lib/python3.9/site-packages/jinja2/environment.py", line 997, in get_template
        return self._load_template(name, globals)
      File "/opt/conda/lib/python3.9/site-packages/jinja2/environment.py", line 958, in _load_template
        template = self.loader.load(self, name, self.make_globals(globals))
      File "/opt/conda/lib/python3.9/site-packages/jinja2/loaders.py", line 125, in load
        source, filename, uptodate = self.get_source(environment, name)
      File "/opt/conda/lib/python3.9/site-packages/jinja2/loaders.py", line 214, in get_source
        raise TemplateNotFound(template)
    jinja2.exceptions.TemplateNotFound: status.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions