Message274559
urllib.urlretrieve() fails on ftp:
- start and complete a transfer
- immediately start another transfer
The second transfer will fail with the following error:
[Errno ftp error] 200 Type set to I
I am using urllib.urlretrieve(url, filename) to retrieve two files (one by one) from FTP server.
Sample code to reproduce the problem is attached. Please update url1 and url2 with correct values.
This problem was reported several years ago and was fixed but it is now reproducible on latest python 2.7 package (2.7.12).
http://bugs.python.org/issue1067702
I tried the same scenario on 2.7.10 and it worked fine. So a patch after 2.7.10 must have broken something. |
|
Date |
User |
Action |
Args |
2016-09-06 15:09:56 | Sohaib Ahmad | set | recipients:
+ Sohaib Ahmad |
2016-09-06 15:09:56 | Sohaib Ahmad | set | messageid: <1473174596.52.0.952829730129.issue27973@psf.upfronthosting.co.za> |
2016-09-06 15:09:56 | Sohaib Ahmad | link | issue27973 messages |
2016-09-06 15:09:56 | Sohaib Ahmad | create | |
|