[rabbitmq-discuss] Python client to RabbitMQ.....error?

Alexis Richardson alexis.richardson at cohesiveft.com
Fri Sep 28 15:14:37 BST 2007


Lynton

Thanks for your email.  I am really pleased you are impressed with RabbitMQ.

I am not sure how best to answer your question yet, but wanted to draw
your attention to a Python client that was posted to the list this
week by Dmitriy.  That should work fine with RabbitMQ.  Can you try
that client, if you have not, and let me know if things work.  If you
have already tried it, please let us know.

alexis



On 9/28/07, Lynton Grice <lynton.grice at netweaverguru.com> wrote:
>
>
>
>
> Hi there,
>
>
>
> I hope someone can help me ;-)..... I have been on the mail lists trying to
> find my problem but still no luck ;-( I am an SAP integration specialist and
> I play alot in Python, Erlang etc......and am VERY impressed so far with
> RabbitMQ.
>
>
>
> I have installed the RabbitMQ Server (1.2.0).....and have installed the QPID
> Python libs.....and I run on Windows XP....
>
>
>
> The server is up and running on the default port etc.....
>
>
>
> BUT I cannot get the Python code working properly or get the test runs
> going.......here is the code below that is dying:
>
>
>
> import qpid
>
> from qpid.client import Client
>
> from qpid.content import Content
>
>
>
> client = Client("127.0.0.1", 5672, spec=qpid.spec.load('amqp0-8.xml'))
> "spec is in the same directory....
>
> client.start({ 'LOGIN': 'guest', 'PASSWORD': 'guest'})
>
>
>
> The client.start method DIES.....and the user and password are
> correct....the error I get in Wing IDE is:
>
>
>
> Closed:
>
>
>
> Traceback (innermost last):
>
>
>
> File "D:\tmp\Rabbit\rabbit.py", line 1, in ?
>
>   import qpid
>
> File "D:\tmp\Rabbit\rabbit.py", line 8, in ?
>
>   client.start({ 'LOGIN': 'guest', 'PASSWORD': 'guest'}) File
> "D:\Python24\Lib\site-packages\qpid\client.py", line 83, in
> start
>
>   self.channel(0).connection_open(self.vhost)
>
> File "D:\tmp\Rabbit\<string>", line 3, in connection_open File
> "D:\Python24\Lib\site-packages\qpid\peer.py", line 182, in
> invoke
>
>   raise Closed(self.reason)
>
>
>
> If I debug the code it seems to go happily into the "client.py" code.....but
> when it calls "self.wait()" but then executes the following and raises
> "EOFError" because it seems to be closed or something
>
>
>
> self.started.wait()
>
>     if self.closed:
>
>       raise EOFError()
>
>
>
> I am probably doing something very stupid....just wanted to know if I need
> to START something on the server or install something like QPID? Or perhaps
> something else?
>
>
>
> Thanks for the help.....I would appreciate any sort of feedback on this.....
>
>
>
> Thanks again ;-)
>
>
>
> Lynton
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>


-- 
Alexis Richardson
+44 20 7617 7339 (UK)
+44 77 9865 2911 (cell)
+1 650 206 2517 (US)




More information about the rabbitmq-discuss mailing list