Comments (4)
Can you mention python version, dependencies, and stacktrace?
from fakeredis-py.
python version 3.9 on a Raspberry Pi Zero
Version 1.8
src/status.py:16: in init
self.redis = redis.Redis(decode_responses=True)
self = <[AttributeError("'FakeRedis' object has no attribute 'connection_pool'") raised in repr()] FakeRedis object at 0x751f8d48>, server = None, connected = True, args = ()
kwargs = {'decode_responses': True}
default_args = odict_values([<Parameter "self">, <Parameter "*args">, <Parameter "server=None">, <Parameter "connected=True">, <Parameter "**kwargs">])
kwds = {'connected': True, 'decode_responses': True, 'server': None}
def __init__(self, *args, server=None, connected=True, **kwargs):
# Interpret the positional and keyword arguments according to the
# version of redis in use.
default_args = inspect.signature(redis.Redis.__init__).parameters.values()
kwds = {p.name: p.default for p in default_args if p.default != inspect._empty}
kwds.update(kwargs)
# bound = _ORIG_SIG.bind(*args, **params)
# kwds = bound.arguments['kwds']
if not kwds['connection_pool']:
E KeyError: 'connection_pool'
../../../lib/python3.9/site-packages/fakeredis/_server.py:2825: KeyError
from fakeredis-py.
Update to latest fakeredis version.
from fakeredis-py.
Thanks
from fakeredis-py.
Related Issues (20)
- Implement support for `TOPK.RESERVE` (topk command) HOT 9
- Implement support for `TOPK.ADD` (topk command) HOT 1
- Implement support for `TOPK.INCRBY` (topk command)
- Implement support for `TOPK.QUERY` (topk command)
- Implement support for `TOPK.COUNT` (topk command)
- Implement support for `TOPK.LIST` (topk command)
- Implement support for `TOPK.INFO` (topk command)
- Using a blocking XREAD on an empty stream returns a list instead of blocking HOT 1
- EXAT option does not work HOT 1
- The documentation for adding `FakeRedis` as a cache backend in Django is outdated.
- Add support for specifying specific Lua runtime version HOT 12
- Support for floating point timeout values HOT 1
- FastAPI integration Async Redis session dependency override, error during test RuntimeError: <Queue > is bound to a different event loop HOT 18
- FakeAsyncRedis stores state when clear instance expected. HOT 4
- xinfo_stream returns data for a stream that doesn't exist HOT 1
- Data persistence for sync and async clients is surprisingly different
- `FakeRedis.smembers()` reads data added to other instances (in version 2.21.2) HOT 4
- Persistence between across pytest cases difference between 2.21.1 and 2.21.2 HOT 10
- Type hint for version doesn't permit what the docs say to do HOT 3
- Add better support for LUA scripts HOT 25
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fakeredis-py.