[python-ldap] Latest version 2.5.2 does not pip install properly

Petr Viktorin pviktori at redhat.com
Thu Nov 30 11:18:20 EST 2017

On 11/30/2017 05:04 PM, Carl Nobile wrote:
> Hi all,
> I'm trying to install python-ldap-2.5.2 in a virtual environment and 
> I get the error below. Has the `ConfigParser` package been left out of 
> the setup file's `install_requires` argument?

The ConfigParser module is part of Python's standard library; it should 
always be available.

Maybe you're trying with Python 3? python-ldap-2.5.2 only supports 
Python 2.7. (But a python3-compatible version is in the works.)

> Collecting python-ldap (from -r requirements/base.txt (line 34))
>    Using cached python-ldap-2.5.2.tar.gz
>      Complete output from command python setup.py egg_info:
>      Traceback (most recent call last):
>        File "<string>", line 1, in <module>
>        File "/tmp/pip-build-n7bi9m4s/python-ldap/setup.py", line 9, in 
> <module>
>          from ConfigParser import ConfigParser
>      ImportError: No module named 'ConfigParser'
>      ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in 
> /tmp/pip-build-n7bi9m4s/python-ldap/

Petr Viktorin

More information about the python-ldap mailing list