Windows Service not starting.

1 view
Skip to first unread message

Antony Joseph

unread,
May 8, 2008, 11:06:15 AM5/8/08
to turbo...@googlegroups.com

I have tried to make my windows service for my Turbogears application from the below given reference

http://osdir.com/ml/web.turbogears/2005-12/msg00036.html

but i am experience and problems in  getting it started
I am pasting the error messages below,please help me to solve this problem.

C:\Documents and Settings\Administrator\Desktop\App Personnal\service\app>python service.py install
C:\Documents and Settings\Administrator\Desktop\App Personnal\service\app\app_win_service.py:1: UserWa
rning: Module pywintypes was already imported from C:\WINDOWS\system32\pywintypes25.dll, but c:\python25\lib\site-packag
es\pywin32-210-py2.5-win32.egg is being added to sys.path
  import pkg_resources
Installing service app
Service installed

C:\Documents and Settings\Administrator\Desktop\App Personnal\service\app>python service.py start
C:\Documents and Settings\Administrator\Desktop\App Personnal\service\app\app_win_service.py:1: UserWa
rning: Module pywintypes was already imported from C:\WINDOWS\system32\pywintypes25.dll, but c:\python25\lib\site-packag
es\pywin32-210-py2.5-win32.egg is being added to sys.path
  import pkg_resources
Starting service app


Thanks
Antony

Paul Johnston

unread,
May 8, 2008, 6:16:06 PM5/8/08
to turbo...@googlegroups.com
Hi Antony,

I am successfully running TG apps as a service, based on these instructions:
http://docs.turbogears.org/1.0/WindowsService

One thing I found is I have to copy pywintypes25.dll into a directory in
my path. I haven't updated the instructions to say that though, because
I think that's a pretty hacky fix and there's probably a neater way to
do it. Worked for me though :-)

Paul

Reply all
Reply to author
Forward
0 new messages