win32service win32pipe question

dsavitsk dsavitsk at e-coli.net
Tue Dec 11 17:48:37 EST 2001


i followed the example of making a win32service in Mark Hammond's book.
when i run the client i get the following error.  does anyone know what this
might be from?

X:\epsp2\server\bin>PipeServiceClient.py hello there service
Traceback (most recent call last):
  File "X:\epsp2\server\bin\PipeServiceClient.py", line 8, in ?
    data = win32pipe.CallNamedPipe(pipeName, message, 512, 0)
pywintypes.api_error: (2, 'CallNamedPipe', 'The system cannot find the file
spec
ified.')

the client code is below, the service code is more or less word for word
from page 352.

--------------------------------------------------

import win32pipe
import sys
import string

if __name__ == '__main__':
    message = string.join(sys.argv[1:])
    pipeName = '\\\\.\\pipe\\ecpSpoolPipe'
    data = win32pipe.CallNamedPipe(pipeName, message, 512, 0)
    print "the service sent back:"
    print data





More information about the Python-list mailing list