Python Forum
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'.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  no such file or directory in SFTP saisankalpj 2 1,489 Nov-25-2022, 11:07 AM
Last Post: DeaD_EyE
  file transfer via python SFTP SCP mg24 3 2,873 Sep-15-2022, 04:20 AM
Last Post: mg24
  Opening CSV file from SFTP server not working cluelessintern 0 2,726 Apr-08-2020, 08:10 PM
Last Post: cluelessintern
  Connect to SFTP to read cvs files arunlal 1 2,989 Nov-20-2018, 08:32 AM
Last Post: buran
  SFTP transfer using paramiko fails estebanup03 0 5,754 Sep-06-2018, 08:06 PM
Last Post: estebanup03
  Watch SFTP Folder torz 2 9,106 Dec-02-2017, 01:42 AM
Last Post: torz

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020