You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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.
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.
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.
Install python-ldap: Once the above dependencies are in place, try installing python-ldap again using pip:
pip install python-ldap
These steps should help you successfully build and install python-ldap on your Windows system.
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 (x86)\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
The text was updated successfully, but these errors were encountered: