Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEARCH_SCPOPE_BASE_OBJECT error on initial import #8

Open
tskirvin opened this issue Dec 12, 2019 · 3 comments
Open

SEARCH_SCPOPE_BASE_OBJECT error on initial import #8

tskirvin opened this issue Dec 12, 2019 · 3 comments

Comments

@tskirvin
Copy link

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.

@kavdev
Copy link
Owner

kavdev commented Mar 25, 2020

@tskirvin hi there! Can you try the version on the master branch and let me know if the issue persists?

@tskirvin
Copy link
Author

At the very least I don't see any errors, so this is progress! I'll have to spend some time making sure everything still works. Will you be uploading to pip?

@kavdev
Copy link
Owner

kavdev commented Mar 27, 2020

Awesome! Yep; I'm not sure why I didn't do a release last time. I'll push this out next week*

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants