Puzzled

2015-11-01 Thread Robinson, Wendy
Hi there,
I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic 
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 correct.  But 
every py file I try to run at the >>> prompt gives me a NameError.

I tried running the Repair installation, but that did not help.

Any suggestions?

Thank you

Wendy Robinson
Audit Analyst
(916) 566-4994 phone

[cid:image001.jpg@01D112F4.341BC390]

NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended 
recipient and may contain material that is confidential and protected by state 
and federal regulations.  If you are not the intended recipient please 
immediately delete it and contact the sender.

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Puzzled

2015-11-02 Thread Robinson, Wendy
[cid:image001.png@01D11543.5ED11D50]



Wendy Robinson

Audit Analyst

(916) 566-4994 phone







NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended 
recipient and may contain material that is confidential and protected by state 
and federal regulations.  If you are not the intended recipient please 
immediately delete it and contact the sender.



-Original Message-
From: Laura Creighton [mailto:l...@openend.se]
Sent: Sunday, November 01, 2015 2:21 AM
To: Robinson, Wendy
Cc: 'python-list@python.org'; l...@openend.se
Subject: Re: Puzzled



In a message of Fri, 30 Oct 2015 09:20:23 -0700, "Robinson, Wendy" writes:

>Hi there,

>I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic 
>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 correct.  But 
>every py file I try to run at the >>> prompt gives me a NameError.

>

>I tried running the Repair installation, but that did not help.

>

>Any suggestions?

>

>Thank you

>

>Wendy Robinson

>Audit Analyst

>(916) 566-4994 phone



Paste in the Full traceback you get from the console.

Also check and see that the console is actually running the 3.5 you installed, 
and not some other python, like 2.7 you might have lying around.



Laura
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Puzzled

2015-11-06 Thread Robinson, Wendy
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) 566-4994 phone



NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended 
recipient and may contain material that is confidential and protected by state 
and federal regulations.  If you are not the intended recipient please 
immediately delete it and contact the sender. 

-Original Message-
From: Laura Creighton [mailto:l...@openend.se] 
Sent: Sunday, November 01, 2015 2:21 AM
To: Robinson, Wendy
Cc: 'python-list@python.org'; l...@openend.se
Subject: Re: Puzzled

In a message of Fri, 30 Oct 2015 09:20:23 -0700, "Robinson, Wendy" writes:
>Hi there,
>I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic 
>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 correct.  But 
>every py file I try to run at the >>> prompt gives me a NameError.
>
>I tried running the Repair installation, but that did not help.
>
>Any suggestions?
>
>Thank you
>
>Wendy Robinson
>Audit Analyst
>(916) 566-4994 phone

Paste in the Full traceback you get from the console.
Also check and see that the console is actually running the 3.5 you installed, 
and not some other python, like 2.7 you might have lying around.  

Laura
-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Puzzled

2015-11-06 Thread Robinson, Wendy
Hmmm... fair enough.  I sent the traceback though, on Monday.
I'll give the intro a read again.  I've probably missed something basic.

Wendy Robinson
Audit Analyst
(916) 566-4994 phone



NOTICE OF CONFIDENTIALITY: This email is for the sole use of the intended 
recipient and may contain material that is confidential and protected by state 
and federal regulations.  If you are not the intended recipient please 
immediately delete it and contact the sender. 


-Original Message-
From: Laura Creighton [mailto:l...@openend.se] 
Sent: Thursday, November 05, 2015 3:11 PM
To: Robinson, Wendy
Cc: 'Laura Creighton'; 'python-list@python.org'; l...@openend.se
Subject: Re: Puzzled

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) 566-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 basic 
>>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 correct.  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 

-- 
https://mail.python.org/mailman/listinfo/python-list


RE: Puzzled

2015-11-08 Thread Robinson, Wendy
Ah, ok I get it now.
Thanks both!

Wendy Robinson
Audit Analyst


-Original Message-
From: Chris Gonnerman [mailto:ch...@gonnerman.org] 
Sent: Friday, November 06, 2015 5:40 AM
To: python-list@python.org
Cc: Robinson, Wendy
Subject: Re: Puzzled

Wendy said:
> I installed Python 3.5.0 64-bit for Windows yesterday and tried some basic 
> 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 correct.  But 
> every py file I try to run at the >>> prompt gives me a NameError.
But that's not how the Python interpreter works.  You say you are trying to run 
"py files" at the >>> prompt.  If what you are doing is this:

 >>> test.py

Well, no, that's not going to work.  If you want to run "test.py" as a script, 
from the CMD prompt you type:

 python test.py

If test.py is a module meant to be imported, then from the Python prompt you do 
this:

 import test

Hope this helps.

-- Chris.

-- 
https://mail.python.org/mailman/listinfo/python-list