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:
- Created 8 years ago
- Comments:10 (7 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Closing this, we’ve fixed this by not importing any C extensions in the install/upgrade path of pip on Windows.
Can you be specific about there is the major problem in
pipfrom technical point of view?