Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python - Operation time out problem #45282

Closed
mohammedsk mannequin opened this issue Aug 6, 2007 · 2 comments
Closed

Python - Operation time out problem #45282

mohammedsk mannequin opened this issue Aug 6, 2007 · 2 comments
Labels
stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error

Comments

@mohammedsk
Copy link
Mannequin

mohammedsk mannequin commented Aug 6, 2007

BPO 1768858
Nosy @devdanzin
Files
  • search_all.py: Script uses Medline record parser pub med dictionary
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2009-04-25.21:38:26.442>
    created_at = <Date 2007-08-06.22:43:17.000>
    labels = ['invalid', 'type-bug', 'library']
    title = 'Python - Operation time out problem'
    updated_at = <Date 2009-04-25.21:38:26.441>
    user = 'https://bugs.python.org/mohammedsk'

    bugs.python.org fields:

    activity = <Date 2009-04-25.21:38:26.441>
    actor = 'ajaksu2'
    assignee = 'none'
    closed = True
    closed_date = <Date 2009-04-25.21:38:26.442>
    closer = 'ajaksu2'
    components = ['Library (Lib)']
    creation = <Date 2007-08-06.22:43:17.000>
    creator = 'mohammedsk'
    dependencies = []
    files = ['2430']
    hgrepos = []
    issue_num = 1768858
    keywords = []
    message_count = 2.0
    messages = ['32592', '85683']
    nosy_count = 2.0
    nosy_names = ['mohammedsk', 'ajaksu2']
    pr_nums = []
    priority = 'normal'
    resolution = 'not a bug'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue1768858'
    versions = ['Python 2.6']

    @mohammedsk
    Copy link
    Mannequin Author

    mohammedsk mannequin commented Aug 6, 2007

    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

    @mohammedsk mohammedsk mannequin added stdlib Python modules in the Lib dir labels Aug 6, 2007
    @devdanzin
    Copy link
    Mannequin

    devdanzin mannequin commented Apr 7, 2009

    Unless someone can spot a Python bug here, this issue will be closed.

    @devdanzin devdanzin mannequin changed the title Python - Operation time out problem Python - Operation time out problem Apr 7, 2009
    @devdanzin devdanzin mannequin added the type-bug An unexpected behavior, bug, or error label Apr 7, 2009
    @devdanzin devdanzin mannequin changed the title Python - Operation time out problem Python - Operation time out problem Apr 7, 2009
    @devdanzin devdanzin mannequin added the type-bug An unexpected behavior, bug, or error label Apr 7, 2009
    @devdanzin devdanzin mannequin closed this as completed Apr 25, 2009
    @devdanzin devdanzin mannequin added the invalid label Apr 25, 2009
    @devdanzin devdanzin mannequin closed this as completed Apr 25, 2009
    @devdanzin devdanzin mannequin added the invalid label Apr 25, 2009
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    stdlib Python modules in the Lib dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    0 participants