[python-ldap] Latest version 2.5.2 does not pip install properly
Petr Viktorin
pviktori at redhat.com
Fri Dec 1 05:52:49 EST 2017
On 11/30/2017 05:30 PM, Carl Nobile wrote:
> OK, great. Looks like it will be out before our project needs to go to
> prod next October. (I work for Cisco)
> I'll continue using pyldap for now then update my requirements file later.
> Can I rely on the basic usage remaining the same between the two
> packages? Any major changes that could break code?
Yes, basic usage will remain the same.
The big change from python-ldap 2.5.x will be around bytes/text
handling. See here:
http://python-ldap.readthedocs.io/en/latest/bytes_mode.html
If you're updating from pyldap, this should not affect you.
> On Thu, Nov 30, 2017 at 11:26 AM, Petr Viktorin <encukou at gmail.com
> <mailto:encukou at gmail.com>> wrote:
>
> On 11/30/2017 05:23 PM, Carl Nobile wrote:
>
> Petr,
>
> Right, I need to use python 3. It looks like pyldap work fine
> with python 3, when will that code be merged into python-ldap?
>
>
> It's merged in the development branch. Expect a beta release next week.
>
>
> Thanks
>
>
> On Thu, Nov 30, 2017 at 11:18 AM, Petr Viktorin
> <pviktori at redhat.com <mailto:pviktori at redhat.com>
> <mailto:pviktori at redhat.com <mailto:pviktori at redhat.com>>> wrote:
>
> 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?
>
>
> Hello!
> 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
>
>
--
Petr Viktorin
More information about the python-ldap
mailing list