Skip to content

SEARCH_SCPOPE_BASE_OBJECT error on initial import #8

Description

@tskirvin

On a freshly-installed CentOS 8 system where I just run 'pip3 install ldap-groups', I see:

>>> import ldap_groups
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/site-packages/ldap_groups/__init__.py", line 1, in <module>
    from .groups import ADGroup  # noqa: F401
  File "/usr/local/lib/python3.6/site-packages/ldap_groups/groups.py", line 12, in <module>
    from ldap3 import (Server, Connection, SEARCH_SCOPE_BASE_OBJECT, SEARCH_SCOPE_WHOLE_SUBTREE, MODIFY_DELETE,
ImportError: cannot import name 'SEARCH_SCOPE_BASE_OBJECT'

This has actually been a problem on previous releases too (e.g. RHEL7), but I was hoping that a recent install would work.

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions