0

I've installed kombu. but I get the error defined in the title. my task is to send a message to a rabbitmq queue, amqp 1.0

below is the code

from kombu import Connection


with Connection('amqp url') as conn:
    tasks_queue =  conn.SimpleQueue('queuename')
    message ={json_message}
    control_queue.put(message)
    control_queue.close()
Bharath Pabba
  • 1,725
  • 5
  • 16
  • 24
  • always put full error message (starting at word "Traceback") in question (not in comments) as text (not screenshot, not link to external portal). There are other useful information. – furas Dec 02 '21 at 06:33
  • 1
    maybe you have own file or folder with name `kombu` and how it imports your file `kombu` and it can't find `Connection` in your file. But you didn't show FULL error message so we can't confirm it. – furas Dec 02 '21 at 06:35
  • on my computer it import `Connection` without problem. – furas Dec 02 '21 at 06:36
  • Thanks @furas. my file name was same.. – Bharath Pabba Dec 02 '21 at 07:51
  • Can you help me answer this question: https://stackoverflow.com/questions/70195831/unable-to-get-a-response-from-kombu – Bharath Pabba Dec 02 '21 at 07:54

0 Answers0