【发布时间】:2019-12-21 10:48:37
【问题描述】:
在进行看似不相关的更改并将 JupyterHub 重新部署到 OpenShift 后,我在 pod 的日志中看到一个新错误,它阻止 JupyterHub 生成笔记本。
配置文件没有改变。关于这个错误的奇怪之处在于,它似乎在说问题在于它期望一个特征是一个“元组”,但它却得到了一个“元组”类型。
错误日志的核心部分:
File "/opt/app-root/lib/python3.6/site-packages/traitlets/traitlets.py", line 2254, in validate_elements
self.element_error(obj, v, self._trait)
File "/opt/app-root/lib/python3.6/site-packages/traitlets/traitlets.py", line 2233, in element_error
raise TraitError(e)
traitlets.traitlets.TraitError: Element of the 'profiles' trait of a ProfilesSpawner instance must be a tuple, but a value of ('Jupyter Project - Minimal Notebook', 'minimal-notebook', 'kubespawner.KubeSpawner', {'singleuser_image_spec': 'minimal-notebook:3.6'}) <class 'tuple'> was specified.
【问题讨论】:
标签: python-3.x jupyter jupyterhub