On Aug 15, 2016, at 17:31, Christian Hammond <christ...@beanbaginc.com> wrote:
> What version of ldap do you have? It sounds like it may be too old. Sometimes 
> the distro-provided packages are too stale to rely upon.
> I'd recommend uninstalling the RPM and instead installing using pip:

Good idea.  The repo based Python LDAP module was version 2.4.15.  Using 
easy_install (not pip), I got version 2.4.27.  However, I’m now back to the 
"ImportError: No module named ldap” error, even though the easy_Install appears 
to have been successful;

# easy_install  python-ldap
Adding python-ldap 2.4.27 to easy-install.pth file

Processing dependencies for python-ldap
Finished processing dependencies for python-ldap

I then installed pip via easy_install, and when I tried to do a “pip install 
python-ldap” it reports that the requirement is already satisfied:

# pip install python-ldap
Requirement already satisfied (use --upgrade to upgrade): python-ldap in 
Requirement already satisfied (use --upgrade to upgrade): setuptools in 
/usr/lib/python2.7/site-packages (from python-ldap)

So it appears that the ldap module is installed (and a “import ldap” from 
Python confirms it), but ReviewBoard can’t seem to find it:

2016-08-15 21:53:22,998 - ERROR -  - Exception thrown for user AnonymousUser at 

No module named ldap
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 
112, in get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/debug.py", 
line 75, in sensitive_post_parameters_wrapper
    return view(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 99, 
in _wrapped_view
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", 
line 52, in _wrapped_view_func
    response = view_func(request, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/views.py", line 
36, in login
    if form.is_valid():
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 129, in 
    return self.is_bound and not bool(self.errors)
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 121, in 
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 274, in 
  File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line 300, in 
    self.cleaned_data = self.clean()
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/forms.py", line 
189, in clean
  File "/usr/lib/python2.7/site-packages/django/contrib/auth/__init__.py", line 
49, in authenticate
    user = backend.authenticate(**credentials)
  File "/usr/lib/python2.7/site-packages/reviewboard/accounts/backends.py", 
line 749, in authenticate
    import ldap
ImportError: No module named ldap

Supercharge your Review Board with Power Pack: 
Want us to host Review Board for you? Check out RBCommons: 
Happy user? Let us know! https://www.reviewboard.org/users/
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to