jupyterhub / wrapspawner

Mechanism for runtime configuration of spawners for JupyterHub
BSD 3-Clause "New" or "Revised" License
60 stars 58 forks source link

TypeError: 'str' object is not callable #37

Closed statiksof closed 4 years ago

statiksof commented 4 years ago

I got this error when I use the ProfilesSpawner with the following config:

c.JupyterHub.spawner_class = 'wrapspawner.ProfilesSpawner'
c.ProfilesSpawner.profiles = [
       ( "Host process", 'local', 'jupyterhub.spawner.LocalProcessSpawner', {'ip':'0.0.0.0'} ),
       ('Docker Python 3', 'singleuser', 'dockerspawner.SystemUserSpawner', dict(image="jupyterhub/singleuser")),
       ('Docker Python 3 Scipy', 'scipy-notebook', 'dockerspawner.SystemUserSpawner', dict(image="jupyter/scipy-notebook")),
 ] 

The error:

 File "/py36/lib/python3.6/site-packages/wrapspawner/wrapspawner.py", line 102, in load_state
        self.construct_child()
      File "/py36/lib/python3.6/site-packages/wrapspawner/wrapspawner.py", line 213, in construct_child
        super().construct_child()
      File "/py36/lib/python3.6/site-packages/wrapspawner/wrapspawner.py", line 79, in construct_child
        **self.child_config
    TypeError: 'str' object is not callable