To check, was Apache restarted after installing the new module?

Christian


On Monday, August 15, 2016, Alfred von Campe <alf...@von-campe.com> wrote:

> On Aug 15, 2016, at 17:31, Christian Hammond <christ...@beanbaginc.com
> <javascript:_e(%7B%7D,'cvml','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
>
> Installed /usr/lib/python2.7/site-packages/python_ldap-2.4.27-
> py2.7-linux-x86_64.egg
> 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
> /usr/lib/python2.7/site-packages/python_ldap-2.4.27-py2.7-linux-x86_64.egg
> 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 http://reviewboard.bose.com/account/login/
>
> 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 is_valid
>     return self.is_bound and not bool(self.errors)
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 121, in errors
>     self.full_clean()
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 274, in full_clean
>     self._clean_form()
>   File "/usr/lib/python2.7/site-packages/django/forms/forms.py", line
> 300, in _clean_form
>     self.cleaned_data = self.clean()
>   File "/usr/lib/python2.7/site-packages/django/contrib/auth/forms.py",
> line 189, in clean
>     password=password)
>   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:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> 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
> <javascript:_e(%7B%7D,'cvml','reviewboard%2bunsubscr...@googlegroups.com');>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
-- 
Christian Hammond
President/CEO of Beanbag <https://www.beanbaginc.com/>
Makers of Review Board <https://www.reviewboard.org/>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
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