This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: urlretreive locks up in 2.7.8
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: TaylorSMarks, orsenthil, terry.reedy, zach.ware
Priority: normal Keywords:

Created on 2014-11-21 19:55 by TaylorSMarks, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (4)
msg231492 - (view) Author: Taylor Marks (TaylorSMarks) Date: 2014-11-21 19:55
The following code causes Python 2.7.8 to lockup for ten minutes, then crash, in both Windows 7 and OS X:

from urllib import urlretrieve
urlretrieve('http://chromedriver.storage.googleapis.com/2.12/chromedriver_win32.zip', 'chromedriver_win32.zip')

Here's a thread on StackOverflow where I originally posted about this bug, assuming it was an issue in my code, before other people let me know that the problem wasn't my code, but with Python 2.7.8, on both Windows 7 and OS X, and that in older versions of Python, such as 2.7.6, the code works fine.

http://stackoverflow.com/questions/27025998/urllib-urlretreive-completely-locks-up-python
msg231500 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2014-11-21 20:42
Sorry, I'm unable to reproduce the problem using various systems and various version of Python 2.7.  And, as I read the StackOverflow comments, it appears that no one else was able to reproduce the problem, either.  To investigate further, we would need more information, including a copy of the exception traceback or other info when the failure occurs.
msg231842 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2014-11-29 00:20
I altered the code to print the return value and ran from Idle 2.7.8 on Win7. It takes about a minute and prints ('chromedriver_win32.zip', <httplib.HTTPMessage instance at 0x0000000002E3FE08>).  When I tried to end the pause with ^C, it was ignored and several seconds later got the above again.  So, for me, un-iterruptable delay yes (possibly in remote server), crash no.
msg367343 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2020-04-27 01:34
As 2.7 has reached EOL, I'm closing this issue.
History
Date User Action Args
2022-04-11 14:58:10adminsetgithub: 67101
2020-04-27 01:34:24zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg367343

resolution: out of date
stage: resolved
2014-12-16 06:39:42ned.deilysetnosy: + orsenthil, - ned.deily
2014-11-29 00:20:58terry.reedysetnosy: + terry.reedy
messages: + msg231842
2014-11-21 20:42:28ned.deilysetnosy: + ned.deily
messages: + msg231500
2014-11-21 19:55:58TaylorSMarkscreate