James: It appears that more information is needed to help with your problem. At the present moment, the best I can say is "works for me."
[note: I have a file named "python.bat" on my search path which contains the single line: c:\python26\python.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 so that I can keep my many versions of Python straight.] I downloaded your code using hg and installed on Vista Home Basic using: C:\hg\circuits>python setup.py install and received an error message (which I am unable to duplicate, sorry) followed by what appeared to be a good installation. I attempted to run: C:\hg\circuits\tmp\win32_service>python test_service.py install and received an privilege violation. I started a new Command Prompt using "Run as Administrator" and got: <console dump> C:\hg\circuits\tmp\win32_service>python test_service.py install C:\hg\circuits\tmp\win32_service>c:\python26\python.exe test_service.py install Service installed Service started </console dump> which I think is what you intended. The service is indeed installed on my system. --- So... What version of Windows are you running? Where did "test_service.exe" come from? (I don't see it in your hg tree.) -- Vernon Cole On Sun, Feb 6, 2011 at 11:09 PM, James Mills <prolo...@shortcircuit.net.au>wrote: > Hello all, > > I've been trying to build a simple prototype Windows Services > but am running into a problem when trying to install it. > > Running: > > $ test_service.exe install > > Produces the following error: > > ERROR: exceptions must be classes or instances, not str > Traceback (most recent call last): > File "service.pyc", line 71, in install_service > File "win32serviceutil.pyc", line 295, in InstallService > File "win32serviceutil.pyc", line 83, in LocatePythonServiceExe > TypeError: exceptions must be classes or instances, not str > > Now. We are using the latest version of pywin32 (214) > for Python 2.6.x > > We tried deleting the *.pyc files in C:\Python26\Lib\ to no avail.. > > The code is here: > https://bitbucket.org/prologic/circuits/src/5e17015df110/tmp/win32_service/ > > I'd appreciate any insight into this as my own research > into this problem has yielded nothing positive so far. > > Thanks, > > cheers > James > > -- > -- James Mills > -- > -- "Problems are solved by method" > _______________________________________________ > python-win32 mailing list > python-win32@python.org > http://mail.python.org/mailman/listinfo/python-win32 >
_______________________________________________ python-win32 mailing list python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32