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

TypeError: duplicate base class TimeoutError in python3.11 #497

Closed
calmzhu opened this issue Sep 15, 2023 · 6 comments · Fixed by #498
Closed

TypeError: duplicate base class TimeoutError in python3.11 #497

calmzhu opened this issue Sep 15, 2023 · 6 comments · Fixed by #498
Labels
bug Something isn't working

Comments

@calmzhu
Copy link
Contributor

calmzhu commented Sep 15, 2023

Describe the bug
opal-server run cannnot start in python 3.11

git clone https://github.com/permitio/opal.git
cd opal
python3.11 -m venv venv
source venv/bin/activate
make install-server-from-src
opal-server run
image

This is caused by aioredis (aio-libs-abandoned/aioredis-py#1409), and aioredis is archived since redis-py already include it.

@calmzhu calmzhu added the bug Something isn't working label Sep 15, 2023
@orweis
Copy link
Contributor

orweis commented Sep 15, 2023

Hi @calmzhu thanks for reporting - we'll have the team take a look.

CC: @asafc , @roekatz

@calmzhu
Copy link
Contributor Author

calmzhu commented Sep 17, 2023

can you review this #498

@brunolnetto
Copy link

brunolnetto commented Jul 11, 2024

What is the outcome to this issue? I got the same issue as you got on Opal.

@orweis
Copy link
Contributor

orweis commented Jul 11, 2024

Hi @roekatz do you have more details here in response

@brunolnetto
Copy link

I ended up just installing package redis as suggested on archived repository and changed my imports to from redis import asyncio as aioredis. Thanks!

@timvw
Copy link

timvw commented Sep 13, 2024

These days (hiredis==3.0.0, redis==5.0.8) it's as simple as:

import redis
creds_provider = redis.UsernamePasswordCredentialProvider("default", "redis_password")

import redis.asyncio as redis
r = redis.Redis(host='localhost', port=6379, decode_responses=True, credential_provider=creds_provider)

await r.ping()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants