Skip to content
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.

Library not works with Python 3.11 #1409

Open
qarmin opened this issue Aug 29, 2022 · 3 comments
Open

Library not works with Python 3.11 #1409

qarmin opened this issue Aug 29, 2022 · 3 comments
Labels

Comments

@qarmin
Copy link

qarmin commented Aug 29, 2022

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
@qarmin qarmin added the bug label Aug 29, 2022
@leftys
Copy link

leftys commented Sep 9, 2022

I can confirm the same behavior happened to me.

@leftys
Copy link

leftys commented Sep 15, 2022

Just noticed aioredis is no longer supported and replaced by redis library.

@Ericwonne
Copy link

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?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants