Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Laura Creighton Newsgroups: comp.lang.python Subject: Re: Puzzled Date: Fri, 06 Nov 2015 00:10:45 +0100 Lines: 68 Message-ID: References: <4CFEDC132D44AC49BA0E91FBEB947119084A742852@DCBL123VX.root.sutterhealth.org> <201511011020.tA1AKYAM004182@fido.openend.se> <4CFEDC132D44AC49BA0E91FBEB947119084A8D5E6C@DCBL123VX.root.sutterhealth.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de 7+fqpP4PfQ48QXqh72xbAAU1y4uEHoKdOZxA3qjQDC2A== 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; 'startup': 0.05; 'correct.': 0.07; 'works.': 0.07; 'cc:addr:python-list': 0.09; 'enormous': 0.09; 'nameerror:': 0.09; 'received:openend.se': 0.09; 'received:theraft.openend.se': 0.09; 'typed': 0.09; 'python': 0.10; 'interpreter': 0.15; 'thu,': 0.15; 'variables': 0.15; 'cc:addr:lac': 0.16; 'cc:addr:openend.se': 0.16; 'from:addr:lac': 0.16; 'from:addr:openend.se': 0.16; 'from:name:laura creighton': 0.16; 'message-id:@fido.openend.se': 0.16; 'received:fido': 0.16; 'received:fido.openend.se': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'traceback.': 0.16; 'uninstall': 0.16; 'laura': 0.18; '>>>': 0.20; 'windows': 0.20; '2015': 0.20; 'cc:addr:python.org': 0.20; 'aug': 0.20; 'cc:2**2': 0.20; 'posted': 0.21; 'to:2**1': 0.21; 'meant': 0.22; '"",': 0.22; '64-bit': 0.22; 'see:': 0.22; 'cc:no real name:2**0': 0.22; 'defined': 0.23; 'bit': 0.23; 'seems': 0.23; 'this:': 0.23; 'tried': 0.24; '(most': 0.24; 'thus': 0.24; "doesn't": 0.26; 'installed': 0.26; 'linux': 0.26; 'back.': 0.27; 'see,': 0.27; 'yesterday': 0.27; 'this.': 0.28; "skip:' 10": 0.28; '---': 0.28; 'fine': 0.28; 'if,': 0.29; 'received:se': 0.29; 'environment': 0.29; 'work.': 0.30; 'code': 0.30; 'guess': 0.31; "can't": 0.32; 'morning': 0.32; 'run': 0.33; 'problem': 0.33; 'url:python': 0.33; 'traceback': 0.33; "i'll": 0.33; 'file': 0.34; 'worked': 0.34; 'gives': 0.35; 'happened': 0.35; 'nov': 0.35; 'skip:> 10': 0.35; 'something': 0.35; 'but': 0.36; 'instead': 0.36; 'there': 0.36; 'url:org': 0.36; 'basic': 0.36; 'subject:: ': 0.37; 'there,': 0.37; 'available.': 0.37; 'wanted': 0.37; 'itself': 0.38; 'files': 0.38; 'why': 0.39; "didn't": 0.39; 'where': 0.40; 'still': 0.40; 'some': 0.40; 'url:3': 0.60; 'your': 0.60; 'skip:u 10': 0.61; 'header:Message-Id:1': 0.61; 'caused': 0.61; 'tracking': 0.61; 'programs': 0.62; 'is.': 0.63; 'more': 0.63; 'phone': 0.68; 'prompt': 0.79; '5.2.1': 0.84; 'header:In-reply-to:1': 0.84; 'sort.': 0.84; 'url:tutorial': 0.91; 'responses': 0.93; 'hand,': 0.97 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=openend.se; s=default; t=1446765048; bh=SLdmwuXTV9lW8NbCP74GNgP+VBhQonVacM5BMaRazho=; h=To:cc:From:Subject:In-reply-to:References:Date:From; b=YmyIS2V1WymZgfgiS8ReQoaI2qoLS63Aof2DL7ImUXZ5ehnzEREz0aH0fiXiCeK8H R607vwwVJJVSCSFSHbtgwyXk/TIPxCd9gqG8wPB9conrFuQ0BAwTx18iShk8Vg6xlw /kPtYIROREmN8bqSlHEbGQ7D53N33egJSr/Olkhk= In-reply-to: <4CFEDC132D44AC49BA0E91FBEB947119084A8D5E6C@DCBL123VX.root.sutterhealth.org> Comments: In-reply-to "Robinson, Wendy" message dated "Thu, 05 Nov 2015 12:48:11 -0800." Content-ID: <26600.1446765045.1@fido> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.3.9 (theraft.openend.se [82.96.5.2]); Fri, 06 Nov 2015 00:10:48 +0100 (CET) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:98323 In a message of Thu, 05 Nov 2015 12:48:11 -0800, "Robinson, Wendy" writes: >Well... I still can't get this to work. I guess I'll just uninstall it. >It's a bummer that there's no help on basic startup like this. > >Wendy Robinson >Audit Analyst >(916)=C2=A0566-4994 phone There is enormous amount of help available. But we need to know more about what your problem is, and how it presents itself before we can start tracking down what your problem is, which is why I wanted a traceback. >>Hi there, >>I installed Python 3.5.0 64-bit for Windows yesterday and tried some bas= ic programs successfully. >>This morning I rebooted my computer and can't get a single one to work. = The interpreter seems to be fine and the environment variables look corre= ct. But every py file I try to run at the >>> prompt gives me a NameError= . See, this is where your problem is. There is a conceptual problem in understanding what you meant by 'tried some basic programs successfully' versus 'running py files at the >>> prompt'. Either you didn't use the Python console -- the thing that is showing = you the '>>>' yesterday, and thus the programs that were working yesterday are now working every bit as well as they did then, and your problem is that you do not know how to use the python console. Or you did use the console before, and they worked there, and now you have NameErrors. I think the problem is the first sort. I think that you opened up the python console and then = typed in something like 'myprogram.py' expecting the console to run the myprogram. Instead you got something like this: Python 3.5.0rc1 (default, Aug 12 2015, 14:57:46) = [GCC 5.2.1 20150808] on linux Type "help", "copyright", "credits" or "license" for more information. >>> myprogram.py Traceback (most recent call last): File "", line 1, in NameError: name 'myprogram' is not defined >>> = If this is what happened then your python is fine. You just do not know how the interactive console works. It doesn't run files = like this. See:https://docs.python.org/3.5/tutorial/introduction.html You type code at the console and get responses back. If, on the other hand, this is not your problem, then we need a traceback --- and what I posted above was a traceback -- so that we can see what caused the NameError. = Laura =