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

pydntic error on importing supabase #517

Closed
Saatvik-droid opened this issue Aug 8, 2023 · 8 comments
Closed

pydntic error on importing supabase #517

Saatvik-droid opened this issue Aug 8, 2023 · 8 comments

Comments

@Saatvik-droid
Copy link

Saatvik-droid commented Aug 8, 2023

Describe the bug
If I import supabase as from supabase import create_client it leads to an import error for field_validator from pydantic.

To Reproduce
Steps to reproduce the behavior:

  1. Install supabase using conda.
  2. Import supabase.

Expected behavior
Import with no errors.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: linux
  • Version 1.0.3
@OsmnShkh
Copy link

OsmnShkh commented Aug 8, 2023

Also getting a Pydantic import error after installing Supabase.

@Rohianon
Copy link

@olirice,

I think this is the same issue I was facing.

I actually had installed a plethora of packages together and experienced this.

Here is the code I used.

!pip install langchain --quiet
!pip install openai --quiet
!pip install pdf2image --quiet
!pip install tiktoken --quiet
!pip install unstructured --quiet
!pip install supabase --quiet

And the error on installation.

image

@Saatvik-droid
Copy link
Author

Yep, I too have a dozen packages in the conda environment.

@Saatvik-droid
Copy link
Author

Saatvik-droid commented Aug 10, 2023

If I uninstall supabase and do a clean install of pydantic I can import field_validator without any errors but importing supabase raises an Import error for field_validator for pydantic.

@olirice
Copy link
Contributor

olirice commented Aug 10, 2023

Tracking at
supabase-community/postgrest-py#282

@olirice
Copy link
Contributor

olirice commented Aug 10, 2023

also here
supabase-community/auth-py#291

@J0
Copy link
Collaborator

J0 commented Sep 8, 2023

Hey team,

Going to close since the corresponding PRs have been merged but feel free to re-open if there are still issues.

Thanks!

@J0 J0 closed this as completed Sep 8, 2023
@JasonGross
Copy link

This issue is not fixed, supabase install works fine with pip but still does not work with conda. I created a test repo to demonstrate the issue in a clean environment on GitHub actions: https://github.com/JasonGross/bug-testing/actions/runs/6285807455/job/17068569212

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

6 participants