[python-win32] Python service needs to access network resources

Tim Roberts timr at probo.com
Wed Apr 20 19:09:25 CEST 2011


Chris Bennett wrote:
> I have been trying to figure this out for weeks now.
> I have made a simply Python service on my local computer, but it needs
> to import a module from the network.
> I have tried appending the UNC of the folder to the path but it still
> says "there is no module named X"
> Then when I tried running the service logged on as NT
> AUTHORITY\NetworkService it cannot find my service object, even if I
> point to it with UNC in the registry.
> I am running out of ideas. Does anybody have any suggestions? Is it a
> firewall issue?

The NetworkService user does not have permissions to access your net
shares, and it doesn't know about drive letters mapped by your
username.  It's not logged in to your network.

You really have two choices.  You can configure the service to log in
with your user name (in the Services control panel), or you can copy
these modules locally.

-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the python-win32 mailing list