pip-tools: [Windows] FileExistsError using pip-compile
Using pip-compile requirements.in --output-file=requirements.txt fails at overriding if the output-file already exists (using Windows, OS X works fine).
Steps to replicate
pip-compile requirements.in --output-file=requirements.txt(whenrequirements.txtdoesn’t exist)- run the command above again (
requirements.txtnow exists)
Expected result (by step)
- create
requirements.txt - override existing
requirements.txt
Actual result (by step)
-
works fine
-
following error is raised (in German):
FileExistsError: [WinError 183] Eine Datei kann nicht erstellt werden, wenn sie bereits vorhanden ist: 'requirements.txt.part' -> 'C:\\Users\\floqqi\\Projects\\test\\requirements.txt'which roughly translates to
Can not create file, if it is already existing: 'requirements.txt.part' -> ...
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (9 by maintainers)
Commits related to this issue
- revert bak file as it was causing confusion, per nvie/pip-tools#351 — committed to mahmoud/boltons by mahmoud 8 years ago
- Incorporate fix for atomic saving on Windows Thanks for the quick patch in boltons, @mahmoud! See: https://github.com/nvie/pip-tools/issues/351 — committed to jazzband/pip-tools by nvie 8 years ago
- Incorporate fix for atomic saving on Windows Thanks for the quick patch in boltons, @mahmoud! See: https://github.com/nvie/pip-tools/issues/351 — committed to JiachenSmith/pip-tools by nvie 7 years ago
Ugh! So this was fixed, and I remembered this, but I did not vendor this back in? That’s pretty stupid of me 😃 I’ll have a look later, probably tomorrow. Sorry about that 😃