Using python interpreter over a network

Emile van Sebille emile at fenx.com
Thu Jun 28 19:51:53 EDT 2001


I think it gets more involved than that.  I was trying to get it to work
this morning before I took off, and got to the point of being able to import
some win32 stuff, but not win32net.  That gave an error loading the dll - A
device attached to the system is not functioning.  I was able to get
regsetup.py to work, thinking perhaps Marks stuff was looking for that.

By now I've probably got things pretty well scrambled on that system.  ;-)
But I thought it could be convenient to have, so maybe I'll try again when I
get another hour or so.

--

Emile van Sebille
emile at fenx.com

---------
"Robin Becker" <robin at jessikat.fsnet.co.uk> wrote in message
news:0z3crJATm3O7EwQT at jessikat.fsnet.co.uk...
> In article <e8f1f186.0106280118.31597c6f at posting.google.com>, pj
> <pjdurai at hotmail.com> writes
> >Greetings.
> >
> >I am trying to run a python script in a networked windows NT
> >workstation. Python is not installed in this box.
> >
> >I have mapped another machine's (my win2k box) python (2.1)
> >installation to the PATH of this NT box.
> >
> >I have set PYTHONHOME to Q:\Python   while Q: is  mapped to
> >\\my_nt_box\cdrive. I also have Q:\winnt\system32 in the current path
> >(for python dll).
> >
> >Python seems to work under the circumstances. I can run the
> >interpreter and do simple stuff.  But when I try to import some
> >modules, it says it cant find those. 'win32net' for example.  I am not
> >sure how to make it aware of the fact that everything is under
> >q:\python.
> >
> >Is it a requirement that python should be installed in the local
> >machine? Or is there something (Env variable ? Registry ?) I can tweak
> >to make this work.
> >
> >Appreciate your time.
> >
> >cheers
> >pj
> try doing
>
> import sys
>
> sys.path
>
> on my home box this looks like
> ['', 'c:\\python\\pythonwin', 'c:\\python\\win32',
> 'c:\\python\\win32\\lib', 'c:\\python', 'c:\\python\\dlls',
> 'c:\\python\\lib', 'c:\\python\\lib\\plat-win', 'c:\\python\\lib\\lib-
> tk', 'c:\\python\\numeric', 'c:\\python\\rgbx', 'c:\\python\\devel\\vide
> ocapture\\python21']
>
> (folded lines aside) and perhaps your python does the same. If that is
> so, you need to do a conversion and replace the c: with q: for your
> scripts to run.
> --
> Robin Becker





More information about the Python-list mailing list