Python Forum
get file paramiko sftp - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: get file paramiko sftp (/thread-11228.html)



get file paramiko sftp - Reyneli - Jun-29-2018

Hello,

I create an small app that downloads a file via sftp. It works well but I can't compile it. It doesn't work as an exe.

app code:
import paramiko
import subprocess

ssh_client = paramiko.SSHClient()
ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh_client.connect('host', 22, 'user', 'password')
sftp = ssh_client.open_sftp()

sftp.get('file')

sftp.close()
ssh_client.close()
build_exe getssh.py

8 missing Modules
------------------
? UserDict imported from asn1crypto._ordereddict
? gssapi imported from paramiko.ssh_gss
? pywintypes imported from paramiko.ssh_gss
? readline imported from cmd, code, pdb
? sspi imported from paramiko.ssh_gss
? sspicon imported from paramiko.ssh_gss
? urllib.quote imported from asn1crypto._iri
? urllib.unquote imported from asn1crypto._iri
Building 'dist\getssh.exe'.