Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 get file paramiko sftp
#1
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'.
micseydel wrote Jun-30-2018, 06:55 PM:
Please post all code, output and errors (it it's entirety) between their respective tags. Refer to BBCode help topic on how to post. Use the "Preview Post" button to make sure the code is presented as you expect before hitting the "Post Reply/Thread" button.
Quote

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Opening CSV file from SFTP server not working cluelessintern 0 286 Apr-08-2020, 08:10 PM
Last Post: cluelessintern
  Connect to SFTP to read cvs files arunlal 1 830 Nov-20-2018, 08:32 AM
Last Post: buran
  SFTP transfer using paramiko fails estebanup03 0 2,101 Sep-06-2018, 08:06 PM
Last Post: estebanup03
  Watch SFTP Folder torz 2 4,029 Dec-02-2017, 01:42 AM
Last Post: torz

Forum Jump:


Users browsing this thread: 1 Guest(s)