Hi there,
I’ve been playing around with RTC extension on jupyterhub recently and I’ve been stuck at creating-collaboration-accounts for a while.
It mentions This configuration code runs when jupyterhub starts up, so I included the example code block under hub.extraConfig.'myConfig.py', then I got this error: TypeError: 'LazyConfigValue' object is not subscriptable. I feel like maybe I didn’t put the collab user creation code at the correct place?
Traceback:
[D 2023-11-08 07:54:45.453 JupyterHub application:905] Looking for /usr/local/etc/jupyterhub/jupyterhub_config in /srv/jupyterhub
Loading /usr/local/etc/jupyterhub/secret/values.yaml
No config at /usr/local/etc/jupyterhub/existing-secret/values.yaml
Loading extra config: myConfig.py
[E 2023-11-08 07:54:45.934 JupyterHub app:3382]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/site-packages/jupyterhub/app.py", line 3379, in launch_instance_async
await self.initialize(argv)
File "/usr/local/lib/python3.11/site-packages/jupyterhub/app.py", line 2857, in initialize
self.load_config_file(self.config_file)
File "/usr/local/lib/python3.11/site-packages/traitlets/config/application.py", line 113, in inner
return method(app, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/traitlets/config/application.py", line 953, in load_config_file
for config, fname in self._load_config_files(
File "/usr/local/lib/python3.11/site-packages/traitlets/config/application.py", line 912, in _load_config_files
config = loader.load_config()
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/traitlets/config/loader.py", line 626, in load_config
self._read_file_as_dict()
File "/usr/local/lib/python3.11/site-packages/traitlets/config/loader.py", line 659, in _read_file_as_dict
exec(compile(f.read(), conf_filename, "exec"), namespace, namespace) # noqa
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/etc/jupyterhub/jupyterhub_config.py", line 497, in <module>
exec(config_py)
File "<string>", line 63, in <module>
TypeError: 'LazyConfigValue' object is not subscriptable
[D 2023-11-08 07:54:45.937 JupyterHub application:1031] Exiting application: jupyterhub
You’re missing the initialisatoin of the list and dict properties, see the First, we are going to prepare to define the roles and groups: code block in