[Twisted-Python] Unpedictable behaviour of transport.write call: Problem with return the control to reactor

2009-11-03 Thread naman jain
Hi, I was trying this out: Server code: def dataReceived(self, data): if (args["cmd"] == "CHECK_IN"): foo = subprocess.Popen('python master.py',shell = True) *# this ACK notifies the client to close the connection* self.transport.write( self.create_message("CHECK_IN"

Re: [Twisted-Python] Logging to both console and file (using twisted logging API)?

2009-11-03 Thread naman jain
Hi, Using log.startLogging(open(logname, 'w'), setStdout=False) very well solves the issue.. of stdout remaining untouched and log.msg() calls going to log Can we do this ?: Log file gets -> both the log.msg() calls , the stdout +stderr console -> gets stdout +stderr as usual Regards Naman On

Re: [Twisted-Python] Connect to an IRC server, modules.

2009-11-03 Thread Glyph Lefkowitz
On Nov 2, 2009, at 9:24 AM, Alberto Piu wrote: > first of all, I apologize for bad english. I am new with Twisted, and > although it seems very powerful, I'm having some problems in using it. > I'm trying to create an IRC bot, which basically does nothing. My idea > is to write a skeleton that's

Re: [Twisted-Python] Need replacement for subprocess.call within a pyAMF method - any suggestions?

2009-11-03 Thread exarkun
On 3 Nov, 11:55 pm, rrobe...@adobe.com wrote: >I am trying to use the twisted reactor as a basis for a Python server >for a >Flex app, using pyAMF. My problem is that one of the server methods >requires me to run a series of command-line tools to complete parsing >data >from a file into an XML

Re: [Twisted-Python] The case of the missing Traceback

2009-11-03 Thread Terry Jones
> "Dan" == Dan writes: Dan> I was playing around with Twisted today and ran into a problem where Dan> Tracebacks aren't emitted on stderr after a deferred callback from a Dan> process called launched by reactor.spawnProcess. The simplified test Dan> case is below. I put "x = y" in the callb

[Twisted-Python] Need replacement for subprocess.call within a pyAMF method - any suggestions?

2009-11-03 Thread Read Roberts
I am trying to use the twisted reactor as a basis for a Python server for a Flex app, using pyAMF. My problem is that one of the server methods requires me to run a series of command-line tools to complete parsing data from a file into an XML object, with lots of Python processing on the results

[Twisted-Python] twisted.internet.error.ProcessTerminated, exit code 1?

2009-11-03 Thread Galina Kistanova
Hello all, I ran into issue with Twisted, could anybody help me? I have Twisted 8.2.0 on Ubuntu 9.04. I run tests for Buildbot 0.7.11p3 and one of the tests completed with the next error: [ERROR]: buildbot.test.test_locks.Locks.testLock3 Traceback (most recent call last): Failure: twisted.inter

Re: [Twisted-Python] The case of the missing Traceback

2009-11-03 Thread Dan
Awesome! Thanks for helping out a noob Terry! :) At 02:11 PM 11/3/2009, you wrote: > > "Dan" == Dan writes: >Dan> I was playing around with Twisted today and ran into a problem where >Dan> Tracebacks aren't emitted on stderr after a deferred callback from a >Dan> process called launched b

[Twisted-Python] The case of the missing Traceback

2009-11-03 Thread Dan
I was playing around with Twisted today and ran into a problem where Tracebacks aren't emitted on stderr after a deferred callback from a process called launched by reactor.spawnProcess. The simplified test case is below. I put "x = y" in the callback function to generate an exception, y do