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

module 'aioredis' has no attribute 'create_redis_pool' #1

Open
yashenkoxciv opened this issue Aug 4, 2021 · 1 comment
Open

module 'aioredis' has no attribute 'create_redis_pool' #1

yashenkoxciv opened this issue Aug 4, 2021 · 1 comment

Comments

@yashenkoxciv
Copy link

Hello folks!
You did a great job and your book is awesome.

I tried to run main.py with my ID but get this error:

Traceback (most recent call last):
  File "main.py", line 67, in <module>
    loop.run_until_complete(main(instance_name=args.name, force=args.force, 
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "main.py", line 24, in main
    pool = await aioredis.create_redis_pool(address, db=db, password=password,
AttributeError: module 'aioredis' has no attribute 'create_redis_pool'

I did all preparations: ran local redis server and installed requirements.
Probably this happened because there is no certain version of aioredis in requirements.txt.

@yashenkoxciv
Copy link
Author

Ok. To fix this there should be specific version of aioredis. I get it with 1.3.0.
So requrements.txt content should be:
aioredis==1.3.0

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

1 participant