Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.python > #16235
| Path | csiph.com!news.mixmin.net!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Alexandre Detiste <alexandre.detiste@gmail.com> |
| Newsgroups | linux.debian.bugs.dist, linux.debian.maint.python |
| Subject | Bug#1079377: graypy: please replace usage of python3-amqplib with python3-amqp |
| Date | Thu, 22 Aug 2024 21:20:02 +0200 |
| Message-ID | <JelvI-6QNp-7@gated-at.bofh.it> (permalink) |
| X-Mailbox-Line | From debian-bugs-dist-request@lists.debian.org Thu Aug 22 19:15:11 2024 |
| Old-Return-Path | <debbugs@buxtehude.debian.org> |
| X-Spam-Flag | NO |
| X-Spam-Score | -0.558 |
| Reply-To | Alexandre Detiste <alexandre.detiste@gmail.com>, 1079377@bugs.debian.org |
| Resent-To | debian-bugs-dist@lists.debian.org |
| Resent-Cc | debian-python@lists.debian.org, Benjamin Drung <benjamin.drung@cloud.ionos.com> |
| X-Debian-Pr-Message | report 1079377 |
| X-Debian-Pr-Package | src:graypy |
| X-Debian-Pr-Source | graypy |
| X-Gm-Message-State | AOJu0YyOQz+wQc+NZw9oG+TfAbFWCc3acKVM/ABlWpjT3wWkXQbBg4kP 8Gq0nsdLits2TZNE5v85sAW6xail8IS0M6ATa3o0QXoER+/uyEyn2e+cPA== |
| X-Google-SMTP-Source | AGHT+IHEH5ofgl7N3QzZox165QC6CAHYCFqLSsiSUESKoOrFzORvx6je47xKDTrtpD3u1lpYS411pw== |
| X-Received | by 2002:a5d:4586:0:b0:368:3b21:6643 with SMTP id ffacd0b85a97d-372fd70fc4emr4413329f8f.48.1724353893694; Thu, 22 Aug 2024 12:11:33 -0700 (PDT) |
| X-Google-Original-From | Alexandre Detiste <tchet@debian.org> |
| Content-Type | text/plain; charset="us-ascii" |
| MIME-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| X-Mailer | reportbug 13.0.1 |
| X-Debian-Message | from BTS |
| X-Mailing-List | <debian-bugs-dist@lists.debian.org> archive/latest/1854117 |
| List-ID | <debian-bugs-dist.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-bugs-dist/> |
| Approved | robomod@news.nic.it |
| Lines | 69 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Date | Thu, 22 Aug 2024 21:11:32 +0200 |
| X-Original-Message-ID | <172435389283.280616.16136473422909397604.reportbug@quieter> |
| Xref | csiph.com linux.debian.bugs.dist:1209619 linux.debian.maint.python:16235 |
Cross-posted to 2 groups.
Show key headers only | View raw
Source: graypy
Version: 2.1.0-1
Severity: important
X-Debbugs-Cc: debian-python@lists.debian.org
Dear Maintainer,
graypy is the only (remaining ?) user of python3-amqplib which
is RC buggy and needs some 2to3 magic to be kept alive.
https://github.com/severb/graypy/pull/143/files
Please consider applying this upstream patch.
Greetings.
Alexandre
-----------
From 916cf0db7fb66ede18241bb54a3e3e77d4d02ecc Mon Sep 17 00:00:00 2001
From: "felix.gao" <felix.gao@unity.cn>
Date: Tue, 24 Oct 2023 12:16:59 +0800
Subject: [PATCH] Replace dependency amqplib with amqp
---
graypy/rabbitmq.py | 3 ++-
setup.py | 4 ++--
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/graypy/rabbitmq.py b/graypy/rabbitmq.py
index ea7be2cdf..2d03b24cf 100644
--- a/graypy/rabbitmq.py
+++ b/graypy/rabbitmq.py
@@ -8,7 +8,7 @@
from logging import Filter
from logging.handlers import SocketHandler
-from amqplib import client_0_8 as amqp # pylint: disable=import-error
+import amqp
from graypy.handler import BaseGELFHandler
@@ -98,6 +98,7 @@ def __init__(self, cn_args, timeout, exchange, exchange_type, routing_key):
self.exchange_type = exchange_type
self.routing_key = routing_key
self.connection = amqp.Connection(connection_timeout=timeout, **self.cn_args)
+ self.connection.connect()
self.channel = self.connection.channel()
self.channel.exchange_declare(
exchange=self.exchange,
diff --git a/setup.py b/setup.py
index 925dc12b7..38ba42bcb 100755
--- a/setup.py
+++ b/setup.py
@@ -80,10 +80,10 @@ def run_tests(self):
"pylint>=1.9.3,<2.0.0",
"mock>=2.0.0,<3.0.0",
"requests>=2.20.1,<3.0.0",
- "amqplib>=1.0.2,<2.0.0",
+ "amqp>=5.1.1",
],
extras_require={
- "amqp": ["amqplib==1.0.2"],
+ "amqp": ["amqp==5.1.1"],
"docs": [
"sphinx>=2.1.2,<3.0.0",
"sphinx_rtd_theme>=0.4.3,<1.0.0",
Back to linux.debian.maint.python | Previous | Next | Find similar
Bug#1079377: graypy: please replace usage of python3-amqplib with python3-amqp Alexandre Detiste <alexandre.detiste@gmail.com> - 2024-08-22 21:20 +0200
csiph-web