jupyterhub-kdcauthenticator icon indicating copy to clipboard operation
jupyterhub-kdcauthenticator copied to clipboard

'kdcauthenticator.kdcauthenticator.KDCAuthenticator' could not be imported

Open mshahacr opened this issue 6 years ago • 2 comments

I tried using this KDCAuthenticator (https://github.com/joychak/jupyterhub-kdcauthenticator) . It installed fine on myJupyterhub server but when I try to use it I get the following error:

[JupyterHub application:90] Bad config encountered during initialization: [JupyterHub application:91] The 'authenticator_class' trait of <jupyterhub.app.JupyterHub object at 0x7fe67485d860> instance must be a type, but 'kdcauthenticator.kdcauthenticator.KDCAuthenticator' could not be imported

For some reason it can't find the installed Authenticator. Do I need to do any extra steps to let jupyter aware of this newly installed Authenticator?

mshahacr avatar Sep 25 '18 20:09 mshahacr

@meesam15 did you import it in the configuration? Can you share your config file here?

titan550 avatar Apr 08 '19 14:04 titan550

Had approximately same problem and this worked for me:

jupyterhub_config.py:

from kdcauthenticator.kdcauthenticator import KDCAuthenticator
c.JupyterHub.authenticator_class = KDCAuthenticator

andrey-khashchin avatar Apr 14 '19 01:04 andrey-khashchin