Hi,

I have the issue that pip stalls installing the `six` package on one of our 
servers. Other packages don't cause problems and installing `six` from 
other servers also works. When I kill the process the stacktrace shows that 
pip is waiting in a the file `mkdirlockfile.py`. But if it is an issue with 
an lock file, it would also affect other packages, or? What would you 
recommend to try out to debug this?

Thanks
Ludwig

*This is the output of pip install six --upgrade --user -v:*
1 location(s) to search for versions of six:
* https://pypi.python.org/simple/six/
Getting page https://pypi.python.org/simple/six/
Looking up "https://pypi.python.org/simple/six/"; in the cache
No cache entry available
Starting new HTTPS connection (1): pypi.python.org
"GET /simple/six/ HTTP/1.1" 200 2564
Updating cache with response from "https://pypi.python.org/simple/six/";
Caching b/c date exists and max-age > 0

*When I kill the process I get following output:*
^CCleaning up...
Operation cancelled by user
Exception information:
Traceback (most recent call last):
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/basecommand.py", line 
215, in main
    status = self.run(options, args)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/commands/install.py", 
line 335, in run
    wb.build(autobuilding=True)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/wheel.py", line 
749, in build
    self.requirement_set.prepare_files(self.finder)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 
380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 
487, in _prepare_file
    req_to_install, finder)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 
428, in _check_skip_installed
    req_to_install, upgrade_allowed)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/index.py", line 
465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/index.py", line 
423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/index.py", line 
568, in _get_pages
    page = self._get_page(location)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/index.py", line 
683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/index.py", line 
792, in get_page
    "Cache-Control": "max-age=600",
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
 
line 488, in get
    return self.request('GET', url, **kwargs)
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/download.py", 
line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
 
line 475, in request
    resp = self.send(prep, **send_kwargs)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/sessions.py",
 
line 628, in send
    r.content
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/models.py",
 
line 755, in content
    self._content = bytes().join(self.iter_content(CONTENT_CHUNK_SIZE)) or 
bytes()
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/models.py",
 
line 676, in generate
    for chunk in self.raw.stream(chunk_size, decode_content=True):
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py",
 
line 357, in stream
    data = self.read(amt=amt, decode_content=decode_content)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/response.py",
 
line 314, in read
    data = self._fp.read(amt)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py",
 
line 63, in read
    self._close()
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/filewrapper.py",
 
line 50, in _close
    self.__callback(self.__buf.getvalue())
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/controller.py",
 
line 297, in cache_response
    self.serializer.dumps(request, response, body=body),
  File "/home/ludwig/.local/lib/python2.7/site-packages/pip/download.py", 
line 289, in set
    return super(SafeFileCache, self).set(*args, **kwargs)
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/cachecontrol/caches/file_cache.py",
 
line 99, in set
    with self.lock_class(name) as lock:
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/lockfile/__init__.py",
 
line 197, in __enter__
    self.acquire()
  File 
"/home/ludwig/.local/lib/python2.7/site-packages/pip/_vendor/lockfile/mkdirlockfile.py",
 
line 57, in acquire
    time.sleep(wait)
KeyboardInterrupt

-- 
You received this message because you are subscribed to the Google Groups 
"virtualenv" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to python-virtualenv+unsubscr...@googlegroups.com.
To post to this group, send email to python-virtualenv@googlegroups.com.
Visit this group at https://groups.google.com/group/python-virtualenv.
For more options, visit https://groups.google.com/d/optout.

Reply via email to