Giter Club home page Giter Club logo

Comments (4)

cunla avatar cunla commented on August 16, 2024

Can you mention python version, dependencies, and stacktrace?

from fakeredis-py.

PeteDouma avatar PeteDouma commented on August 16, 2024

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.

cunla avatar cunla commented on August 16, 2024

Update to latest fakeredis version.

from fakeredis-py.

PeteDouma avatar PeteDouma commented on August 16, 2024

Thanks

from fakeredis-py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.