Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #80929
| 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 | <python-python-list@m.gmane.org> |
| 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 <tjreedy@udel.edu> |
| Subject | Re: import graphics library; causes error |
| Date | Sun, 16 Nov 2014 18:09:58 -0500 |
| References | <acf29cb8-d11b-4134-8d03-7be5a078eae6@googlegroups.com> |
| 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 | <acf29cb8-d11b-4134-8d03-7be5a078eae6@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 <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.15921.1416179426.18130.python-list@python.org> (permalink) |
| 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 |
Show key headers only | View raw
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 <module> > 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
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
import graphics library; causes error ryguy7272 <ryanshuell@gmail.com> - 2014-11-16 12:39 -0800
Re: import graphics library; causes error Terry Reedy <tjreedy@udel.edu> - 2014-11-16 18:09 -0500
Re: import graphics library; causes error ryguy7272 <ryanshuell@gmail.com> - 2014-11-16 19:03 -0800
Re: import graphics library; causes error Chris Angelico <rosuav@gmail.com> - 2014-11-17 14:11 +1100
Re: import graphics library; causes error Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-11-17 21:24 +1100
Re: import graphics library; causes error Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-11-17 12:14 +0000
Re: import graphics library; causes error YBM <ybmess@nooos.fr.invalid> - 2014-11-17 13:21 +0100
Re: import graphics library; causes error Ian Kelly <ian.g.kelly@gmail.com> - 2014-11-17 00:35 -0700
csiph-web