Traceback (most recent call last):


 "/usr/bin/pip", line 9, in <module>

from pip import main
ImportError: cannot import name main

Traceback (most recent call last):

 "/Users/ray/Desktop/uply/my-server/lib/python3.5/site-
packages/django/core/handlers/base.py", line 149, in get_response
response = self.process_exception_by_middleware(e, request)

 "/Users/ray/Desktop/uply/my-server/lib/python3.5/site-
packages/django/core/handlers/base.py", line 147, in get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)

 "/Users/ray/Desktop/uply/my-server/src/posts/views.py", line 186, in
search_title
posts = SearchQuerySet().autocomplete(content_auto=request.GET.get('search_text', ''))

 "/Users/ray/Desktop/uply/my-server/lib/python3.5/site-packages/haystack/query.py", line 471, in autocomplete
return clone.filter(six.moves.reduce(operator.__and__, query_bits))TypeError: reduce() of empty sequence with no initial value