Library not works with Python 3.11
qarmin opened this issue · 3 comments
qarmin commented
Describe the bug
When running library with Python 3.11 I got this error:
class TimeoutError(asyncio.TimeoutError, builtins.TimeoutError, RedisError):
TypeError: duplicate base class TimeoutError
To Reproduce
Run library with python 3.11
Expected behavior
Properly working library
Logs/tracebacks
File "/home/rafal/app/main.py", line 9, in <module>
from app.common.connectors.redis import create_redis_pool
File "/home/rafal/app/common/connectors/redis/__init__.py", line 1, in <module>
import aioredis
File "/home/rafal/venv11/lib/python3.11/site-packages/aioredis/__init__.py", line 1, in <module>
from aioredis.client import Redis, StrictRedis
File "/home/rafal/venv11/lib/python3.11/site-packages/aioredis/client.py", line 32, in <module>
from aioredis.connection import (
File "/home/rafal/venv11/lib/python3.11/site-packages/aioredis/connection.py", line 33, in <module>
from .exceptions import (
File "/home/rafal/venv11/lib/python3.11/site-packages/aioredis/exceptions.py", line 14, in <module>
class TimeoutError(asyncio.TimeoutError, builtins.TimeoutError, RedisError):
TypeError: duplicate base class TimeoutError
### Python Version
```console
$ python --version
Python 3.11.0rc1
aioredis Version
$ python -m pip show aioredis
Name: aioredis
Version: 2.0.1
Summary: asyncio (PEP 3156) Redis support
Home-page: https://github.com/aio-libs/aioredis-py
Author:
Author-email:
License: MIT
Location: /home/rafal/Projekty/ALL/perimeter-core/venv11/lib/python3.11/site-packages
Requires: async-timeout, typing-extensions
Required-by:
### Additional context
_No response_
### Code of Conduct
- [X] I agree to follow the aio-libs Code of Conduct
leftys commented
I can confirm the same behavior happened to me.
leftys commented
Just noticed aioredis is no longer supported and replaced by redis library.
Ericwonne commented
Just noticed aioredis is no longer supported and replaced by redis library.
does that mean it is not recommended to use aioredis in python3.11 project anymore?