Bugs item #1768858, was opened at 2007-08-06 17:43 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1768858&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Python Library Group: Python 2.5 Status: Open Resolution: None Priority: 5 Private: No Submitted By: MASK (mohammedsk) Assigned to: Nobody/Anonymous (nobody) Summary: Python - Operation time out problem Initial Comment: I have a program that reads from a file some search terms. The script uses Medline record parser pub med dictionary. Since I search so many terms, the script times out. Here is the error: Traceback (most recent call last): File "(stdin)", line1, in <module> File "search_all.py",line71, in <module> Cur_record = medline_dict [id] File "C:\Python25\Lib\site-packages\PubMed.py", line 103, in_getitem_raise Key Error,x Key Error: IOError('socket error',error(10060,'Operation timed out')) I looked online for solutions and one solution was to add the following to the script: import socket socket.setdefaulttimeout(value) But this code did not do anything, the script continues on timing out. A complete Python script is attached. Any help is appreciated. Thanks, Mohammed ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1768858&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com