[Twisted-Python] Wrapping blocking code
justinjohnson at fastmail.fm
Mon Jul 28 11:10:31 EDT 2003
Another interesting problem...
The command I am trying to run using my subclass of ProcessProtocol is a
commercial product that needs to get a license from a license server,
plus it needs to talk to another server to get data. So it needs to open
a socket to the license server and a different during my invocation of
the command. When I run the command using the attached code, I get a
message saying it can't contact the license server, even though the
command works just fine on the command-line, outside of python/twisted.
Is there a valid reason my process can't communicate out, or is this
possibly a bug with the win32eventreactor? Attached is the file I'm
running, and the output I get is below.
args: ['lsvob', '-s']
stderr: cleartool: Error: Unknown host 'rat00001': [WINSOCK] Host not
cleartool: Error: Cannot contact license server host "rat00001".
cleartool: Error: You do not have a license to run ClearCase.
failure: [Failure instance: Traceback:
process ended with exit code 1
*--- Failure #5 ---
--- <exception caught here> ---
*--- End of Failure #5 ---
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1463 bytes
Desc: not available
Url : http://twistedmatrix.com/pipermail/twisted-python/attachments/20030728/4542098d/attachment.bin
More information about the Twisted-Python