Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"module 'aioredis' has no attribute 'errors'" #100

Closed
vshulgin opened this issue Sep 18, 2021 · 3 comments
Closed

"module 'aioredis' has no attribute 'errors'" #100

vshulgin opened this issue Sep 18, 2021 · 3 comments

Comments

@vshulgin
Copy link

Hello team,

I tried to use this lock implementation, and got problem
"module 'aioredis' has no attribute 'errors'"

in the code

        except aioredis.errors.ReplyError as exc:  # script fault
            if exc.args[0].startswith('NOSCRIPT'):
                return await self.set_lock(resource, lock_identifier, lock_timeout, register_scripts=True)

from file aioredlock/redis.py

Indeed, I don't see errors module in aioredis, what I missed?

Versions:

aioredlock = "^0.7.2"
aioredis = "^2.0.0"
@vshulgin
Copy link
Author

Well, I see, PR 99 is not yet merged, when we might to expect to get it done?
Thanks

@gtmanfred
Copy link
Collaborator

aioredis implements its own version of its lock, so I am not inclined to make aioredlock support both aioredis < 2.0 and >= 2.0. I will update the requirements to just pin aioredis to < 2.0

@gtmanfred
Copy link
Collaborator

Closed in favor of #97

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

No branches or pull requests

2 participants