Closed dpills closed 1 month ago
Hi @dpills thanks,
quick question, are you using SupabaseRealtimeClient
somehow? Or is just facing issue with the wrong import from client lib?
@grdsdev Nope, I am not importing or using the realtime client in this application and it is throwing that error on startup. From the stack trace, it seems like this occurs when importing ClientOptions
to instantiate the client.
This is the config I am using.
from supabase import create_client
from supabase.client import ClientOptions
from app.config import settings
supabase = create_client(
settings.supabase_url,
settings.supabase_key,
options=ClientOptions(
postgrest_client_timeout=10,
storage_client_timeout=10,
schema="public",
),
)
Got it, pushing a fix ASAP
@grdsdev Awesome, thanks for the quick fix and I really appreciate all the work on this Supabase client. 🙂
Bug report
Describe the bug
Running supabase 2.7.0 raises a
ModuleNotFoundError
due to not removing the SupabaseRealtimeClient import.To Reproduce
Run a python script utilizing supabase 2.7.0.
Bad Import
https://github.com/supabase/supabase-py/blob/main/supabase/client.py#L19
Removed from
lib
https://github.com/supabase/supabase-py/blob/main/supabase/lib/__init__.py
https://github.com/supabase/supabase-py/commit/08496eb4c1c203d2806fc44753f3bddc4b463db0#diff-27f9014923633cc0c1a17e708523fcf210a925174ae73578db53383ce6f95cd9
System information
Traceback