Cannot restore files between different drives in Windows
See original GitHub issueIssue Report Checklist
- Searched the issues page for similar reports
- Read the relevant sections of the Spyder Troubleshooting Guide and followed its advice
- Reproduced the issue after updating with
conda update spyder
(orpip
, if not using Anaconda) - Could not reproduce inside
jupyter qtconsole
(if console-related) - Tried basic troubleshooting (if a bug/error)
- Restarted Spyder
- Reset preferences with
spyder --reset
- Reinstalled the latest version of Anaconda
- Tried the other applicable steps from the Troubleshooting Guide
- Completed the Problem Description, Steps to Reproduce and Version sections below
Problem Description
I keep getting this error message when trying to restore files. Spyder is open in drive D and backup file is in drive C.
What steps reproduce the problem?
- Closed spyder by Crtl+C while in bootstap mode from CMD, or even close Spyder without saving the file after some changes
- I always then keep getting a dialog asking to restore the file
- When I try to restore the file and error is displayed. Clicking OK does nothing!
The error states that the system cannot move the file between different drives. Therefore, I just discard the auto-saved file, to let Spyder launches.
What is the expected output? What do you see instead?
Paste Traceback/Error Below (if applicable)
PASTE TRACEBACK HERE
Versions
- Spyder version: Spyder beta4.0 under development (forked today).
- Python version: 3.6
- Qt version:
- PyQt version:
- Operating System name/version: windows 10
Dependencies
PASTE DEPENDENCIES HERE
pygments >=2.0 : 2.3.1 (OK) qdarkstyle >=2.6.4: 2.6.5 (OK) sphinx >=0.6.6 : 1.8.3 (OK) pyls >=0.19.0 : 0.19.0 (OK) nbconvert >=4.0 : 5.4.0 (OK) pandas >=0.13.1 : 0.23.4 (OK) numpy >=1.7 : 1.15.4 (OK) sympy >=0.7.3 : 1.3 (OK) cython >=0.21 : 0.29.3 (OK) qtconsole >=4.2.0 : 4.4.3 (OK) IPython >=4.0 : 7.2.0 (OK) matplotlib >=2.0.0: 3.0.2 (OK) pylint >=0.25 : 2.2.2 (OK)
This might give an idea to the solution. https://bugs.python.org/issue29805
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
As I understand the documentation,
shutil.move(src, dest)
fails on Windows ifdest
already exists. Unfortunately.It shouldn’t. I think @CAM-Gerlach also mentioned this on Gitter. I’ll have a look later today.
Thanks for checking.