Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

AttributeError: 'ConnectionsPool' object has no attribute 'script_load' #10

Open
Zhou-Tx opened this issue May 29, 2021 · 0 comments
Open

Comments

@Zhou-Tx
Copy link

Zhou-Tx commented May 29, 2021

AttributeError: 'ConnectionsPool' object has no attribute 'script_load'
code of the stacktrace
async with RedisLock(redis_pool,key="foobar",timeout=30,wait_timeout=30) as lock: # in my FooBar.py
if await self.acquire(self.timeout, self.wait_timeout): # line 72, in aenter, in locks.py
(await self.acquire_script()), # line 89, in acquire, in locks.py
self._acquire_script = await self.pool_or_conn.script_load(ACQUIRE_SCRIPT) # line 53, in acquire_script, in locks.py

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant