[Tutor] lots of Python errors

Jordan James jdjames87@sbcglobal.net
Thu Jul 17 17:27:01 2003


This is a multi-part message in MIME format.

------=_NextPart_000_0027_01C34BA9.18E4A620
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I don't know why, but I seem to get a lot of errors running Python.  How =
I came to use Python was through Blender, a freeware 3D package (that =
uses Python) that you've probably heard of.  At first, I found that only =
a few of the scripts that I downloaded for use in Blender worked, so I =
thought it was a problem with Blender.  So I got the actual python =
command line and GUI.  I still had lots of errors running scripts by =
other people.  For example,  "os.system".   When I say

os.system("start notepad")

,it says=20

Traceback (most recent call last):
  File "C:/Program Files/Python/launch.py", line 1, in ?
    os.system("start notepad")
NameError: name 'os' is not defined

I'm pretty sure this isn't normal, because I read all of the tutor pages =
by other people, and these things work for them.  I am running Python =
2.3; is this possibly a really old version?  Is there some major step =
I'm not doing?  I'm running Windows 98, does Python have problems with =
Windows?  Are there any other factors I need to consider?

I know my problem is pretty broad, but if anyone knows what is going on, =
I would appreciate it if you told me.

Thanks.

Jordan
------=_NextPart_000_0027_01C34BA9.18E4A620
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2>I don't know why, but I seem to get a =
lot of errors=20
running Python.&nbsp; How I came to use Python was&nbsp;through Blender, =
a=20
freeware 3D package (that uses Python)&nbsp;that you've probably heard =
of.&nbsp;=20
At first, I found that only a few of the scripts that I downloaded for =
use in=20
Blender worked, so I thought it was a problem with =
Blender.&nbsp;&nbsp;So I got=20
the actual python command line and GUI.&nbsp; I still had lots of errors =
running=20
scripts by other people.&nbsp; For example, =
&nbsp;"os.system".&nbsp;&nbsp; When=20
I say</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>os.system("start notepad")</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>,it says </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Traceback (most recent call =
last):<BR>&nbsp; File=20
"C:/Program Files/Python/launch.py", line 1, in ?<BR>&nbsp;&nbsp;&nbsp;=20
os.system("start notepad")<BR>NameError: name 'os' is not =
defined</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm pretty sure this isn't normal, =
because I read=20
all of the tutor pages by other people, and&nbsp;these things&nbsp;work =
for=20
them.&nbsp; I am running Python 2.3; is this possibly a really old=20
version?&nbsp; Is there some major step I'm not doing?&nbsp; I'm running =
Windows=20
98, does Python have problems with Windows?&nbsp; Are there any other =
factors I=20
need to consider?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I know my problem is pretty broad, but =
if anyone=20
knows what is going on, I would appreciate it if you told =
me.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>Jordan</FONT></DIV></FONT></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0027_01C34BA9.18E4A620--