[rabbitmq-discuss] Pika uploaded to PyPI

Andreas Jung lists at zopyx.com
Thu Jul 1 14:16:03 BST 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Marek Majkowski wrote:
>> Excellent - are there any advantages about using pika
>> over ampqlib (especially with using Carrot on the top)?
> 
> For example support for AMQP-0.9.1 protocol.


Tried to switch my consumer from ampqlib to pika by adding
backend_cls='pika' to my BrokerConnection constructor. This
leads to:

  File "bin/consumer-text-processing", line 36, in <module>
    ym.queue.consumer.topictext.main()
  File
"/data/develop/sandboxes/occ/src/ym.queue/ym/queue/consumer/topictext.py",
line 75, in main
    SolrIndexer()
  File
"/data/develop/sandboxes/occ/src/ym.queue/ym/queue/consumer/consumer_base.py",
line 47, in __init__
    consumer  = self.setupConsumer(queue_configuration)
  File
"/data/develop/sandboxes/occ/src/ym.queue/ym/queue/consumer/consumer_base.py",
line 67, in setupConsumer
    durable=True,
  File
"/data/develop/sandboxes/occ/eggs/carrot-0.10.4-py2.6.egg/carrot/messaging.py",
line 230, in __init__
    self.declare()
  File
"/data/develop/sandboxes/occ/eggs/carrot-0.10.4-py2.6.egg/carrot/messaging.py",
line 277, in declare
    arguments=arguments)
  File
"/data/develop/sandboxes/occ/eggs/carrot-0.10.4-py2.6.egg/carrot/backends/pikachu.py",
line 108, in queue_bind
    arguments=arguments)
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/spec.py", line
3007, in queue_bind
    [Queue.BindOk])
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/channel.py",
line 180, in _rpc
    return self.connection._rpc(self.channel_number, method,
acceptable_replies)
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/connection.py", line
325, in _rpc
    self.send_method(channel_number, method)
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/connection.py", line
301, in send_method
    self.send_frame(codec.FrameMethod(channel_number, method))
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/connection.py", line
295, in send_frame
    marshalled_frame = frame.marshal()
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/codec.py",
line 74, in marshal
    pieces = self.method.encode()
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/spec.py", line
757, in encode
    pika.table.encode_table(pieces, self.arguments)
  File
"/data/develop/sandboxes/occ/eggs/pika-0.5-py2.6.egg/pika/table.py",
line 60, in encode_table
    for (key, value) in table.iteritems():
AttributeError: 'NoneType' object has no attribute 'iteritems'

Anything I am missing.

Andreas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkwslRMACgkQCJIWIbr9KYz3zACgpnhGegGLwZdujBnBjQpwfJju
kR4AnR2J6N6X6yxGmaCV1s4cE1/ILe2a
=DOL1
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lists.vcf
Type: text/x-vcard
Size: 330 bytes
Desc: not available
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20100701/301e2701/attachment-0001.vcf>


More information about the rabbitmq-discuss mailing list