mosquito / aio-pika

AMQP 0.9 client designed for asyncio and humans.
https://aio-pika.readthedocs.org/
Apache License 2.0
1.18k stars 186 forks source link

python 3.12 compatibility #602

Closed Loki-Afro closed 3 months ago

Loki-Afro commented 7 months ago

hey it looks like that aio-pika is not compatible with python 3.12 and i haven't found an issue yet.

i think it is the same as described here https://github.com/aio-libs/aiohttp/issues/7739

Loki-Afro commented 6 months ago

hi @mosquito since you created an pr already (thanks for that!) i can assume that this is indeed an issue in this repo, correct? :)

mosquito commented 6 months ago

@Loki-Afro I tried making a pipline for 3.12 but in one of the tests something goes wrong, maybe it's a bug or maybe it's just a test problem. I don't have time to figure it out right now. But I think 3.12 should work as it should, it just takes some effort to get it fully compliant.

mdczaplicki commented 5 months ago

3.12 doesn't work for me. I'm unable to create a channel from an active connection with RabbitMQ.
The channel says Not initialized channel and there is a traceback visible in PyCharm debugger, but I cannot get the whole output (probably a PyCharm bug).

image


It works in production environment, it doesn't work in tests.

Loki-Afro commented 4 months ago

@mosquito not sure why, but with a fresh python image docker.io/python:3.12-alpine it builds just fine now ... how was this error resolved?

maybe you can try and re-trigger your workflow in your pr and it will work just fine :D