Half a year later (see my previous post from 2005) and the bug is back again. Oh no! ;(
I had to transfer files via FTP again so I crammed out my old source and was expecting it to work straight away. Guess what, it didn't! Luckily I saved a copy of the old Python SIS files that I used back then so I could compare between versions. I wrote a small program for that purpose.
The following code is known to work on old Pys60 (details in the comments of the code) and on Windows Python 2.3.3. Unfortunately is doesn not work on any of the "1.2 final" releases of Python.
Code:
"""
lxo, 1.3.2006
---
minimalftp.py works on these configurations (they are all obsolete!):
Windows (2.3.3 #51)
1)6600,PythonForSeries60_pre_SDK20.SIS (from 1.1.0?), ftplib.py (from 2.2.2), tested 07/2005
2)3230,PythonForSeries60_pre_SDK20.SIS (from 1.1.0?), ftplib.py (from 2.2.2), tested 03/2006
5)3230,PythonForSeries60_pre_SDK20.SIS (from 1.1.0?), ftplib.py (shipped version), tested 03/2006
---
doesn't work here (these are current releases):
*)3230,PythonForSeries60_for_2ndEd_SIS (from Python for 2nd Ed Feature Pack 1), ftplib.py (shipped version)
3)3230,PythonForSeries60_for_2ndEd_SIS (from Python for 2nd Ed Feature Pack 1), ftplib.py (from 2.2.2)
4)3230,PythonForSeries60_1stEd.SIS (from PythonForSeries60_for_1stEd_FP1_SIS), ftplib.py (shipped version)
---
*this made me make this test as it is the platform that i am currently using
"""
print "Testing FTP"
import ftplib
from ftplib import FTP
ftp=FTP("ftp.scene.org","anonymous","test")
ftp.retrlines('LIST')
ftp.quit()
print "FTP okay!"
Could people please test it on their phones and post to this thread if they can
a) reach the "FTP okay!" message
b) get stuck on the last lines of the retrlines output ("[..]welcome.msg")
Unfortunately I cannot just revert back to the old Python version as the rest of the code requires the newer version.
Any ideas?
Leif