You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2020/02/12 13:10:42 UTC

[GitHub] [incubator-superset] klazaj opened a new issue #9127: "Exception: No ldap library for python" when running Superset with Docker

klazaj opened a new issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127
 
 
   I'm running Superset with Docker. 
   I changed the Authentication type from `AUTH_DB` to `AUTH_LDAP` in `config.py` like so:
   
   ```
   AUTH_TYPE = AUTH_LDAP
   AUTH_LDAP_SERVER = "ldap://ldap.forumsys.com"
   AUTH_LDAP_SEARCH = "dc=example ,dc=com"
   AUTH_LDAP_BIND_PASSWORD = "password"
   ```
   
   But when I try to login, I get the exception `No ldap library for python`. Why is that? Doesn't Python ldap install at the beginning of the image creation?  Do I need to add `pyldap` or something similar to the requirements.txt and rebuild the image? 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] perrfect edited a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
perrfect edited a comment on issue #9127:
URL: https://github.com/apache/superset/issues/9127#issuecomment-934502816


   Hello.
   I have the save issue.
   I use a docker-compose and latest code from the github repo.
   I've tried to add python-ldap in all requirement files, but got error: `"python-ldap library is not installed"`.
   After that i had tried install python-ldap directly in a docker container, but got error: `"ERROR:flask_appbuilder.security.manager:(0, 'Error')"`
   How can fix it and which requirements file should i use for that?
   And when i tried install python-ldap directly in docker container i needed install additional packages for ubuntu:
   `"python-dev libldap2-dev libsasl2-dev libssl-dev"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] dpgaspar commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
dpgaspar commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127#issuecomment-585638814
 
 
   You need to install `python-ldap` adding it to `requirements-extra.txt` and rebuilding the image should work

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] klazaj edited a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
klazaj edited a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127#issuecomment-585630485
 
 
   @saurabhdhupar I'm not sure which dependency I'm supposed to look for. There is no `ldap` of some sort in requirements.txt or requirements-dev.txt file to begin with. The only installation of it is in the Dockerfile : `RUN apt-get install -y build-essential libssl-dev \
       libffi-dev python3-dev libsasl2-dev libldap2-dev libxi-dev \`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] klazaj edited a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
klazaj edited a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127#issuecomment-585630485
 
 
   @saurabhdhupar I'm not sure which dependency I'm supposed to look for. There is no `ldap` of some sort in requirements.txt or requirements-dev.txt file to begin with. The only installation of it is in `Dockerfile` : `RUN apt-get install -y build-essential libssl-dev \
       libffi-dev python3-dev libsasl2-dev libldap2-dev libxi-dev \`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] saurabhdhupar commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
saurabhdhupar commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127#issuecomment-585396979
 
 
   If you login to docker container and try pip freeze you should be able to find if this dependency is missing. You can add a dependency to requirements-dev.txt and rebuild the docker image.  

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] perrfect commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
perrfect commented on issue #9127:
URL: https://github.com/apache/superset/issues/9127#issuecomment-934502816


   Hello.
   I have the save issue.
   I use a docker-compose and latest code from the github repo.
   I've tried to add python-ldap in all requirement files, but got error: "python-ldap library is not installed".
   After that i had tried install python-ldap directly in a docker container, but got error: "ERROR:flask_appbuilder.security.manager:(0, 'Error')"
   How can fix it and which requirements file should i use for that?
   And when i tried install python-ldap directly in docker container i needed install additional packages for ubuntu:
   "python-dev libldap2-dev libsasl2-dev libssl-dev"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] perrfect removed a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
perrfect removed a comment on issue #9127:
URL: https://github.com/apache/superset/issues/9127#issuecomment-934502816


   Hello.
   I have the save issue.
   I use a docker-compose and latest code from the github repo.
   I've tried to add python-ldap in all requirement files, but got error: `"python-ldap library is not installed"`.
   After that i had tried install python-ldap directly in a docker container, but got error: `"ERROR:flask_appbuilder.security.manager:(0, 'Error')"`
   How can fix it and which requirements file should i use for that?
   And when i tried install python-ldap directly in docker container i needed install additional packages for ubuntu:
   `"python-dev libldap2-dev libsasl2-dev libssl-dev"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] klazaj commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
klazaj commented on issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127#issuecomment-585630485
 
 
   @saurabhdhupar I'm not sure which dependency I'm supposed to look for. There is no `ldap` of some sort in requirements.txt or requirements-dev.txt file to begin with.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [incubator-superset] klazaj closed issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
klazaj closed issue #9127: "Exception: No ldap library for python" when running Superset with Docker
URL: https://github.com/apache/incubator-superset/issues/9127
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


[GitHub] [superset] perrfect removed a comment on issue #9127: "Exception: No ldap library for python" when running Superset with Docker

Posted by GitBox <gi...@apache.org>.
perrfect removed a comment on issue #9127:
URL: https://github.com/apache/superset/issues/9127#issuecomment-934502816


   Hello.
   I have the save issue.
   I use a docker-compose and latest code from the github repo.
   I've tried to add python-ldap in all requirement files, but got error: `"python-ldap library is not installed"`.
   After that i had tried install python-ldap directly in a docker container, but got error: `"ERROR:flask_appbuilder.security.manager:(0, 'Error')"`
   How can fix it and which requirements file should i use for that?
   And when i tried install python-ldap directly in docker container i needed install additional packages for ubuntu:
   `"python-dev libldap2-dev libsasl2-dev libssl-dev"`


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org