ftplib.error_reply: 200 TYPE is now 8-bit binary
Verfasst: Montag 9. Dezember 2013, 19:53
Guten Abend =)
Ich habe ein Problem mit dem ftplib modul
(Ich habe die Suchfunktion benutzt allerdings findet man unter errors nichts was bei mir geworfen wird)
Der Code der bei meinem Server nicht funktioniert:
Fehler:
Der Type 200 ist jetzt eine 8-bit binary?
bei storlines kommt:
scheint als wäre es umgewandelt worden
Edit: Ich versuche eine .cfg Datei Hochzuladen
Ich hoffe ihr könnt mir helfen, denn ich bin überfragt
mfg Trayser
Ich habe ein Problem mit dem ftplib modul
(Ich habe die Suchfunktion benutzt allerdings findet man unter errors nichts was bei mir geworfen wird)
Der Code der bei meinem Server nicht funktioniert:
Code: Alles auswählen
from ftplib import FTP
ftp = FTP("server")
ftp.login(user,paswd)
ftp.storbinary("STOR Server.ini", open("Config.ini", "r").write)
ok soviel zu dem Fehler der geworfen wird. Ich hab nun wirklich keine ahnung was das heißen soll :KTraceback (most recent call last):
File "<pyshell#6>", line 1, in <module>
ftp.storbinary("STOR Server.ini", open("Config.ini", "wb").write)
File "C:\Python33\lib\ftplib.py", line 476, in storbinary
with self.transfercmd(cmd, rest) as conn:
File "C:\Python33\lib\ftplib.py", line 386, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "C:\Python33\lib\ftplib.py", line 346, in ntransfercmd
host, port = self.makepasv()
File "C:\Python33\lib\ftplib.py", line 324, in makepasv
host, port = parse227(self.sendcmd('PASV'))
File "C:\Python33\lib\ftplib.py", line 860, in parse227
raise error_reply(resp)
ftplib.error_reply: 200 TYPE is now 8-bit binary
Der Type 200 ist jetzt eine 8-bit binary?
bei storlines kommt:
Code: Alles auswählen
ftp.storlines("STOR Server.ini", open("Config.ini", "r"))
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
ftp.storlines("STOR Server.ini", open("Config.ini", "r"))
File "C:\Python33\lib\ftplib.py", line 497, in storlines
with self.transfercmd(cmd) as conn:
File "C:\Python33\lib\ftplib.py", line 386, in transfercmd
return self.ntransfercmd(cmd, rest)[0]
File "C:\Python33\lib\ftplib.py", line 346, in ntransfercmd
host, port = self.makepasv()
File "C:\Python33\lib\ftplib.py", line 324, in makepasv
host, port = parse227(self.sendcmd('PASV'))
File "C:\Python33\lib\ftplib.py", line 860, in parse227
raise error_reply(resp)
ftplib.error_reply: 200 TYPE is now ASCII
Edit: Ich versuche eine .cfg Datei Hochzuladen
Ich hoffe ihr könnt mir helfen, denn ich bin überfragt
mfg Trayser