[Twisted-Python] question : json.loads failed using LineReceiver data

2012-05-14 Thread bino oetomo
Dear All .. I'm trying to received json formated text using LineReceiver Here is my code START class ArduinoReceiver(LineReceiver): def __init__(self): print 'INIT : ArduinoReceiver' def lineReceived(self, line): line = line.strip() print 'Received li

Re: [Twisted-Python] question : json.loads failed using LineReceiver data

2012-05-14 Thread Itamar Turner-Trauring
On 05/14/2012 04:53 AM, bino oetomo wrote: > Kindly please tell me why the 'json.loads' is failed in my tac file > while it work in python console. > Perhaps the JSON spans more than one line? Printing out the repr() of the lines you're receiving may be informative. __

Re: [Twisted-Python] question : json.loads failed using LineReceiver data

2012-05-14 Thread exarkun
On 08:53 am, b...@indoakses-online.com wrote: >Dear All .. > >I'm trying to received json formated text using LineReceiver > >Here is my code >START >class ArduinoReceiver(LineReceiver): > def __init__(self): > print 'INIT : ArduinoReceiver' > > def lineReceived(self, line):

[Twisted-Python] Cannot install Twisted version 8 through PIP

2012-05-14 Thread Pascal Briet
Hi, We're having some troubles today, because it seems that old packages of Twisted are not available anymore. We are currently relying on Twisted 8.2.0. pip install twisted==8.2.0 is failing (first version available seems to be 9.0.0) The package was still available last Friday. Is there a cr

Re: [Twisted-Python] Cannot install Twisted version 8 through PIP

2012-05-14 Thread Itamar Turner-Trauring
On 05/14/2012 09:14 AM, Pascal Briet wrote: > Hi, > > We're having some troubles today, because it seems that old packages > of Twisted are not available anymore. > We are currently relying on Twisted 8.2.0. > > pip install twisted==8.2.0 is failing (first version available seems > to be 9.0.0)

Re: [Twisted-Python] Cannot install Twisted version 8 through PIP

2012-05-14 Thread Pascal Briet
Hi, Thanks for your answer. Well, there is no specific reason that we use the 8.2.0 version. It's just... history. We never needed to upgrade it. Do you think we can easily upgrade to 9/10/11/12 ?? Thanks very much, -- Pascal BRIET Software engineer Optimor Labs http://www.billmonitor.com O

Re: [Twisted-Python] Cannot install Twisted version 8 through PIP

2012-05-14 Thread Itamar Turner-Trauring
On 05/14/2012 09:35 AM, Pascal Briet wrote: > Hi, > > Thanks for your answer. > > Well, there is no specific reason that we use the 8.2.0 version. > It's just... history. We never needed to upgrade it. > > Do you think we can easily upgrade to 9/10/11/12 ?? > Thanks very much, > We have a strict b

Re: [Twisted-Python] Cannot install Twisted version 8 through PIP

2012-05-14 Thread Pascal Briet
Ok, Thanks for your help. Best regards, -- Pascal BRIET Software engineer Optimor Labs http://www.billmonitor.com On 14 May 2012 14:54, Itamar Turner-Trauring wrote: > On 05/14/2012 09:35 AM, Pascal Briet wrote: > > Hi, > > > > Thanks for your answer. > > > > Well, there is no specific reas