RE: [pywin32-bugs] Problem starting a service.
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
From: Mark H. <mha...@sk...> - 2004-11-25 02:41:54
|
It appears you need to put that "foo" on your sys.path - I thought we handled some cases when it is not, but obviously not this one. Mark > -----Original Message----- > From: pyw...@li... > [mailto:pyw...@li...]On Behalf Of Jim > Panetta > Sent: Friday, 19 November 2004 2:19 PM > To: pyw...@li... > Subject: [pywin32-bugs] Problem starting a service. > > > The example service file win32/demos/service/pipeTestService.py is > showing very different behavior depending on *where* the file > is located: > > 1) When located under site-packages/win32/..., the service > starts with > no problem. > > 2) When started under site-packages/foo/pipeTestService.py, > the service > does not start: > > C:\Python23\Lib\site-packages\foo>copy > ..\win32\demos\service\pipeTestService.py pipeTestService.py > > C:\Python23\Lib\site-packages\foo>python pipeTestService.py install > Installing service PyPipeTestService to Python class > C:\Python23\Lib\site-packages\foo\pipeTestService.TestPipeService > Service installed > > C:\Python23\Lib\site-packages\foo>python pipeTestService.py > --wait 5 start > Starting service PyPipeTestService > Error starting service: The service did not respond to the start or > control request in a timely fashion. > > A look at the event log gives: > > Event Type: Error > > Event Source: Python Service > > Event Category: None > > Event ID: 4 > > Date: 11/18/2004 > > Time: 7:14:22 PM > > User: N/A > > Computer: GITOW1 > > Description: > > Python could not import the service's module > > > > exceptions.ImportError: No module named pipeTestService > > Any ideas? > > I'm running Python 2.3.4, pywin32 build 202 or 203. (Tried both) > > --Jim Panetta > > -- > My opinions are mine...not DOE's...not SLAC's...mine. > (except by random, unforseeable coincidences) > pa...@sl... -- Save the whales! Free the mallocs! > > > > ------------------------------------------------------- > SF email is sponsored by - The IT Product Guide > Read honest & candid reviews on hundreds of IT Products from > real users. > Discover which products truly live up to the hype. Start reading now. > http://productguide.itmanagersjournal.com/ > _______________________________________________ > pywin32-bugs mailing list > pyw...@li... > https://lists.sourceforge.net/lists/listinfo/pywin32-bugs |