How to use pywin32 from network location

283 views
Skip to first unread message

PBLN RAO

unread,
Nov 26, 2012, 6:37:13 AM11/26/12
to python_in...@googlegroups.com
Hi,

I want to know if its possible to use pywin32 from a network location.
Currently i am using PyQt4 from network location and its working. Same way i tried pywin32 by copying to network location.

when in import win32api or some other module i get below error

Traceback (most recent call last):
  File "<pyshell#27>", line 1, in <module>
    import win32api
ImportError: No module named win32api

Do any one have idea to over come this.

san

unread,
Nov 26, 2012, 8:18:39 AM11/26/12
to python_in...@googlegroups.com
add the path of pywin32 to sites location or add it to sys.path...

Python inside Maya

unread,
Nov 27, 2012, 6:27:52 PM11/27/12
to python_in...@googlegroups.com
I would love to hear other experiences on this as well. What I have heard regarding this is that it is not possible. 
The reason I got was that pywin32 has to modify the actual Python install itself in order for it to work correctly and thus can not be run on it's own outside of a Python install.

I would be really happy if this was not the case though.

Sounds like your error right now is related to env pathing though.
is it accounted for in: ?
for sysPath in sys.path: print sysPath

/Christian

PBLNRAO Kiran

unread,
Dec 24, 2012, 6:25:10 AM12/24/12
to python_in...@googlegroups.com
San,

Adding pywin32 to sys path or sites location is not working....

PBLNRAO Kiran

unread,
Dec 24, 2012, 6:32:18 AM12/24/12
to python_in...@googlegroups.com
Finally i could able to find a solution.

I am posting the solution so someone in the same situation might be helpful.

In order to make win32 module to work from central location we need to run a script on every client.

1. Install python with python pywin32 on a network drive. say we installed it on a central location "\\server\python26" were everyone has access to this path.
2. On every client run "\\server\Python26\python.exe \\server\Python26\Scripts\pywin32_postinstall.py -install"
3. Thats it all done.

It worked perfectly for me.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages