Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticator class cannot be imported #123

Closed
vishma opened this issue May 16, 2019 · 2 comments
Closed

Authenticator class cannot be imported #123

vishma opened this issue May 16, 2019 · 2 comments

Comments

@vishma
Copy link

vishma commented May 16, 2019

I have tried to use ldap authenticator with jupyterhub 0.9.6.

I have added this to my jupyterhub config file.

c.JupyterHub.authenticator_class = 'ldapauthenticator.LDAPAuthenticator'

I am getting the following error. However I can import LDAPAuthenticator class from a python script therefore I assume ldapauthenticator has installed correctly.

Any help would be appreciated.
Thanks !!!

< ERROR MESSAGE>

[C 2019-05-16 15:13:10.140 JupyterHub application:90] Bad config encountered during initialization:
[C 2019-05-16 15:13:10.140 JupyterHub application:91] The 'authenticator_class' trait of <jupyterhub.app.JupyterHub object at 0x7fb07ce86d68> instance must be a type, but 'ldapauthenticator.LDAPAuthenticator' could not be imported

@dhirschfeld
Copy link
Collaborator

Sounds like you're running jupyterhub from a different python environment than the one you tested in. ldapauthenticator will have to be installed in the environment which jupyterhub runs in

@vishma
Copy link
Author

vishma commented May 17, 2019

You are correct. Turns out when I use sudo jupyterhub cmd to start the server it uses the system-wide default python installation instead of my conda virtual environment.

Thanks for the reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants