Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!feeder2.ecngs.de!ecngs!feeder.ecngs.de!xlned.com!feeder1.xlned.com!newsfeed.xs4all.nl!newsfeed6.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; '"""': 0.05; 'installed.': 0.05; '64-bit': 0.07; 'work!': 0.07; 'python': 0.09; '32-bit': 0.09; 'cmd': 0.09; 'icon': 0.09; 'interpreter,': 0.09; 'sep': 0.09; 'shortcut': 0.09; 'subject:modules': 0.09; 'to:addr:comp.lang.python': 0.09; 'unexpected': 0.09; 'worked.': 0.09; 'cc:addr:python-list': 0.10; '2.7': 0.13; 'desktop.': 0.16; 'did,': 0.16; 'everybody.': 0.16; 'idle,': 0.16; 'idle.': 0.16; 'menu.': 0.16; 'subject:import': 0.16; 'vpython': 0.16; 'wrote:': 0.17; 'shell': 0.18; '>>>': 0.18; '(or': 0.18; 'versions': 0.20; 'suggested': 0.20; 'trying': 0.21; 'import': 0.21; 'earlier': 0.21; '3.2': 0.22; 'help.': 0.22; 'posted': 0.22; 'example': 0.23; 'errors': 0.23; "python's": 0.23; 'statement': 0.23; 'installed': 0.23; "i've": 0.23; 'downloaded': 0.24; 'cc:addr:python.org': 0.25; 'header:In-Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'common': 0.26; 'cc:addr:gmail.com': 0.27; 'plain': 0.27; 'separate': 0.27; 'cc:2**2': 0.27; 'regular': 0.27; 'all.': 0.28; 'trouble': 0.28; 'run': 0.28; 'post': 0.28; '-0700,': 0.29; "d'aprano": 0.29; 'python"': 0.29; 'statements': 0.29; 'steven': 0.29; "i'm": 0.29; 'install': 0.29; 'maybe': 0.29; 'version,': 0.30; 'error': 0.30; 'code': 0.31; 'file': 0.32; 'help,': 0.32; 'running': 0.32; 'print': 0.32; 'message.': 0.33; 'hopefully': 0.33; 'idle': 0.33; 'problem': 0.33; 'version': 0.34; 'program,': 0.34; 'received:google.com': 0.34; 'entered': 0.34; 'thanks': 0.34; 'open': 0.35; 'pm,': 0.35; 'received:209.85.220': 0.35; 'received:209.85': 0.35; 'but': 0.36; 'url:org': 0.36; 'cc:no real name:2**1': 0.36; 'modules': 0.36; "didn't": 0.36; "i'll": 0.36; 'test': 0.36; 'should': 0.36; 'editor': 0.37; 'received:209': 0.37; 'subject:: ': 0.38; 'system.': 0.39; 'your': 0.60; "you've": 0.61; 'first': 0.61; '30,': 0.62; 'gave': 0.65; 'forward': 0.66; 'finally': 0.66; 'press': 0.71; 'unusual': 0.71; 'hoping': 0.72; '>from': 0.75; 'groups.': 0.78; 'located.': 0.84; 'window,': 0.84; 'works!': 0.84; 'received:209.85.220.184': 0.91; 'url:contents': 0.91; 'angel': 0.93 Newsgroups: comp.lang.python Date: Sun, 30 Sep 2012 21:44:30 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=108.192.100.10; posting-account=Ti2V_QoAAACgk6ut8Y6RJgjO1YxuInGk References: <36813ff7-68b9-44eb-9b25-7c13ae739566@googlegroups.com> <5068a9e0$0$6915$e4fe514c@news2.news.xs4all.nl> <2e36e097-a43f-43b4-98a6-8da999c39c21@googlegroups.com> <5068f109$0$29997$c3e8da3$5496439d@news.astraweb.com> User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-IP: 108.192.100.10 MIME-Version: 1.0 Subject: Re: Can't import modules From: Peter Farrell To: comp.lang.python@googlegroups.com Content-Type: text/plain; charset=ISO-8859-1 Cc: python-list@python.org, d@davea.name, Peter Farrell 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: , Message-ID: Lines: 131 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349066673 news.xs4all.nl 6870 [2001:888:2000:d::a6]:52086 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30596 On Sunday, September 30, 2012 8:19:28 PM UTC-7, Dave Angel wrote: > On 09/30/2012 09:35 PM, Peter Farrell wrote: > > > On Sunday, September 30, 2012 6:25:29 PM UTC-7, Steven D'Aprano wrote: > > >> On Sun, 30 Sep 2012 17:35:02 -0700, Peter Farrell wrote: > > >> > > >> > > >> > > >>> Thanks for trying to help, everybody. Sorry I didn't post the whole > > >>> error message. Now my problem is I just installed VPython and I'm trying > > >>> to run the very first example, bounce.py which I located. I opened it > > >>> and ran it in Idle. I got this message: > > >> > > >> > > >> In general, any time you get unexpected or unusual errors in IDLE, you > > >> should try running the same code without IDLE, just at the regular Python > > >> prompt. > > >> > > > Thanks again for the help. I entered the import statements you suggested into the Python Shell and they gave me the same error message. (Neither did visual_all, but of course the print statement worked.) > > > > Don't run it in the Python Shell, and don't use IDLE at all. Run your > > test either at the cmd window, or from plain Python's interactive > > interpreter, or maybe from VIDLE. > > > > >From the official download page: > > http://www.vpython.org/contents/download_windows.html > > > > > > """How to run VPython > > > > * > > > > Start the program editor with the "VIDLE for Python" shortcut on the > > desktop > > or on the Start menu. > > > > * > > > > Open an example program -- for example, bounce2.py. > > > > * > > > > Press F5 to run (or use the Run menu). > > > > """ > > > > > > > Since I use Python 3.2.3 I've had trouble with programs and modules designed for Python 2 and many programs don't work on my 64-bit system. > > > > > > I was hoping it was a common error that newbies encounter. > > > > > > Thanks again, Python fans. I'll keep you posted on my progress! > > VPython has separate versions for Python 2.7 and 3.2 Hopefully you > > downloaded the 3.2 version, since you're running it in c:\python32 > > > > Also, these are for the 32bit version of CPython. So double-check which > > one you've got installed. > > > > > > > > -- > > > > DaveA Yes, I downloaded the 3.2 version but on 64-bit. None of the 32-bit Python programs I've installed have worked. VPython didn't install a VIDLE icon on my desktop. An earlier version did, but then it said it couldn't find the .exe file to work! I've sent a message to the VPython groups. I'm looking forward to using this program, when it finally works! Thanks again, Peter