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

ImportError: cannot import name 'SyncGoTrueClient' from 'gotrue' #336

Closed
McLamy opened this issue Oct 1, 2023 · 5 comments
Closed

ImportError: cannot import name 'SyncGoTrueClient' from 'gotrue' #336

McLamy opened this issue Oct 1, 2023 · 5 comments
Labels
bug Something isn't working

Comments

@McLamy
Copy link

McLamy commented Oct 1, 2023

Hey everyone,

since a couple of days I'm facing the mentioned issue in my python script.
The import comes from "from supabase import create_client, Client" and is implemented like the official supabase docs suggest:

url: str = os.environ.get("SUPABASE_URL")
key: str = os.environ.get("SUPABASE_KEY")
supabase: Client = create_client(url, key)

It would be great if someone can give me a hint how to fix this. Many thanks in advance!

@McLamy McLamy added the bug Something isn't working label Oct 1, 2023
@McLamy
Copy link
Author

McLamy commented Oct 2, 2023

image

@J0
Copy link
Collaborator

J0 commented Oct 3, 2023

Hey @McLamy,

Thanks for the query. Quick check: what version of Supabase Python are you using?
(e.g. what do you get when you do supabase.__version__)

@McLamy
Copy link
Author

McLamy commented Oct 4, 2023

Hey @J0,

thanks for getting back. The version is 1.1.1.
Your comment gave me the idea to check the modules with "pip check" which shows some incompatible dependencies. I wasn't able to find an arrangement where everything works flawlessly so I decided to delete all false modules and reinstall them and now its working again 🎉
Still wondering how this could happened but turning the PC off and on again does the job 9/10 times 😛

Thanks again for getting back and furthermore for your outstanding contributions!

@J0
Copy link
Collaborator

J0 commented Oct 26, 2023

Thanks @McLamy,
Glad the issue was resolved. Going to close for now but let us know if there are further issues 🙏

@J0 J0 closed this as completed Oct 26, 2023
@ErikEsins
Copy link

ErikEsins commented Jan 29, 2024

As of 29.01.2024 you need to install Version 1.3 of gotrue for supabase to work consistently...

Use the following Command to check if you have gotrue installed in your venv and its version:
pip list

Then if its not 1.3 uninstall and reinstall it as 1.3 like so:
pip uninstall gotrue
y
pip install gotrue==1.3

Keep in mind that as Supabase changes this comment too will become depricated and you will have to install newer versions. To check what version you can use type:
pip check

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

No branches or pull requests

3 participants