Opened 5 years ago
Closed 5 years ago
#31708 closed Bug (invalid)
django-ldap-auth-backend
Reported by: | phani | Owned by: | nobody |
---|---|---|---|
Component: | contrib.auth | Version: | 3.0 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
i am getting below error while installing django-ldap-auth-backend
Collecting django-ldap-auth-backend
Using cached django-ldap-auth-backend-0.1.6.tar.gz (838 kB)
Collecting python-ldap<4.0.0,>=3.1.0
Using cached python-ldap-3.2.0.tar.gz (367 kB)
Collecting django-angular-host-page-template-backend<2.0.0,>=0.1.0
Using cached django-angular-host-page-template-backend-0.1.2.tar.gz (5.9 kB)
Requirement already satisfied: pyasn1>=0.3.7 in c:\cogplesx\venv\lib\site-packages (from python-ldap<4.0.0,>=3.1.0->django-ldap-auth-backend) (0.4.8)
Requirement already satisfied: pyasn1_modules>=0.1.5 in c:\cogplesx\venv\lib\site-packages (from python-ldap<4.0.0,>=3.1.0->django-ldap-auth-backend) (0.2.8)
Using legacy setup.py install for django-ldap-auth-backend, since package 'wheel' is not installed.
Using legacy setup.py install for python-ldap, since package 'wheel' is not installed.
Using legacy setup.py install for django-angular-host-page-template-backend, since package 'wheel' is not installed.
Installing collected packages: python-ldap, django-angular-host-page-template-backend, django-ldap-auth-backend
Running setup.py install for python-ldap: started
Running setup.py install for python-ldap: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'C:\CogPLESX\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:
Users
phani
AppData
Local
Temp
pycharm-packaging
python-ldap
setup.py'"'"'; file='"'"'C:
Users
phani
AppData
Local
Temp
pycharm-packaging
python-ldap
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\phani\AppData\Local\Temp\pip-record-it2cko7t\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\CogPLESX\venv\include\site\python3.8\python-ldap'
cwd: C:\Users\phani\AppData\Local\Temp\pycharm-packaging\python-ldap\
Complete output (80 lines):
running install
running build
running build_py
creating build\lib.win-amd64-3.8
copying Lib\ldapurl.py -> build\lib.win-amd64-3.8
copying Lib\ldif.py -> build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\ldap
copying Lib\ldap\async.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\asyncsearch.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\cidict.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\compat.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\constants.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\dn.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\filter.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\functions.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\ldapobject.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\logger.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\modlist.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\pkginfo.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\resiter.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\sasl.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\syncrepl.py -> build\lib.win-amd64-3.8\ldap
copying Lib\ldap\init.py -> build\lib.win-amd64-3.8\ldap
creating build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\deref.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\libldap.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\openldap.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\pagedresults.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\ppolicy.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\psearch.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\pwdpolicy.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\readentry.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\sessiontrack.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\simple.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\sss.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\vlv.py -> build\lib.win-amd64-3.8\ldap\controls
copying Lib\ldap\controls\init.py -> build\lib.win-amd64-3.8\ldap\controls
creating build\lib.win-amd64-3.8\ldap\extop
copying Lib\ldap\extop\dds.py -> build\lib.win-amd64-3.8\ldap\extop
copying Lib\ldap\extop\init.py -> build\lib.win-amd64-3.8\ldap\extop
creating build\lib.win-amd64-3.8\ldap\schema
copying Lib\ldap\schema\models.py -> build\lib.win-amd64-3.8\ldap\schema
copying Lib\ldap\schema\subentry.py -> build\lib.win-amd64-3.8\ldap\schema
copying Lib\ldap\schema\tokenizer.py -> build\lib.win-amd64-3.8\ldap\schema
copying Lib\ldap\schema\init.py -> build\lib.win-amd64-3.8\ldap\schema
creating build\lib.win-amd64-3.8\slapdtest
copying Lib\slapdtest\_slapdtest.py -> build\lib.win-amd64-3.8\slapdtest
copying Lib\slapdtest\init.py -> build\lib.win-amd64-3.8\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'
writing manifest file 'Lib\python_ldap.egg-info\SOURCES.txt'
creating build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\README -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\ca.conf -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\ca.pem -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\client.conf -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\client.key -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\client.pem -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\gencerts.sh -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\gennssdb.sh -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\server.conf -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\server.key -> build\lib.win-amd64-3.8\slapdtest\certs
copying Lib\slapdtest\certs\server.pem -> build\lib.win-amd64-3.8\slapdtest\certs
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building '_ldap' extension
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\Modules
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DHAVE_SASL -DHAVE_TLS -DHAVE_LIBLDAP_R -DHAVE_LIBLDAP_R -DLDAPMODULE_VERSION=3.2.0 "-DLDAPMODULE_AUTHOR=python-ldap project" "-DLDAPMODULE_LICENSE=Python style" -IModules -IC:\CogPLESX\venv\include -IC:\Users\phani\AppData\Local\Programs\Python\Python38\include -IC:\Users\phani\AppData\Local\Programs\Python\Python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /TcModules/LDAPObject.c /Fobuild\temp.win-amd64-3.8\Release\Modules/LDAPObject.obj
LDAPObject.c
C:\Users\phani\AppData\Local\Temp\pycharm-packaging\python-ldap\Modules\constants.h(7): fatal error C1083: Cannot open include file: 'lber.h': No such file or directory
error: command 'C:
Program Files (x86)
Microsoft Visual Studio
2019
BuildTools
VC
Tools
MSVC
14.21.27702
bin
HostX86
x64
cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\CogPLESX\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:
Users
phani
AppData
Local
Temp
pycharm-packaging
python-ldap
setup.py'"'"'; file='"'"'C:
Users
phani
AppData
Local
Temp
pycharm-packaging
python-ldap
setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\phani\AppData\Local\Temp\pip-record-it2cko7t\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\CogPLESX\venv\include\site\python3.8\python-ldap' Check the logs for full command output.
Hi,
You've already been told that this was not a support channel in #31707. Please do not keep trying.