Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3230876
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:58:43+00:00 2026-05-17T16:58:43+00:00

New to Python, but I’m trying to…retrieve data from a site: import urllib.request response

  • 0

New to Python, but I’m trying to…retrieve data from a site:

import urllib.request
response = urllib.request.urlopen("http://www.python.org")

This is the same code I’ve seen from the Python 3.1 docs. And a lot of sites.

However, I get:

Message    File Name    Line    Position    
Traceback                
    <module>    G:\My Documents\Python\HTTP.py    14        
    urlopen    E:\Python 3.1\Lib\urllib\request.py    119        
    open    E:\Python 3.1\Lib\urllib\request.py    342        
    _open    E:\Python 3.1\Lib\urllib\request.py    360        
    _call_chain    E:\Python 3.1\Lib\urllib\request.py    320        
    http_open    E:\Python 3.1\Lib\urllib\request.py    1063        
    do_open    E:\Python 3.1\Lib\urllib\request.py    1048        
URLError: <urlopen error [Errno 10022] An invalid argument was supplied>     

I have no idea what’s causing this. Anyone know?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:58:44+00:00Added an answer on May 17, 2026 at 4:58 pm

    Maybe try turning off the firewall? Since you are on Windows, that might be the problem.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm relatively new to the Python world, but this seems very straight forward. Google
I'm quite new to python (I use python 3), and i'm trying to serialize
I'm kinda' new to python, but I have already written many programs including some
I am new to Python and mostly used my own code. But so now
I'm new to Python and I really love the min function. >>>min([1,3,15]) 0 But
I am new to python and struggling to find how to control the amount
I'm relatively new to Python and am having problems programming with Scapy, the Python
I am extremely new to python, having started to learn it less than a
I am new to Python, and I'm working on writing some database code using
I am really new to Python and I have been looking for an example

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.