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.

Unable to SCP using Windows

See original GitHub issue

When trying to copy a file from cisco_ios device to my local windows machine using SCP, I am getting this error:

Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
  File "C:\hbdata\network\lib\site-packages\netmiko\scp_functions.py", line 104, in file_transfer
    verifyspace_and_transferfile(scp_transfer)
  File "C:\hbdata\network\lib\site-packages\netmiko\scp_functions.py", line 18, in verifyspace_and_transferfile
    if not scp_transfer.verify_space_available():
  File "C:\hbdata\network\lib\site-packages\netmiko\scp_handler.py", line 160, in verify_space_available
    space_avail = self.local_space_available()
  File "C:\hbdata\network\lib\site-packages\netmiko\scp_handler.py", line 152, in local_space_available
    destination_stats = os.statvfs(".")
AttributeError: module 'os' has no attribute 'statvfs'

I am using Python 3.7.3 on Windows 10

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
bouchardhcommented, May 12, 2019

I honestly didi not know what a PR was before you asked… I guess it would be a good way to start.

If you don’t mind a newbie contributing, I will do my best.

0reactions
carlmontanaricommented, Jun 7, 2019

Going to close this and handle the rest in the PR – thank you!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Copying a local file from Windows to a remote server using scp
If your drive letter is C, you should be able to use. scp -r \desktop\myfolder\deployments\ user@host:/path/to/whereyouwant/thefile.
Read more >
SCP is not working when running it on linux to Windows ...
We have OpenSsh installed and running on remote windows server. When I connect to it through Remote Desktop and run scp on command...
Read more >
How to Fix 'No such File or Directory' Error in SCP? - Appuals
SCP stands for Secure Copy Protocol and it is based on the "Secure ... Such File or Directory” Error while trying to copy...
Read more >
Unable to use SCP to do SCP from server to Host
In order to scp to a system, that system must be running sshd , and authentication must be set up. · 2 ·...
Read more >
Can't copy files from mapped drive to local directory
This article solves the Location is not available error when you try to copy files from a mapped drive. Applies to: Windows Server...
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