シングルユーザーのjupyterhubを正常に実行できますが、追加する c.JupyterHub.spawner_class = 'sudospawner.SudoSpawner'
とエラーがスローされます-
[E 2016-05-04 22:14:28.633 JupyterHub user:237] Unhandled error starting rhea's server: substring not found
[E 2016-05-04 22:14:28.642 JupyterHub web:1524] Uncaught exception GET /hub/user/rhea (::ffff:10.ip.***)
Traceback (most recent call last):
File "/usr/local/lib64/python3.4/site-packages/tornado/web.py", line 1445, in _execute
result = yield result
File "/usr/local/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 493, in get
yield self.spawn_single_user(current_user)
File "/usr/local/lib/python3.4/site-packages/jupyterhub/handlers/base.py", line 312, in spawn_single_user
yield gen.with_timeout(timedelta(seconds=self.slow_spawn_timeout), f)
File "/usr/local/lib/python3.4/site-packages/jupyterhub/user.py", line 247, in spawn
raise e
File "/usr/local/lib/python3.4/site-packages/jupyterhub/user.py", line 228, in spawn
yield gen.with_timeout(timedelta(seconds=spawner.start_timeout), f)
File "/usr/local/lib/python3.4/site-packages/sudospawner/spawner.py", line 83, in start
reply = yield self.do(action='spawn', args=self.get_args(), env=self.get_env())
File "/usr/local/lib/python3.4/site-packages/sudospawner/spawner.py", line 72, in do
data_str = data_str[data_str.index('{'):data_str.rindex('}')+1]
ValueError: substring not found
実行しようとしているコマンドjupyterhubを印刷しようとしました-
['sudo', '-u', 'rhea', '-nH', 'sudospawner']
datastr 値が NULL です (/usr/local/lib/python3.4/site-packages/sudospawner/spawner.py"、72 行目、do data_str = 内)
sudospawner を含めて実行する方法は?
ありがとう!