Questions tagged [pika]

Python-Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. Python-Pika was developed primarily for use with RabbitMQ, but should also work with other AMQP 0-9-1 brokers.

Python-Pika is a pure-Python implementation of the AMQP 0-9-1 protocol that tries to stay fairly independent of the underlying network support library. Python-Pika was developed primarily for use with RabbitMQ, but should also work with other AMQP 0-9-1 brokers.

672 questions
0
votes
2 answers

Producing an amqp message using python and consuming that same message using java

I am trying to produce an amqp message from python and consume that same message from java/spring. Here is my producer code (python): import pika, sys, pickle sys.path.append("trc/suivi/amqp") from Person import Person connection =…
balteo
  • 23,602
  • 63
  • 219
  • 412
0
votes
1 answer

How to timeout early when trying to connect

I have an application that is trying to connect to a rabbitmq-server, but I want my application to timeout within a specified number of seconds if it cannot connect to the server. My problem is that I can't figure out how to do it. to clarify, it's…
Daniel Figueroa
  • 10,348
  • 5
  • 44
  • 66
0
votes
1 answer

How to use routing_key and queues

I'm setting up a consumer that will listen for messages from two different sources. I want to have a different callback for messages from these two sources(other solutions are welcome though). I'm very new to rabbitmq and pika and I haven't grasped…
Daniel Figueroa
  • 10,348
  • 5
  • 44
  • 66
0
votes
2 answers

Popping one element from a RabbitMQ queue

I have a queue, and I've stuffed some n elements from it. I want to take 1 element from it, and then exit the callback.The pika examples all use a callback mechanism, which really does not make sense in the application structure. Defining a callback…
Paul Nathan
  • 39,638
  • 28
  • 112
  • 212
0
votes
2 answers

Sending message to RabbitMQ (pika) from scheduler callback doesn't work

I need different messages to be sent to the queue - each by its personal schedule. So I have message list and related interval to resend each one. I use rabbitMQ/pika and apscheduler. According to numerous examples, I created the simplest…
Serge
  • 1,947
  • 3
  • 26
  • 48
0
votes
2 answers

RabbitMQ / Pika - guaranteeing that messages are received in the order created?

As a simple example, I'm adding 5 items to a new RabbitMQ(v 2.6.1) queue: import pika connection = pika.BlockingConnection(pika.ConnectionParameters(host='not.my.real.server.net')) channel =…
Neil Kodner
  • 2,901
  • 3
  • 27
  • 36
0
votes
1 answer

Timeout is not able to sent via pika.Blocking connection

I am trying to write a client program to recieve from the rabbitmq server, with which I want to set the timeout. After the specified time the client should stop consuming for the messages from the queue and exit. I am using the pika with Blocking…
0
votes
1 answer

Object transfer between Node.js and Django using AMQP

I'm beginning with websockets and I'm very confused with the number libraries and configuration options. I just want to setup a project where a node.js server calls a method in python/django and when the last has finished, it transfers the result…
ksiomelo
  • 1,878
  • 1
  • 33
  • 38
-1
votes
1 answer

Listening to rabbitmq queue on a remote host

I want to listen to listen on a queue which isnt on the same host. Is this possible. In the rabbitmq docs I just found information how to send to remote queue but not how to receive. May be this isnt intended? I tried this code. But that didnt work.…
-1
votes
1 answer

Connection failing between Raspberry Pi and Mac

I have the following a) a rabbitmq-server and Pika installed on a Mac Yosrmite machine. I have a rabbutmq.config /usr/local/etc/rabbitmq/rabbitmq.config that I have the statement: {loopback_users, []} b) On the raspberry pi I have pika installed. I…
ArnoldB
  • 11
  • 4
-1
votes
1 answer

Python pikascript.py fails from command prompt

I have a script in python which is used to connect to RabbitMQ server and consumes messages. When i tried to run the script from command prompt as "./pikascript.py" i am getting the proper output but the same script when i try to execute as "python…
Madhuri
  • 101
  • 1
  • 5
  • 11
-2
votes
1 answer

AccessDeniedError while trying connect to remote RabbitMQ server

I'am trying to connect two hosts with RabbitMQ & python pika. Here is worker: #!/usr/bin/env python import pika, time NEW_TASK_HOST_IP = '192.168.0.2' credentials = pika.PlainCredentials('login-to-remote', 'pass') connection =…
Kirill
  • 3
  • 8
1 2 3
44
45