| Author |
Message |
|
| Guest |
Posted: Mon Oct 01, 2007 6:05 pm |
|
|
|
Guest
|
Hi there,
As mentioned in my last mail I can now run the code via the shell but can't
get it to work through WingIDE (for Python).
Well I have just upgraded to version 3.0 of WingIDE and SUCCESS.....all
working now with RabbitMQ.....
I must have had some strange config on my previous version or something.....
See attached screenshot to show it working in Wing...
Thanks again
Lynton
-----Original Message-----
From: Dmitriy Samovskiy [mailto:dmitriy.samovskiy@cohesiveft.com]
Sent: 01 October 2007 05:01 PM
To: Lynton Grice
Cc: rabbitmq-discuss@lists.rabbitmq.com
Subject: Re: [rabbitmq-discuss] Python / QPID to RabbitMQ....no MLLIB??
Hi Lynton,
Lynton Grice wrote:
>
> I get EXACTLY the same error when I try to run the "disttailf.py -c" after
> running disttailf.py d:\tmp\rabbit\rabbit.py.
>
> The error seems to only be when I try to GET messages from
> RabbitMQ....putting them on is fine.....
>
> Here is the error again:
>
> AttributeError: __eq__
>
> Traceback (innermost last):
>
> File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 1, in ?
> File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 118, in
?
> consumer(client, ch)
> File "d:\Documents and Settings\Lynton\Desktop\disttailf.py", line 38, in
> consumer
> msg = python_queue.get(timeout=1)
> File "D:\Python24\Lib\site-packages\qpid\queue.py", line 46, in get
> if result == Queue.END:
> File "D:\Python24\Lib\site-packages\qpid\message.py", line 61, in
> __getattr__
> raise AttributeError(attr)
>
The good news is that I was able to run your code and successfully
sent/received a message. The bad news is that I still can't tell you
what's wrong with your setup. But I am almost positive it's not related
to rabbitmq or qpid python libraries.
To make a long story short, my interpreter also raises AttributeError on
'__eq__' (which appears to be correct behavior). My interpreter however
catches and processes this exception internally, vs. your interpreter
doesn't.
What kind of python are you using? Original from python.org or something
like ActivePython or maybe yet another flavor? I use original from
python.org. Or maybe this is platform related (I use Debian Linux).
Also, is it possible that you have more than one interpreter on your
system and the one which you actually call is not the one from
d:\python24\bin? Maybe try "d:\python24\bin\python.exe
d:\tmp\rabbit\rabbit.py" ? These are just guesses however.
Here is my output from your code, with certain debug print outs from
qpid.message.__getattr__():
inside __getattr__ Method(name=start, id=10) (8, 0, {'platform':
'Erlang/OTP', 'product': 'RabbitMQ', 'version': '1.2.0', 'copyright':
'Copyright (C) 2007 LShift Ltd., Cohesive Financial Technologies LLC.,
and Rabbit Technologies Ltd.', 'information': 'Licensed under the MPL.
See http://www.rabbitmq.com/'}, 'PLAIN AMQPLAIN', 'en_US') content =
None start_ok
res 2
result is <function respond at 0xa7954c34>
inside __getattr__ Method(name=tune, id=30) (0, 131072L, 0) content =
None tune_ok
result is <function respond at 0xa7954c34>
Sending message "ping"... done
Receiving message
inside __getattr__ Method(name=consume_ok, id=21)
('amq.ctag13_rabbit@dsy025_20071001141609_',) content = None consumer_tag
result is amq.ctag13_rabbit@dsy025_20071001141609_
inside __getattr__ Method(name=deliver, id=60)
('amq.ctag13_rabbit@dsy025_20071001141609_', 10000L, False,
'amq.direct', 'test') content = {} ping consumer_tag
result is amq.ctag13_rabbit@dsy025_20071001141609_
inside __getattr__ Method(name=deliver, id=60)
('amq.ctag13_rabbit@dsy025_20071001141609_', 10000L, False,
'amq.direct', 'test') content = {} ping __eq__
raising AttributeError __eq__
inside __getattr__ Method(name=deliver, id=60)
('amq.ctag13_rabbit@dsy025_20071001141609_', 10000L, False,
'amq.direct', 'test') content = {} ping __coerce__
raising AttributeError __coerce__
inside __getattr__ Method(name=deliver, id=60)
('amq.ctag13_rabbit@dsy025_20071001141609_', 10000L, False,
'amq.direct', 'test') content = {} ping __cmp__
raising AttributeError __cmp__
Got message: ping
- Dmitriy
Post recived from mailinglist |
|
|
| Back to top |
|
| alexis |
Posted: Mon Oct 01, 2007 6:09 pm |
|
|
|
User
Joined: 06 Sep 2007
Posts: 80
Location: London
|
Lynton
That is great news - well done.
So, now that you've got it working, can you share your use case with
the list? I'm sure that will be most revealing, and I am keen to get
people talking on the list about business cases, as well as getting X
to work with Y.
alexis
On 10/1/07, Lynton Grice <lynton.grice@netweaverguru.com> wrote:
> Hi there,
>
> As mentioned in my last mail I can now run the code via the shell but can't
> get it to work through WingIDE (for Python).
>
> Well I have just upgraded to version 3.0 of WingIDE and SUCCESS.....all
> working now with RabbitMQ.....
_______________________________________________
rabbitmq-discuss mailing list
rabbitmq-discuss@lists.rabbitmq.com
http://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
|
|