You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
To install, just do pip install redis>=4.2.0rc1. The code is almost the exact same. You will just need to import like so: from redis import asyncio as aioredis
This way you don't have to change all your code, just the imports.
To install, just do pip install redis>=4.2.0rc1. The code is almost the exact same. You will just need to import like so: from redis import asyncio as aioredis
This way you don't have to change all your code, just the imports.
Thanks, that worked!
Had the described problem because of fastapi-mail dependency.
Added redis>=4.2.0rc1 to requirements.txt.
Also, created aioredis.py in app's root folder containing from redis.asyncio import *
Describe the bug
When trying to import
aioredis
in Python 3.11 an error is raisedTo Reproduce
1- use python 3.11
2- try to import aioredis
3- this error is raised:
Expected behavior
it should import correctly without errors. I think the problem is in aioredis/exceptions.py#L14
The
asyncio.TimeoutError
is inheriting frombuiltins.TimeoutError
and they are both used as base classes which python doesn't like.Logs/tracebacks
Python Version
aioredis Version
Additional context
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: