Example broken?

Asked by nside

Hello,
I just tried to run the example and got the following error:

nside@nside-ubuntu:~/src/mapmkr/libs/txamqp/src/examples$ python server.py localhost 5672 / guest guest /home/nside/src/mapmkr/var/specs/standard/amqp0-8.xml
Starting the server...
^CUnhandled error in Deferred:
Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 243, in callback
    self._startRunCallbacks(result)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 312, in _startRunCallbacks
    self._runCallbacks()
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 328, in _runCallbacks
    self.result = callback(self.result, *args, **kw)
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 757, in gotResult
    _inlineCallbacks(r, g, deferred)
--- <exception caught here> ---
  File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py", line 737, in _inlineCallbacks
    result = g.send(result)
  File "server.py", line 88, in prepareClient
    processor = tutorial.Calculator.Processor(handler)
  File "/home/nside/src/mapmkr/libs/txamqp/src/examples/gen-py/tutorial/Calculator.py", line 141, in __init__
    shared.SharedService.Processor.__init__(self, Iface(handler))
exceptions.TypeError: ('Could not adapt', <__main__.CalculatorHandler object at 0x9d3688c>, <InterfaceClass tutorial.Calculator.Iface>)

I'm using RabbitMQ 1.4
Thanks,
Denis

Question information

Language:
English Edit question
Status:
Solved
For:
txAMQP Edit question
Assignee:
No assignee Edit question
Solved by:
nside
Solved:
Last query:
Last reply:
Revision history for this message
Esteve Fernandez (esteve) said :
#1

This was due to several changes made to Thrift and the patch that adds support for Twisted. Could you test lp:~txamqpteam/txamqp/sync-with-thrift? It works for me and blahblahblah, but would like to make sure it works for you as well :-)

I'll merge that branch and roll a new version soon, probably next weekend or so.

Revision history for this message
Launchpad Janitor (janitor) said :
#2

This question was expired because it remained in the 'Needs information' state without activity for the last 15 days.

Revision history for this message
Esteve Fernandez (esteve) said :
#3

Denis, did that branch work for you? Let me know so I could mark this question as solved.

Revision history for this message
nside (denis-2ni) said :
#4

I don't have the sync-with-thrift but that problem is not big deal since the core txamqp works fine anyway