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

No module named 'cdsdashboards' #90

Open
zys2017 opened this issue Dec 9, 2021 · 1 comment
Open

No module named 'cdsdashboards' #90

zys2017 opened this issue Dec 9, 2021 · 1 comment

Comments

@zys2017
Copy link

zys2017 commented Dec 9, 2021

Hi,
My Dockerfile is from ideonate/cdsdashboards-jupyter-k8s-hub:1.1.3-0.6.0, but the hub is CrashLoopBackOff:
image
and logs is:

Loading /usr/local/etc/jupyterhub/secret/values.yaml
No config at /usr/local/etc/jupyterhub/existing-secret/values.yaml
Loading extra config: cds-handlers
[E 2021-12-09 03:39:46.043 JupyterHub app:2718]
    Traceback (most recent call last):
      File "/usr/local/lib/python3.6/dist-packages/jupyterhub/app.py", line 2715, in launch_instance_async
        await self.initialize(argv)
      File "/usr/local/lib/python3.6/dist-packages/jupyterhub/app.py", line 2238, in initialize
        self.load_config_file(self.config_file)
      File "<decorator-gen-5>", line 2, in load_config_file
      File "/usr/local/lib/python3.6/dist-packages/traitlets/config/application.py", line 87, in catch_config_error
        return method(app, *args, **kwargs)
      File "/usr/local/lib/python3.6/dist-packages/traitlets/config/application.py", line 602, in load_config_file
        raise_config_file_errors=self.raise_config_file_errors,
      File "/usr/local/lib/python3.6/dist-packages/traitlets/config/application.py", line 563, in _load_config_files
        config = loader.load_config()
      File "/usr/local/lib/python3.6/dist-packages/traitlets/config/loader.py", line 457, in load_config
        self._read_file_as_dict()
      File "/usr/local/lib/python3.6/dist-packages/traitlets/config/loader.py", line 489, in _read_file_as_dict
        py3compat.execfile(conf_filename, namespace)
      File "/usr/local/lib/python3.6/dist-packages/ipython_genutils/py3compat.py", line 198, in execfile
        exec(compiler(f.read(), fname, 'exec'), glob, loc)
      File "/usr/local/etc/jupyterhub/jupyterhub_config.py", line 446, in <module>
        exec(config_py)
      File "<string>", line 1, in <module>
    ModuleNotFoundError: No module named 'cdsdashboards'
@danlester
Copy link
Member

I haven't had a chance to try ideonate/cdsdashboards-jupyter-k8s-hub:1.1.3-0.6.0 within a Z2JH setting but it does seem to have cdsdashboards installed correctly within Python.

My guess is that somehow the hub image isn't being set correctly. I think we'd need to see more of your z2jh config to explore further.

You could also check the hub pod to be sure it's pulling the correct image for the container.

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