- Saved searches
- Use saved searches to filter your results more quickly
- python-ldap | pip installation not working #425
- python-ldap | pip installation not working #425
- Comments
- pip install ldap Collecting ldap Using cached ldap-2.0.0.404.tar.gz (2.0 kB) Building wheels for collected packages: ldap Building wheel for ldap (setup.py) . error ERROR: Command errored out with exit status 1: command: ‘c:\users\ale\appdata\local\programs\python\python39\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘; file='»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d ‘C:\Users\ale\AppData\Local\Temp\pip-wheel-1marva1d’ cwd: C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265 Complete output (84 lines): running bdist_wheel running build running build_py
- ldap on PyPI
- python-ldap
- ldap 1.0
- Why we don’t fix this transparently
- Please: Don’t install packages blindly
- Traceback (most recent call last): File «», line 1, in File «C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py», line 23, in setup( File «c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\setuptools_init_.py», line 153, in setup return distutils.core.setup(**attrs) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\core.py», line 148, in setup dist.run_commands() File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 966, in run_commands self.run_command(cmd) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command cmd_obj.run() File «c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py», line 299, in run self.run_command(‘build’) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py», line 313, in run_command self.distribution.run_command(command) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command cmd_obj.run() File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\command\build.py», line 135, in run self.run_command(cmd_name) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py», line 313, in run_command self.distribution.run_command(command) File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command cmd_obj.run() File «C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py», line 18, in run raise ValueError( ValueError: «ldap» is not installable. You probably want python-ldap.
- Saved searches
- Use saved searches to filter your results more quickly
- Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243
- Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243
- Comments
- Unable to install on Windows 10, I tried
Saved searches
Use saved searches to filter your results more quickly
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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
python-ldap | pip installation not working #425
python-ldap | pip installation not working #425
Comments
pip install ldap
Collecting ldap
Using cached ldap-2.0.0.404.tar.gz (2.0 kB)
Building wheels for collected packages: ldap
Building wheel for ldap (setup.py) . error
ERROR: Command errored out with exit status 1:
command: ‘c:\users\ale\appdata\local\programs\python\python39\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0]
= ‘»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘; file='»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ bdist_wheel -d ‘C:\Users\ale\AppData\Local\Temp\pip-wheel-1marva1d’
cwd: C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265
Complete output (84 lines):
running bdist_wheel
running build
running build_py
ldap on PyPI
This dummy project is not installable.
You probably want python-ldap instead.
python-ldap
The widely used python-ldap project provides
an importable module named ldap .
This goes against the convention that PyPI distribution names should
match the module names.
But, python-ldap pre-dates wide use of that convention, and the issue
is hard to fix now.
Please install python-ldap to get the LDAP bindings.
ldap 1.0
The ldap name on PyPI was used for an unrelated collection of
LDAP-related utilities, which is not as popular, and confused users who
install ldap to get the ldap module.
The project is no longer developed.
It is archived as 1.0.x releases on PyPI, and on
GitHub.
Why we don’t fix this transparently
This could have been a placeholder package that depends on python-ldap ,
saving you the trouble of reading this message.
However, pip has trouble
with differently-named packages that provide the same module.
Please: Don’t install packages blindly
When you see the exception:
ModuleNotFoundError: No module named 'foo'
… please research the actual requirements instead of going directly for
pip install foo .
The project (distribution) name may differ from the module(s) it
provides.
Traceback (most recent call last):
File «», line 1, in
File «C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py», line 23, in
setup(
File «c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\setuptools_init_.py», line 153, in setup
return distutils.core.setup(**attrs)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\core.py», line 148, in setup
dist.run_commands()
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 966, in run_commands
self.run_command(cmd)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command
cmd_obj.run()
File «c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\wheel\bdist_wheel.py», line 299, in run
self.run_command(‘build’)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command
cmd_obj.run()
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\command\build.py», line 135, in run
self.run_command(cmd_name)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py», line 313, in run_command
self.distribution.run_command(command)
File «c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py», line 985, in run_command
cmd_obj.run()
File «C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py», line 18, in run
raise ValueError(
ValueError: «ldap» is not installable. You probably want python-ldap.
ERROR: Failed building wheel for ldap
Running setup.py clean for ldap
Failed to build ldap
Installing collected packages: ldap
Running setup.py install for ldap . error
ERROR: Command errored out with exit status 1:
command: ‘c:\users\ale\appdata\local\programs\python\python39\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘; file='»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:\Users\ale\AppData\Local\Temp\pip-record-tp_t7a2t\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:\users\ale\appdata\local\programs\python\python39\Include\ldap’
cwd: C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265
Complete output (86 lines):
running install
running build
running build_py
————————————————————————
# ldap on PyPI
This dummy project is not installable. You probably want `python-ldap` instead. ### python-ldap The widely used [python-ldap](https://python-ldap.org) project provides an importable module named `ldap`. This goes against the convention that PyPI distribution names should match the module names. But, python-ldap pre-dates wide use of that convention, and the issue is hard to fix now. Please install `python-ldap` to get the LDAP bindings. ### ldap 1.0 The `ldap` name on PyPI was used for an unrelated collection of LDAP-related utilities, which is not as popular, and confused users who install `ldap` to get the `ldap` module. The project is no longer developed. It is archived as `1.0.x` releases on PyPI, and on [GitHub](https://github.com/andreif/ldap). ## Why we don't fix this transparently This could have been a placeholder package that depends on `python-ldap`, saving you the trouble of reading this message. However, `pip` [has trouble](https://github.com/pypa/pip/issues/4961) with differently-named packages that provide the same module. ## Please: Don't install packages blindly When you see the exception: ``` ModuleNotFoundError: No module named 'foo' ``` … please research the actual requirements instead of going directly for `pip install foo`. The project (distribution) name may differ from the module(s) it provides. ------------------------------------------------------------------------ Traceback (most recent call last): File "", line 1, in File "C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py", line 23, in setup( File "c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\setuptools\__init__.py", line 153, in setup return distutils.core.setup(**attrs) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\core.py", line 148, in setup dist.run_commands() File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\ale\appdata\local\programs\python\python39\lib\site-packages\setuptools\command\install.py", line 61, in run return orig.install.run(self) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\command\install.py", line 546, in run self.run_command('build') File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "c:\users\ale\appdata\local\programs\python\python39\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py", line 18, in run raise ValueError( ValueError: "ldap" is not installable. You probably want python-ldap. ----------------------------------------
ERROR: Command errored out with exit status 1: ‘c:\users\ale\appdata\local\programs\python\python39\python.exe’ -u -c ‘import io, os, sys, setuptools, tokenize; sys.argv[0] = ‘»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘; file='»‘»‘C:\Users\ale\AppData\Local\Temp\pip-install-t6dbdetz\ldap_99be0d46c19a48be86bc5169bd89b265\setup.py'»‘»‘;f = getattr(tokenize, ‘»‘»‘open'»‘»‘, open)(file) if os.path.exists(file) else io.StringIO(‘»‘»‘from setuptools import setup; setup()'»‘»‘);code = f.read().replace(‘»‘»‘\r\n'»‘»‘, ‘»‘»‘\n'»‘»‘);f.close();exec(compile(code, file, ‘»‘»‘exec'»‘»‘))’ install —record ‘C:\Users\ale\AppData\Local\Temp\pip-record-tp_t7a2t\install-record.txt’ —single-version-externally-managed —compile —install-headers ‘c:\users\ale\appdata\local\programs\python\python39\Include\ldap’ Check the logs for full command output.
The text was updated successfully, but these errors were encountered:
Saved searches
Use saved searches to filter your results more quickly
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.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243
Unable to install on Windows 10: fatal error C1083: Cannot open include file: ‘lber.h’ #243
Comments
Unable to install on Windows 10, I tried
Issue description:
Whenever I run: pip install python-ldap
I get the following:
c:\users\user\appdata\local\temp\pip-install-652a07b0\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\2017\BuildTools\VC\Tools\MSVC\14.15.26726\bin\HostX86\x86\cl.exe’ failed with exit status 2
Command «»c:\program files (x86)\python36-32\python.exe» -u -c «import setuptools, tokenize;file=’C:\Users\user\AppData\Local\Temp\pip-install-652a07b0\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\user\AppData\Local\Temp\pip-record-09ceypm_\install-record.txt —single-version-externally-managed —compile» failed with error code 1 in C:\Users\user\AppData\Local\Temp\pip-install-652a07b0\python-ldap\
pyldap-3.0.0-py2.py3-none-any.whl is not a supported wheel on this platform.
- Also looked into requirements: https://www.python-ldap.org/en/latest/installing.html#build-prerequisites
I downloaded the OpenLDAP client libs but didn’t know where to place it’s folder ?
Steps to reproduce:
pip install python-ldap
Operating system: Windows 10, version 1803, OS Build 171134.285
Python version: Python 3.6.5
The text was updated successfully, but these errors were encountered: