No module named urllib

John Machin sjmachin at lexicon.net
Mon May 7 19:40:15 EDT 2007


On May 8, 9:06 am, HMS Surprise <j... at datavoiceint.com> wrote:
> On May 7, 6:00 pm, John Machin <sjmac... at lexicon.net> wrote:
>
>
>
> > On May 8, 8:06 am, HMS Surprise <j... at datavoiceint.com> wrote:
>
> > > I edited environment varialbes and have added C:\Python25\Lib to
> > > PYTHONPATH but get the no module message when the statement
>
> > That directory should already be in sys.path after a normal Python
> > install. Likewise the PYTHONPATH environment variable should be
> > undefined:
>
> > DOS_prompt> set PYTHONPATH
> > Environment variable PYTHONPATH not defined
>
> > What was already in PYTHONPATH before you added something?
> > Why did you think you needed to change things?
>
> Only what I added before:
> .; c:\maxq\bin\testScripts; c:\maxq\bin;c:\maxq\jython

You have somehow managed to *REPLACE* the whole of sys.path with those
4 directories. Have you fiddled with PYTHONHOME as well? [You
shouldn't].

Go to a DOS-prompt and type
set PYTHONPATH
set PYTHONHOME
and tell us what you see.






More information about the Python-list mailing list