You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "salah34145 (via GitHub)" <gi...@apache.org> on 2025/01/29 10:01:08 UTC

[I] pip install python-ldap [superset]

salah34145 opened a new issue, #32024:
URL: https://github.com/apache/superset/issues/32024

   ### Bug description
   
   C:\superset_dev>pip install python-ldap
   Collecting python-ldap
     Using cached python-ldap-3.4.4.tar.gz (377 kB)
     Installing build dependencies ... done
     Getting requirements to build wheel ... done
     Preparing metadata (pyproject.toml) ... done
   Collecting pyasn1>=0.3.7 (from python-ldap)
     Using cached pyasn1-0.6.1-py3-none-any.whl.metadata (8.4 kB)
   Collecting pyasn1_modules>=0.1.5 (from python-ldap)
     Using cached pyasn1_modules-0.4.1-py3-none-any.whl.metadata (3.5 kB)
   Using cached pyasn1-0.6.1-py3-none-any.whl (83 kB)
   Using cached pyasn1_modules-0.4.1-py3-none-any.whl (181 kB)
   Building wheels for collected packages: python-ldap
     Building wheel for python-ldap (pyproject.toml) ... error
     error: subprocess-exited-with-error
   
     × Building wheel for python-ldap (pyproject.toml) did not run successfully.
     │ exit code: 1
     ╰─> [80 lines of output]
         C:\Users\User\AppData\Local\Temp\pip-build-env-zl95wtm9\overlay\Lib\site-packages\setuptools\_distutils\dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
           warnings.warn(msg)
         running bdist_wheel
         running build
         running build_py
         creating build\lib.win-amd64-cpython-310
         copying Lib\ldapurl.py -> build\lib.win-amd64-cpython-310
         copying Lib\ldif.py -> build\lib.win-amd64-cpython-310
         creating build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\async.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\asyncsearch.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\cidict.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\compat.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\constants.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\dn.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\filter.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\functions.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\ldapobject.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\logger.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\modlist.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\pkginfo.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\resiter.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\sasl.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\syncrepl.py -> build\lib.win-amd64-cpython-310\ldap
         copying Lib\ldap\__init__.py -> build\lib.win-amd64-cpython-310\ldap
         creating build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\deref.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\libldap.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\openldap.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\pagedresults.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\ppolicy.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\psearch.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\pwdpolicy.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\readentry.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\sessiontrack.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\simple.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\sss.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\vlv.py -> build\lib.win-amd64-cpython-310\ldap\controls
         copying Lib\ldap\controls\__init__.py -> build\lib.win-amd64-cpython-310\ldap\controls
         creating build\lib.win-amd64-cpython-310\ldap\extop
         copying Lib\ldap\extop\dds.py -> build\lib.win-amd64-cpython-310\ldap\extop
         copying Lib\ldap\extop\passwd.py -> build\lib.win-amd64-cpython-310\ldap\extop
         copying Lib\ldap\extop\__init__.py -> build\lib.win-amd64-cpython-310\ldap\extop
         creating build\lib.win-amd64-cpython-310\ldap\schema
         copying Lib\ldap\schema\models.py -> build\lib.win-amd64-cpython-310\ldap\schema
         copying Lib\ldap\schema\subentry.py -> build\lib.win-amd64-cpython-310\ldap\schema
         copying Lib\ldap\schema\tokenizer.py -> build\lib.win-amd64-cpython-310\ldap\schema
         copying Lib\ldap\schema\__init__.py -> build\lib.win-amd64-cpython-310\ldap\schema
         creating build\lib.win-amd64-cpython-310\slapdtest
         copying Lib\slapdtest\_slapdtest.py -> build\lib.win-amd64-cpython-310\slapdtest
         copying Lib\slapdtest\__init__.py -> build\lib.win-amd64-cpython-310\slapdtest
         running egg_info
         writing Lib\python_ldap.egg-info\PKG-INFO
         writing dependency_links to Lib\python_ldap.egg-info\dependency_links.txt
         writing requirements to Lib\python_ldap.egg-info\requires.txt
         writing top-level names to Lib\python_ldap.egg-info\top_level.txt
         reading manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
         reading manifest template 'MANIFEST.in'
         no previously-included directories found matching 'Doc\.build'
         adding license file 'LICENCE'
         writing manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
         creating build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\README -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\ca.conf -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\ca.pem -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\client.conf -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\client.key -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\client.pem -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\gencerts.sh -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\gennssdb.sh -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\server.conf -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\server.key -> build\lib.win-amd64-cpython-310\slapdtest\certs
         copying Lib\slapdtest\certs\server.pem -> build\lib.win-amd64-cpython-310\slapdtest\certs
         running build_ext
         building '_ldap' extension
         creating build\temp.win-amd64-cpython-310\Release\Modules
         "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DLDAPMODULE_VERSION=3.4.4 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -IC:\Users\User\AppData\Local\Programs\Python\Python310\include -IC:\Users\User\AppData\Local\Programs\Python\Python310\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.26100.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.26100.0\\cppwinrt" "-IC:\Program Files (x8
 6)\Windows Kits\NETFXSDK\4.8\include\um" -IC:\path\to\openldap\include /TcModules/LDAPObject.c /Fobuild\temp.win-amd64-cpython-310\Release\Modules\LDAPObject.obj
         LDAPObject.c
         C:\Users\User\AppData\Local\Temp\pip-install-eisc8oi_\python-ldap_feb9dba0d03148f9a8f2215539599d07\Modules\common.h(15): fatal error C1083: Impossible d'ouvrir le fichier includeÿ: 'lber.h'ÿ: No such file or directory
         error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.42.34433\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
         [end of output]
   
     note: This error originates from a subprocess, and is likely not a problem with pip.
     ERROR: Failed building wheel for python-ldap
   Failed to build python-ldap
   
   [notice] A new release of pip is available: 24.3.1 -> 25.0
   [notice] To update, run: python.exe -m pip install --upgrade pip
   ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (python-ldap)
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   master / latest-dev
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [ ] I have searched Superset docs and Slack and didn't find a solution to my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug report.
   - [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.


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


Re: [I] pip install python-ldap [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke closed issue #32024: pip install python-ldap
URL: https://github.com/apache/superset/issues/32024


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


Re: [I] pip install python-ldap [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #32024:
URL: https://github.com/apache/superset/issues/32024#issuecomment-2621185131

   <!-- Answer -->
   The error you're encountering is due to a missing `lber.h` file, which is part of the OpenLDAP development libraries. To resolve this issue, you need to install the necessary dependencies for building `python-ldap` on Windows. Here are the steps you can follow:
   
   1. **Install OpenLDAP Libraries**: You need to have the OpenLDAP development libraries installed on your system. You can download precompiled binaries for Windows from [OpenLDAP for Windows](https://www.openldap.org/software/download/).
   
   2. **Set Environment Variables**: After installing the OpenLDAP libraries, set the environment variables to point to the include and lib directories of OpenLDAP. For example:
      - `INCLUDE`: Set this to the path where `lber.h` and other header files are located.
      - `LIB`: Set this to the path where the OpenLDAP library files are located.
   
   3. **Install Microsoft Build Tools**: Ensure you have the Microsoft C++ Build Tools installed, as they are required for compiling C extensions. You can download them from the [Visual Studio website](https://visualstudio.microsoft.com/visual-cpp-build-tools/).
   
   4. **Install `python-ldap`**: Once the above dependencies are in place, try installing `python-ldap` again using pip:
      ```bash
      pip install python-ldap
      ```
   
   These steps should help you successfully build and install `python-ldap` on your Windows system.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/f94035be-8bc1-45f0-8a8e-9ded908179bd?feedback_type=other)</sup>
   


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


Re: [I] pip install python-ldap [superset]

Posted by "hainenber (via GitHub)" <gi...@apache.org>.
hainenber commented on issue #32024:
URL: https://github.com/apache/superset/issues/32024#issuecomment-2624639304

   hi @salah34145 , this is not relevant to Superset actually as this is installation issue of `python-ldap` on your machine.


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


Re: [I] pip install python-ldap [superset]

Posted by "sfirke (via GitHub)" <gi...@apache.org>.
sfirke commented on issue #32024:
URL: https://github.com/apache/superset/issues/32024#issuecomment-2631279521

   Thanks @hainenber for responding to this! Closing as it seems not to be related to the Superset codebase.


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