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.

Cannot restore files between different drives in Windows

See original GitHub issue

Issue 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 (or pip, 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.

image

What steps reproduce the problem?

  1. Closed spyder by Crtl+C while in bootstap mode from CMD, or even close Spyder without saving the file after some changes
  2. I always then keep getting a dialog asking to restore the file
  3. 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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jitseniesencommented, Jan 28, 2019

As I understand the documentation, shutil.move(src, dest) fails on Windows if dest already exists. Unfortunately.

I also have another question, it is necessary to show the recovery (restore) dialog when the user decides not to save modified files when closing Spyder?

It shouldn’t. I think @CAM-Gerlach also mentioned this on Gitter. I’ll have a look later today.

1reaction
jitseniesencommented, Jan 28, 2019

Thanks for checking.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backup and Restore in Windows - Microsoft Support
Restore files with Backup and Restore​​ In the search box on the taskbar, type Control Panel. Select it from the list of results,...
Read more >
Solved: Hard Drive Not Showing Files Though They Still Exist
Don't worry if your external or internal hard drive is not showing files though they still exist. First, download EaseUS file recovery software ......
Read more >
Workable Fixes to Can't Read from Source File or Disk Error
If you can't read from the source file or disk Windows 10 and this is disturbing the normal functioning of your PC, have...
Read more >
Solved| Hard Drive Full but No Files in Windows 10
In case of no virus or malware attacks, this error of low disk space but nothing to delete can pop up due to...
Read more >
Move Program Files to Another Drive Windows 10
As mentioned earlier, moving program files from C to D or moving program files from SSD to HDD may cause your program not...
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