Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: SSH file copy error on Windows 10 #699

Open
reffum opened this issue Feb 26, 2025 · 0 comments
Open

BUG: SSH file copy error on Windows 10 #699

reffum opened this issue Feb 26, 2025 · 0 comments

Comments

@reffum
Copy link

reffum commented Feb 26, 2025

The ProcessExecutionError is raised when trying to copy file or write data over SSH.

Windows 10 22H2
Python3.12
plumbum v1.9.0

I found what 2 reasons of this error:

  • plumbum/machines/remote.py:436. In python3.12 in NamedTemporaryFile() was added new parameter delete_on_close=True.This cause an error in this case.
  • plumbum use slash file path format(e.g: /C/Users/GAVRIL~1.S/AppData/Local/Temp/tmpon7h29zf). But Windows scp command fail with this path. See error.log for detail.

I try to fix this error as write in fix.path. After this fix it copy and write files successfully.

Apply:

  • plumbum_test.py.txt test with this bugs
  • error.log
  • fix.patch patch fix this bug

fix.patch
plumbum_test.py.txt
error.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant