Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

from redis.asyncio import Redis reported error #11

Closed
jones-so opened this issue Jul 20, 2023 · 4 comments
Closed

from redis.asyncio import Redis reported error #11

jones-so opened this issue Jul 20, 2023 · 4 comments

Comments

@jones-so
Copy link

from redis.asyncio import Redis
ModuleNotFoundError: No module named 'redis.asyncio'; 'redis' is not a package

Hi,Brother, how to solve this error reported by redis.

@zhanymkanov
Copy link
Owner

Probably, you have an old version of aioredis, whereas the package uses redis package.

Check out the #10

@jones-so
Copy link
Author

jones-so commented Aug 27, 2023 via email

@BabakAmini
Copy link

@zhanymkanov, this is due to a local file called redis.py that exists at the same path but lacks the asyncio module. Changing its name to something else fixes the problem.

@jones-so
Copy link
Author

jones-so commented May 8, 2024 via email

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

No branches or pull requests

3 participants