Message32592
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 |
|
Date |
User |
Action |
Args |
2007-08-23 14:59:05 | admin | link | issue1768858 messages |
2007-08-23 14:59:05 | admin | create | |
|