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

Problems with urllib on windows #57417

Closed
DeepakDodo mannequin opened this issue Oct 18, 2011 · 7 comments
Closed

Problems with urllib on windows #57417

DeepakDodo mannequin opened this issue Oct 18, 2011 · 7 comments
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@DeepakDodo
Copy link
Mannequin

DeepakDodo mannequin commented Oct 18, 2011

BPO 13208
Nosy @loewis, @orsenthil
Files
  • tester.py
  • error.log
  • 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 2012-05-25.02:50:11.297>
    created_at = <Date 2011-10-18.11:49:49.329>
    labels = ['type-bug', 'OS-windows']
    title = 'Problems with urllib on windows'
    updated_at = <Date 2012-05-25.02:50:11.295>
    user = 'https://bugs.python.org/DeepakDodo'

    bugs.python.org fields:

    activity = <Date 2012-05-25.02:50:11.295>
    actor = 'holdenweb'
    assignee = 'none'
    closed = True
    closed_date = <Date 2012-05-25.02:50:11.297>
    closer = 'holdenweb'
    components = ['Windows']
    creation = <Date 2011-10-18.11:49:49.329>
    creator = 'Deepak.Dodo'
    dependencies = []
    files = ['23450', '23451']
    hgrepos = []
    issue_num = 13208
    keywords = []
    message_count = 7.0
    messages = ['145800', '145844', '145860', '145861', '146507', '161518', '161547']
    nosy_count = 4.0
    nosy_names = ['loewis', 'holdenweb', 'orsenthil', 'Deepak.Dodo']
    pr_nums = []
    priority = 'normal'
    resolution = 'works for me'
    stage = None
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue13208'
    versions = ['Python 2.6', 'Python 2.7']

    @DeepakDodo
    Copy link
    Mannequin Author

    DeepakDodo mannequin commented Oct 18, 2011

    When I try to read the contents of the webpage:
    http://www.ai-class.com/course/json/filter/QuizQuestion
    using urllib.read, it doesn't read the entire content.
    This behavior is only seen on windows and the same operation works fine on linux machines.

    @DeepakDodo DeepakDodo mannequin added OS-windows type-bug An unexpected behavior, bug, or error labels Oct 18, 2011
    @loewis
    Copy link
    Mannequin

    loewis mannequin commented Oct 18, 2011

    Can you please provide a test case? What exact source code you are using, and what exact result are you getting? Attach those pieces as files.

    @DeepakDodo
    Copy link
    Mannequin Author

    DeepakDodo mannequin commented Oct 18, 2011

    This is the source code I am using. Even if I use any module other than urllib to read the contents, its not reading the entire contents of the webpage. This happens only on Windows.

    @DeepakDodo
    Copy link
    Mannequin Author

    DeepakDodo mannequin commented Oct 18, 2011

    The log file is also attached. This error is because the entire content of the webpage has not been read.

    @orsenthil
    Copy link
    Member

    The code is pretty straight forward and works on Linux. Is the problem
    with the download? If you open the json file, is it a valid one?

    @holdenweb
    Copy link
    Member

    I have just tested this against the 2.7.1 release on Windows 7 and it runs fine. I suspect there may have been some transient error with the reporter's system or network, but if this still fails for him then reopening will be appropriate with more information about the exact nature of the fault.

    @holdenweb
    Copy link
    Member

    Oops, sorry, meant to close this issue. Hope that's OK.

    @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
    OS-windows type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants