windapsearch icon indicating copy to clipboard operation
windapsearch copied to clipboard

Installation failed while building python-ldap

Open youda313 opened this issue 4 years ago • 2 comments

Morning,

I tried to install this tool on Kali but while installing the dependencies I got an error regardless if I try with python 2 or 3. I also tried to install via apt the python-ldap which is not in kali repos. See the error below

pip2 install -r requirements.txt

Collecting python-ldap>=3.2.0 [199/1878] Using cached python-ldap-3.3.1.tar.gz (379 kB) Building wheels for collected packages: python-ldap Building wheel for python-ldap (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/ pip-install-ClP_1X/python-ldap/setup.py'"'"'; file='"'"'/tmp/pip-install-ClP_1X/python-ld ap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('" '"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wh eel -d /tmp/pip-wheel-FKn3H6 cwd: /tmp/pip-install-ClP_1X/python-ldap/ Complete output (82 lines):

youda313 avatar Jan 26 '21 09:01 youda313

Morning,

I tried to install this tool on Kali but while installing the dependencies I got an error regardless if I try with python 2 or 3. I also tried to install via apt the python-ldap which is not in kali repos. See the error below

pip2 install -r requirements.txt

Collecting python-ldap>=3.2.0 [199/1878] Using cached python-ldap-3.3.1.tar.gz (379 kB) Building wheels for collected packages: python-ldap Building wheel for python-ldap (setup.py) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/ pip-install-ClP_1X/python-ldap/setup.py'"'"'; file='"'"'/tmp/pip-install-ClP_1X/python-ld ap/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('" '"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' bdist_wh eel -d /tmp/pip-wheel-FKn3H6 cwd: /tmp/pip-install-ClP_1X/python-ldap/ Complete output (82 lines):

Enter this command first sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev and then pip install python-ldap

Subn0x avatar May 17 '21 19:05 Subn0x