Python is easy?

Jonathan Driller jdriller at orchid.org
Tue Aug 13 21:48:51 EDT 2002


Steve,
Much thanks and I agree with your first comment. Possibly something
else is going on - what you suggested did not work. But if I open the
Python command line I can do things like >>>3 + 3   >>>6 - so Python
is working. Any other ideas?

Jonathan

"Steve Holden" <sholden at holdenweb.com> wrote in message news:<rl%59.370634$724.282304 at atlpnn01.usenetserver.com>...
> "Jonathan Driller" <jdriller at orchid.org> wrote in message
> news:a8cff9fb.0208121848.2b3b6fb2 at posting.google.com...
> > A Python evangelist keeps telling me I need to try Python as it is so
> > much quicker and easier to develop in then Java. Bottom line is I
> > think the ease of learning is dependent on the quality of your
> > teacher/support than wholly on the language.
> >
> > I keep getting this error using ActiveStates win2k install 2.2:
> > >>> test1.py
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in ?
> > NameError: name 'test1' is not defined
> >
> > I am trying to run test1.py which is in
> > d:\Python22\Lib\site-packages\jds:
> > import urlopen
> > page = urlopen('http://www.yahoo.com')
> > page.readline()
> >
> > I figure it is my pythonpath but wrote this path.bat to set it:
> > path d:\Python22;%PATH%
> > set
> PYTHONPATH=.;d:\Python22\Lib;d:\Python22\Lib\lib-tk;d:\Python22\Lib\site-pac
> kages\jds;d:\Python22\Lib\site-packages
> > python
> >
> > Can anyone assist here? My evangelist can't figure it out...
> 
> Get another evangelist :-) Then, at the command line prompt (D:>, or
> whatever your interactive wondow gives you) CD into the directory containing
> your script and enter
> 
>     python test1.py
> 
> regards
> -----------------------------------------------------------------------
> Steve Holden                                 http://www.holdenweb.com/
> Python Web Programming                http://pydish.holdenweb.com/pwp/
> -----------------------------------------------------------------------



More information about the Python-list mailing list