Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/317.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
“接收”;550数据通道超时“;在使用python storbinary时_Python - Fatal编程技术网

“接收”;550数据通道超时“;在使用python storbinary时

“接收”;550数据通道超时“;在使用python storbinary时,python,Python,我正在尝试使用python FTP_TLS将文件从UNIX服务器上载到windows服务器。这是我的密码: from ftplib import FTP_TLS ftps = FTP_TLS('server') ftps.connect(port=myport) ftps.login('user', 'password') ftps.prot_p() ftps.retrlines('LIST') remote_path = "MYremotePath"

我正在尝试使用python FTP_TLS将文件从UNIX服务器上载到windows服务器。这是我的密码:

from ftplib import FTP_TLS
ftps = FTP_TLS('server')
ftps.connect(port=myport)
ftps.login('user', 'password')           
ftps.prot_p()          
ftps.retrlines('LIST')
remote_path = "MYremotePath"
ftps.cwd(remote_path)
ftps.storbinary('STOR myfile.txt', open('myfile.txt', 'rb'))
myfile.close()
ftps.close()
我可以成功连接到服务器并接收文件列表,但我无法上载文件,一段时间后,我收到以下错误:

ftplib.error_perm: 550 Data channel timed out due to not meeting the minimum bandwidth requirement.
我应该提到,我可以使用perl FTPSSL库在同一台服务器上上传文件。这个问题只发生在python中。 有人知道如何解决这个问题吗? 谢谢