question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

7.0.3 Windows - problem with directory cleanup on upgrade

See original GitHub issue
>py -m pip install -U cffi
Collecting cffi
  Using cached cffi-1.1.0-cp27-none-win32.whl
Requirement already up-to-date: pycparser in c:\python27\lib\site-packages (from cffi)
Installing collected packages: cffi
  Found existing installation: cffi 1.0.2
    Uninstalling cffi-1.0.2:
      Successfully uninstalled cffi-1.0.2
Exception:
Traceback (most recent call last):
  File "C:\Python27\lib\site-packages\pip\basecommand.py", line 223, in main
    status = self.run(options, args)
  File "C:\Python27\lib\site-packages\pip\commands\install.py", line 297, in run
    root=options.root_path,
  File "C:\Python27\lib\site-packages\pip\req\req_set.py", line 633, in install
    requirement.commit_uninstall()
  File "C:\Python27\lib\site-packages\pip\req\req_install.py", line 734, in commit_uninstall
    self.uninstalled.commit()
  File "C:\Python27\lib\site-packages\pip\req\req_uninstall.py", line 153, in commit
    rmtree(self.save_dir)
  File "C:\Python27\lib\site-packages\pip\_vendor\retrying.py", line 49, in wrapped_f
    return Retrying(*dargs, **dkw).call(f, *args, **kw)
  File "C:\Python27\lib\site-packages\pip\_vendor\retrying.py", line 212, in call
    raise attempt.get()
  File "C:\Python27\lib\site-packages\pip\_vendor\retrying.py", line 247, in get
    six.reraise(self.value[0], self.value[1], self.value[2])
  File "C:\Python27\lib\site-packages\pip\_vendor\retrying.py", line 200, in call
    attempt = Attempt(fn(*args, **kwargs), attempt_number, False)
  File "C:\Python27\lib\site-packages\pip\utils\__init__.py", line 89, in rmtree
    onerror=rmtree_errorhandler)
  File "C:\Python27\lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 247, in rmtree
    rmtree(fullname, ignore_errors, onerror)
  File "C:\Python27\lib\shutil.py", line 252, in rmtree
    onerror(os.remove, fullname, sys.exc_info())
  File "C:\Python27\lib\site-packages\pip\utils\__init__.py", line 101, in rmtree_errorhandler
    func(path)
WindowsError: [Error 5] Access is denied: 'c:\\users\\user\\appdata\\local\\temp\\pip-zzlhal-uninstall\\python27\\lib\\site-packages\\_cffi_backend.pyd'

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:10 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
dstufftcommented, Mar 24, 2017

Closing this, we’ve fixed this by not importing any C extensions in the install/upgrade path of pip on Windows.

0reactions
techtonikcommented, Feb 5, 2016

And there are a large number of technical issues with doing this robustly in pip. So pip does not do this (that’s simply a fact). The reason it’s unlikely that pip will do so in the foreseeable future is that none of the pip developers feels that the cost of developing a solution is worth the benefits, and nobody outside of the pip development team has come up with a mergeable PR that does this (even if someone did, that’s no guarantee it would be applied, as there are other considerations such as maintainability, but without the first step of a usable PR, nothing will happen).

Can you be specific about there is the major problem in pip from technical point of view?

Read more comments on GitHub >

github_iconTop Results From Across the Web

VMware vCenter Server 7.0 Update 3 Release Notes
The issue occurs in vSphere with Tanzu environments when you deploy a backup solution that uses snapshots. If the snapshots are not cleaned...
Read more >
Interactive upgrade guide - IBM
Before you start the upgrade, make sure to clean up the /tmp/ directory and remove any ELM related files and directories such as,...
Read more >
Clean Up the WinSxS Folder - Microsoft Learn
Use the System Update Readiness Tool or the DISM tool to fix problems that prevent Windows Update from installing successfully. Determine the ...
Read more >
Known and Resolved Issues - Thales Docs
Resolved: Fixed in Luna Network HSM appliance software 7.8.0. LUNA-24019. Problem: When using Luna HSM Client 10.4.x, integration with Microsoft NDES does not ......
Read more >
Log Disk Exhaustion on VCSA 7 Fix - Virtualizationhowto.com
A look at troubleshooting and resolving issues with disk space on the log drive ... Cleaning up the storage log vmware lookupsvc directory....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found