CygWin: TypeError: basis_file must be a (true) file, while restoring inremental backup or file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Duplicity |
Fix Released
|
Medium
|
Unassigned |
Bug Description
This is a resurrection of 670891 (https:/
I'm using CygWin under Windows 7. Duplicity is downloaded from the home page and built from scratch with command "python setup.py install".
-------
$ duplicity -V
duplicity 0.7.04
-------
When trying to restore a specific file (with deltas) or a full backup with deltas - I'm getting 'TypeError: basis_file must be a (true) file'. It's the regression of 670891. It was fixed in 0.6.12 (I looked at the code of that version), there is "os.tmpfile()" in spite of "tempfile.
I tried to fix the problem with replacing "tempfp = tempfile.
Full command line log is attached.
Changed in duplicity: | |
status: | Fix Committed → Fix Released |
The problem that caused the change to tempfile. TemporaryFile was due to the fact that os.tmpfile always creates its file in the system temp directory, not in the directory specified. The fix I applied was to use os.tmpfile in cygwin/windows and tempfile. TemporaryFile in all the rest. This means that cygwin is now broken with respect to temp file placement of this one file (deleted automatically on close).