Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!goblin1!goblin.stu.neva.ru!news2.euro.net!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; '"""': 0.05; 'installed.': 0.05; '64-bit': 0.07; 'python': 0.09; 'cmd': 0.09; 'interpreter,': 0.09; 'sep': 0.09; 'shortcut': 0.09; 'subject:modules': 0.09; 'unexpected': 0.09; 'cc:addr:python-list': 0.10; '2.7': 0.13; 'everybody.': 0.16; 'idle,': 0.16; 'idle.': 0.16; 'menu.': 0.16; 'subject:import': 0.16; 'vpython': 0.16; 'wrote:': 0.17; 'pfxlen:0': 0.17; 'shell': 0.18; '>>>': 0.18; '(or': 0.18; 'versions': 0.20; 'suggested': 0.20; 'trying': 0.21; 'import': 0.21; '3.2': 0.22; 'help.': 0.22; 'posted': 0.22; 'cc:2**0': 0.23; 'example': 0.23; 'errors': 0.23; "python's": 0.23; 'statement': 0.23; 'installed': 0.23; "i've": 0.23; 'downloaded': 0.24; 'cc:no real name:2**0': 0.24; 'cc:addr:python.org': 0.25; 'header:In- Reply-To:1': 0.25; 'header:User-Agent:1': 0.26; 'common': 0.26; 'plain': 0.27; 'separate': 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; 'maybe': 0.29; 'version,': 0.30; 'error': 0.30; 'code': 0.31; 'help,': 0.32; 'running': 0.32; 'print': 0.32; 'message.': 0.33; 'hopefully': 0.33; 'idle': 0.33; 'problem': 0.33; 'version': 0.34; 'entered': 0.34; 'thanks': 0.34; 'open': 0.35; 'pm,': 0.35; 'but': 0.36; 'url:org': 0.36; 'modules': 0.36; "didn't": 0.36; "i'll": 0.36; 'test': 0.36; 'should': 0.36; 'editor': 0.37; 'subject:: ': 0.38; 'system.': 0.39; 'received:192': 0.39; 'received:192.168': 0.40; 'your': 0.60; "you've": 0.61; 'first': 0.61; '30,': 0.62; 'gave': 0.65; 'header :Reply-To:1': 0.68; 'press': 0.71; 'received:74.208': 0.71; 'unusual': 0.71; 'reply-to:no real name:2**0': 0.72; 'hoping': 0.72; 'located.': 0.84; 'received:74.208.4.194': 0.84; 'window,': 0.84; 'url:contents': 0.91 Date: Sun, 30 Sep 2012 23:18:01 -0400 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: Peter Farrell Subject: Re: Can't import modules 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> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:1NoCjAIJpdRgcoqNE+epz2R4wUj5I1vy8lPE3V6RK92 HmoSyaH14tpBzH1vywkLhlliz9ha5CocVqCv28JcRxU442w6hw 3j/2ccpgNFokn55yd1vEggixvwylOMn7k9pkSxyxXTJg8gEXab 0i+Yy1DzWSMw4iIU1iAd+92JnKTrA4fYM9+znmqbSZv7b55DUi ySF7JxFHEQVqgL8rxh9Td8yxx4xwp1MJXu47pbxG38VWQ0JXMt I63nWLhrOTWq2ZVyDcv7QShX9uktZaw7HkXO13PxDsPgHxn+Cw QZe0yVV5/p8lmjKByftT7t8B8VYogp6f9gidCIRdaZuq0YqmQ= = Cc: python-list@python.org X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: d@davea.name 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: 62 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1349061544 news.xs4all.nl 6885 [2001:888:2000:d::a6]:42746 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:30590 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