Skip to content

ImportError on MacOS 10.15.5 #359

Description

@OutOfFocus4

If you found a bug in python-ldap, or would request a new feature,
this is the place to let us know.

Please describe the issue and your environment here.


Issue description:

After installing python-ldap 3.3.0 on my iMac, it raises an ImportError whenever I try to import it.

Steps to reproduce:

cd /tmp
python3 -m venv test
source test/bin/activate
pip install -U pip setuptools
pip install python-ldap
python -c 'import ldap'

Output:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/private/tmp/test/lib/python3.7/site-packages/ldap/__init__.py", line 34, in <module>
    import _ldap
ImportError: dlopen(/private/tmp/test/lib/python3.7/site-packages/_ldap.cpython-37m-darwin.so, 2): Symbol not found: _ldap_init_fd
  Referenced from: /private/tmp/test/lib/python3.7/site-packages/_ldap.cpython-37m-darwin.so
  Expected in: flat namespace
 in /private/tmp/test/lib/python3.7/site-packages/_ldap.cpython-37m-darwin.so

Operating system: MacOS 10.15.5 (Catalina)

Python version: CPython 3.7.7 (installed with Homebrew)

python-ldap version: 3.3.0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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