Path: csiph.com!usenet.pasdenom.info!dedibox.gegeweb.org!gegeweb.eu!nntpfeed.proxad.net!proxad.net!feeder1-2.proxad.net!usenet-fr.net!nerim.net!novso.com!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!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.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:error': 0.03; 'importerror:': 0.07; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'typed': 0.09; 'python': 0.11; 'def': 0.12; 'jan': 0.12; '(it': 0.16; 'cmd': 0.16; 'idle,': 0.16; 'main():': 0.16; 'received:80.91.229.3': 0.16; 'received:plane.gmane.org': 0.16; 'reedy': 0.16; 'subject:graphics': 0.16; 'subject:import': 0.16; 'subject:library': 0.16; 'appropriate': 0.16; 'wrote:': 0.18; 'code.': 0.18; 'library': 0.18; 'module': 0.19; 'starts': 0.20; '>>>': 0.22; 'import': 0.22; '(in': 0.22; 'shell': 0.22; 'header:User-Agent:1': 0.23; '2.x': 0.24; 'script.': 0.24; 'sorry,': 0.24; 'skip:" 40': 0.26; 'this:': 0.26; 'web.': 0.26; 'header:X-Complaints-To:1': 0.27; 'header:In-Reply-To:1': 0.27; 'code': 0.31; 'lines': 0.31; "skip:' 10": 0.31; 'doc': 0.31; 'libraries': 0.31; 'file': 0.32; 'there.': 0.32; 'run': 0.32; 'open': 0.33; '(most': 0.33; 'totally': 0.33; 'actual': 0.34; 'maybe': 0.34; 'so,': 0.37; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'recent': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'how': 0.40; 'first': 0.61; 'name': 0.63; 'received:fios.verizon.net': 0.84; 'received:108': 0.93 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Terry Reedy Subject: Re: import graphics library; causes error Date: Sun, 16 Nov 2014 18:09:58 -0500 References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Gmane-NNTP-Posting-Host: pool-108-16-203-145.phlapa.fios.verizon.net User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: 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: 33 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1416179426 news.xs4all.nl 2846 [2001:888:2000:d::a6]:48790 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:80929 On 11/16/2014 3:39 PM, ryguy7272 wrote: > These libraries drive me totally nuts. Sorry, just had to get it out there. > Anyway, I open the cmd window, and typed this: > 'easy_install python graphics'. In what directory? > So, it starts up and runs/downloads the appropriate library from the web. > I get confirmation (in the cmd window) that it finishes, then I try to run this script. > > # futval_graph2.py > from graphics import * > def main(): [snip 20 lines of 2.x code (it used raw_input)] > After I hit F5, I get this: > Traceback (most recent call last): > File "C:\Users\Ryan\Desktop\Graphics_Test.py", line 2, in > from graphics import * > ImportError: No module named graphics After opening Idle, I would first try >>> import graphics in the shell before entering any code. When that failed, I would look in lib/site-packages to see the actual module or package name installed, and maybe look in the doc for the package about how to import it. -- Terry Jan Reedy