Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It returns soon for terms such as sqlite, virtualenv , etc, but why it failed for django query?

This failure has happened for more than 3 times

pip search django
Exception:
Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/pip/basecommand.py", line 107, in main
    status = self.run(options, args)
  File "/usr/local/lib/python2.6/dist-packages/pip/commands/search.py", line 34, in run
    pypi_hits = self.search(query, index_url)
  File "/usr/local/lib/python2.6/dist-packages/pip/commands/search.py", line 48, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/usr/lib/python2.6/xmlrpclib.py", line 1199, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1489, in __request
    verbose=self.__verbose
  File "/usr/lib/python2.6/xmlrpclib.py", line 1253, in request
    return self._parse_response(h.getfile(), sock)
  File "/usr/lib/python2.6/xmlrpclib.py", line 1382, in _parse_response
    response = file.read(1024)
  File "/usr/lib/python2.6/socket.py", line 377, in read
    data = self._sock.recv(left)
timeout: timed out
share|improve this question
4  
See the last line. Internet connection is timing out. – Sathya Oct 16 '12 at 6:21
    
yes, but why pip search virtualenv is not timeout? – hugemeow Oct 16 '12 at 8:41
    
Reopened because I can reproduce this behavior, at least the search takes way more time than for other packages. Why this is, I don't know. – slhck Oct 16 '12 at 15:39

There are many Python packages that have 'django' in their name so pypi fails to return all data in time. You could increase the timeout using --timeout option (default is 15 seconds).

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .