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.

Author mohammedsk
Recipients
Date 2007-08-06.22:43:17
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007-08-23 14:59:05adminlinkissue1768858 messages
2007-08-23 14:59:05admincreate