Skip to content

Windows: installation fails with prebuilt wheels in a Conda environment #574

@jouvin

Description

@jouvin

Issue description:

I'm trying to install python-ldap on Windows in a Conda environment, using the prebuilt wheels available at https://github.com/cgohlke/python-ldap-build?tab=readme-ov-file. pip fails with the following error:

$ pip install /c/temp/python_ldap-3.4.4-cp311-cp311-win_amd64.whl
Processing c:\temp\python_ldap-3.4.4-cp311-cp311-win_amd64.whl
ERROR: Wheel 'python-ldap' located at C:\temp\python_ldap-3.4.4-cp311-cp311-win_amd64.whl is invalid.

I tried several version of Python (using the appropriate wheel) for version 3.4.3 and 3.4.4.

I also attempted to install the module with python install python-ldap after installing the MSVC tools but it also fails saying lber.h is not found.

For the record, I have been using successfully the pre-built version for a long time with Python 3.9, installed from the former location maintained by C. Gohlke (https://www.lfd.uci.edu/~gohlke/pythonlibs/#python-ldap).

Steps to reproduce:

  1. Create a Conda environment with the Python version you want: conda -n testldap python=3.11
  2. Download the amd64 version matching the Python version
  3. pip install /path/to/downloaded/wheel

Operating system:

Windows 11

Python version:

Tested with 3.9 to 3.11

python-ldap version:

3.4.3 and 3.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions