我已经为jupyterhub安装了sudospawner:sudo pip3 install sudospawner,然后按照说明设置sudoers,并添加到我的jupyterhub_config.py中:
c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner'
c.SudoSpawner.sudospawner_path = '/usr/local/bin/sudospawner'但是,我安装的jupyterhub似乎没有检测到它,因为我启动了集线器:
[C 2017-11-02 15:37:07.028 JupyterHub application:90] Bad config encountered during initialization:
[C 2017-11-02 15:37:07.029 JupyterHub application:91] The 'spawner_class' trait of <jupyterhub.app.JupyterHub object at 0x7f3fa0e24080> instance must be a type, but 'sudospawner.SudoSpawner' could not be imported(以'sudospawner.SudoSpawner' could not be imported结尾)
jupyter集线器的版本是0.8.0
似乎我在安装或集成sudospawner时遗漏了一些东西。
有什么想法吗?Thx
发布于 2017-12-02 04:16:39
如果您可以安装git并使用相同的配置运行此命令-
sudo pip3 install git+https://github.com/jupyter/sudospawnerhttps://stackoverflow.com/questions/47079883
复制相似问题