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 2022/01/18 09:18:50 UTC

[GitHub] [superset] curious86 opened a new issue #18074: python-ldap package installation not working for ldap

curious86 opened a new issue #18074:
URL: https://github.com/apache/superset/issues/18074


   I was trying to set ldap based auth for superset, while running superset in docker. I have updated superset_config.py with the LDAP auth code.  Then ran the following command:
   `docker-compose -f docker-compose-non-dev.yml up
   `
   But got the following error when tried to login:
   `2022-01-18 08:55:35,505:ERROR:flask_appbuilder.security.manager:python-ldap library is not installed`
   
   Can anyone give an example of how to install this package?
   
   I have tried various ways to install python-ldap, but nothing seems to work:
   1. Added following likes in Dockerfile:
   ```
   RUN apt-get install -y libsasl2-dev python-dev libldap2-dev libssl-dev
   RUN pip install python-ldap
   ```
   2. Tried the following commands as well:
   ```
   touch ./docker/requirements-local.txt
   echo "python-ldap" >> ./docker/requirements-local.txt
   ```
   ^^trying this is throwing the below error for : superset, superset-worker, superset-worker-beat:
   ```
   superset_worker         |   ERROR: Failed building wheel for python-ldap
   superset_worker         | ERROR: Could not build wheels for python-ldap which use PEP 517 and cannot be installed directly
   superset_worker         | Failed to build python-ldap
   superset_worker         | WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
   superset_worker         | You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
   superset_worker exited with code 1
   ```
   
   My mac python version is: Python 3.8.9
   
   Please let me know , what is the right way to install the python-ldap package, while running superset in docker??
   
   


-- 
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] curious86 closed issue #18074: python-ldap package installation not working for ldap

Posted by GitBox <gi...@apache.org>.
curious86 closed issue #18074:
URL: https://github.com/apache/superset/issues/18074


   


-- 
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] curious86 edited a comment on issue #18074: python-ldap package installation not working for ldap

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


   This issue is resolved after installing the missing package (python-ldap) and prerequisites through the container's (superset-app container) interactive shell.
   
   step 1:  (container name was superset-app in my case)
   `docker exec -it <container name> /bin/bash
   ` 
   step 2: (please verify if all the packages are needed)
   `apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils tox lcov valgrind
   `
   step 3:
   `pip install python-ldap
   `
   Ideally no need to restart the containers, but if it does not resolve the issue, try restarting specific container or all containers.
   `docker-compose -f docker-compose-non-dev.yml restart`
   
   


-- 
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] curious86 commented on issue #18074: python-ldap package installation not working for ldap

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


   This is is resolved after installing the missing package (python-ldap) and prerequisites through the container's (superset-app container) interactive shell.
   
   step 1:  (container name was superset-app in my case)
   `docker exec -it <container name> /bin/bash
   ` 
   step 2: (please verify if all the packages are needed)
   `apt-get update -y && apt-get install -y python3-dev libldap2-dev libsasl2-dev ldap-utils tox lcov valgrind
   `
   step 3:
   `pip install python-ldap
   `
   Ideally no need to restart the containers, but if it does not resolve the issue, try restarting specific container or all containers.
   `docker-compose -f docker-compose-non-dev.yml restart`
   
   


-- 
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