Discussion:
[rabbitmq-users] Hello World Tutorial
Eric Kong
2015-07-31 23:01:41 UTC
Permalink
Hi,

I tried out the Hello World Tutorial in python today. I copied the scripts
and ran them, and send seemed to work fine but receive did not seem to be
working - it seemed to be stuck in the loop caused by start_consuming().

I checked the status of my rabbit server and made sure it was fine. I
checked the queues whenever I sent/received, and the 'hello' queue was
being populated by send and being consumed by receive. This clearly meant
that the scripts were working as intended - its just that nothing was being
printed out.

I removed the start_consuming() line from the receive script and ran it
again, and the print outs worked as intended. Why do the prints not work
when the start_consuming() line is in the script? Is there some issue with
printing and the loop mechanism of start_consuming()? Is it something to
do with my Python version (2.7, pika 0.9.8)?

Thanks for your time and help,

Eric
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Continue reading on narkive:
Loading...