Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!ecngs!feeder2.ecngs.de!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.001 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'python,': 0.02; 'importerror:': 0.07; 'imply': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'throws': 0.09; 'python': 0.11; 'suggest': 0.14; 'language.': 0.14; 'it;': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'module': 0.19; "python's": 0.19; 'import': 0.22; 'header :User-Agent:1': 0.23; 'looks': 0.24; 'right.': 0.26; 'header:X -Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; "doesn't": 0.30; 'errors': 0.30; "i'm": 0.30; 'libraries': 0.31; 'totally': 0.33; 'maybe': 0.34; "i'd": 0.34; 'version': 0.36; 'error.': 0.37; 'so,': 0.37; 'starting': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'expect': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'telling': 0.64; 'charset:windows-1252': 0.65; 'received:12': 0.81 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Emile van Sebille Subject: Re: Import Doesn't Import Date: Thu, 16 Oct 2014 14:29:14 -0700 References: <1a3844da-b467-43ba-b34f-3aaa6442d799@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: www.westernstatesglass.com User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 In-Reply-To: <1a3844da-b467-43ba-b34f-3aaa6442d799@googlegroups.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 15 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1413494980 news.xs4all.nl 2968 [2001:888:2000:d::a6]:36585 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:79224 On 10/15/2014 5:40 PM, ryguy7272 wrote: > ImportError: No module named 'urllib2' > I'm telling Python to import because it doesn't exist and it throws an error. I don't get it; I just don't get it. If I'm working with R, I can import thousands of libraries with no errors whatsoever. With Python, I just get thousands of errors with nothing working whatsoever. I totally don't understand this language. Import means import. Right. WTF!!!!! So, maybe Import doesn't mean import -- perhaps you expect import to retrieve content from the web and make it importable(1). That's not what python's import does. Python's version looks for a local module to import. I'd suggest starting with the tutorial. Emile (1) which would imply execution of arbitrary code.