Pydantic: Argument 'bases' has incorrect type
bji219 opened this issue · 2 comments
bji219 commented
Bug report
Traceback (most recent call last):
File "Send_Data.py", line 2, in <module>
from supabase import create_client, Client
File "/home/pi/.local/share/virtualenvs/PlantDatabase-xla7VizZ/lib/python3.7/site-packages/supabase/__init__.py", line 1, in <module>
from postgrest import APIError as PostgrestAPIError
File "/home/pi/.local/share/virtualenvs/PlantDatabase-xla7VizZ/lib/python3.7/site-packages/postgrest/__init__.py", line 7, in <module>
from ._async.client import AsyncPostgrestClient
File "/home/pi/.local/share/virtualenvs/PlantDatabase-xla7VizZ/lib/python3.7/site-packages/postgrest/_async/client.py", line 15, in <module>
from .request_builder import AsyncFilterRequestBuilder, AsyncRequestBuilder
File "/home/pi/.local/share/virtualenvs/PlantDatabase-xla7VizZ/lib/python3.7/site-packages/postgrest/_async/request_builder.py", line 8, in <module>
from ..base_request_builder import (
File "/home/pi/.local/share/virtualenvs/PlantDatabase-xla7VizZ/lib/python3.7/site-packages/postgrest/base_request_builder.py", line 108, in <module>
class APIResponse(BaseModel):
File "pydantic/main.py", line 186, in pydantic.main.ModelMetaclass.__new__
TypeError: Argument 'bases' has incorrect type (expected list, got tuple)
Describe the bug
Trying to run supabase python client and running into a compatibility error with pydantic on import,
Here is my virtual environment using pipenv:
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"
[packages]
board = "*"
adafruit-seesaw = "*"
adafruit-blinka = "*"
adafruit-circuitpython-seesaw = "*"
requests = "*"
supabase = "*"
pydantic = "*"
postgrest = "*"
[dev-packages]
[requires]
python_version = "3.7"
To Reproduce
Install packages same as in above pipfile, try importing supabase,
System information
Running python 3.7 on a Raspberry Pi 3B+ (Linux, raspbian)
bji219 commented
Posted in wrong chat
J0 commented
Hm I'll look into this later if it's still an issue. Lmk!