Open liquiddandruff opened 3 years ago
add lib aioredis==1.3.1 to requirments.txt
I get a similar error:
>>> from aiocache import Cache
ujson module not found, using json
>>> Cache(Cache.MEMCACHED)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/user/slurm/py39/lib/python3.9/site-packages/aiocache/factory.py", line 65, in __new__
assert issubclass(cache_class, BaseCache)
TypeError: issubclass() arg 1 must be a class
>>> Cache(Cache.MEMCACHED)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/user/slurm/py39/lib/python3.9/site-packages/aiocache/factory.py", line 65, in __new__
assert issubclass(cache_class, BaseCache)
TypeError: issubclass() arg 1 must be a class
In this case, installing aiomcache
helped:
pip install aiomcache
Although the README specifies other package names https://github.com/aio-libs/aiocache#id2
If someone wants to add a None
check and produce a better error, that makes it clear you need to install the required libraries, that would be great.
In trying https://stackoverflow.com/questions/65686318/sharing-python-objects-across-multiple-workers I've encountered this exception.
Seems hit same issue here: https://github.com/samuelcolvin/pydantic/issues/545#issuecomment-595983173
From docker stderr:
REPL:
Packages:
EDIT: Wasn't able to resolve the issue, ended up using
aioredis
instead.