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
I try to launch demo/database_auth example but I get an error:
Traceback (most recent call last):
File "demo/database_auth/main.py", line 9, in <module>
from aioredis import create_pool
ImportError: cannot import name 'create_pool' from 'aioredis' (/home/flow/.local/lib/python3.8/site-packages/aioredis/__init__.py)
I've tried changing create_pool to create_redis_pool in the example code, like in aiohttp_demos, but it doesn't help. I've also tried versions 2.0.0 and 2.0.1 of aioredis and there was no use. I've even tried installing aioredis v 1.3.0 but RuntimeError("aioredis<2.0 is not supported") was raised.
System is Ubuntu 20.04 and python is 3.8.10
One weird moment for me is aioredis that is being installed in /home/flow/.local/lib/python3.8/site-packages/ though other libraries can be found in venv folder, e.g. /home/flow/aiohttp-security-master/venv/lib/python3.8/site-packages or /home/flow/aiohttp-security-master/venv/lib64/python3.8/site-packages...
The text was updated successfully, but these errors were encountered:
The demos (both here and the demos repo) have not been updated yet to work with aioredis 2 and aiohttp-session 2.11. Updating this repo is one of the next tasks on my list. Try looking at the examples in aiohttp-session or just read the documentation for aioredis in the meantime.
I try to launch
demo/database_auth
example but I get an error:I've tried changing
create_pool
tocreate_redis_pool
in the example code, like in aiohttp_demos, but it doesn't help. I've also tried versions 2.0.0 and 2.0.1 of aioredis and there was no use. I've even tried installing aioredis v 1.3.0 butRuntimeError("aioredis<2.0 is not supported")
was raised.System is Ubuntu 20.04 and python is 3.8.10
One weird moment for me is aioredis that is being installed in
/home/flow/.local/lib/python3.8/site-packages/
though other libraries can be found in venv folder, e.g./home/flow/aiohttp-security-master/venv/lib/python3.8/site-packages
or/home/flow/aiohttp-security-master/venv/lib64/python3.8/site-packages
...The text was updated successfully, but these errors were encountered: