« Return to Thread: NT SERVICE

NT SERVICE

by Seamus Mcloughlin (BH/LMI) :: Rate this Message:

Reply to Author | View in Thread

NT SERVICE

HI All,
        I used to be a user of Edna but kinda lost touch with it for a while. I've recently been doing some catching up again especially on the newer features. One which has greatly impressed me is the "service" option for running it in the backround on windows, and of course the deamon option for unix. So far I've not tried the unix option yet (that will be my most favoured in the not to distant future) but for the moment I'm concentrating on the NT service. I have however run into some problems with running the NT service. Firstly, I'm using win2K pro, but I'm also using Python 2.4.3 and the Win32 extensions (gotton from http://www.python.net/crew/mhammond/win32/Downloads.html) and finally of course I'm using Edna 0.6. I followed the instructions for installing the service and got a "successfully" installed service. However even though I add my python, edna and edna/ntscv directories to my environmental path list I still can't get the service to start. Having looked a bit further in the event log I see the notice

Python could not import the service's module
  File "C:\WINNT\edna\ntsvc\ednaNTSvc.py", line 27, in ?
    import edna
exceptions.ImportError: No module named edna
 
In my application event log. This seem to refer to the lines

# Edna is the TCPServer we will turn into an NT Service
try:
  import edna
except ImportError:
  import sys
  try:
    # in some cases, the above failure leaves a bad module around. torch it.
    del sys.modules['edna']
  except KeyError:
    pass
  sys.path.append('..')
  import edna

Speciffically "import edna".

Is there anything more I can do from here.

Regards

Seamus


_______________________________________________
edna mailing list
edna@...
http://mailman.lyra.org/mailman/listinfo/edna

 « Return to Thread: NT SERVICE

LightInTheBox - Buy quality products at wholesale price!