First Check
Commit to Help
Example Code
from sqlmodel import SQLModel
class UserBase(SQLModel):
first_name: str
last_name: str
class UserSchema(UserBase):
class Config:
underscore_attrs_are_private = True
if __name__ == "__main__":
print("Hello world!")
Description
File "c:\Users\dongf\Source\Python\test\main.py", line 9, in
class UserSchema(UserBase):
File "C:\Users\dongf\Source\Python\test\venv\Lib\site-packages\sqlmodel\main.py", line 272, in new
new_cls = super().new(cls, name, bases, dict_used, **config_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic\main.py", line 283, in pydantic.main.ModelMetaclass.new
File "", line 106, in new
TypeError: weakref slot disallowed: either we already got one, or itemsize != 0
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.11.0, Python 3.9.0
Additional Context
No response
First Check
Commit to Help
Example Code
Description
File "c:\Users\dongf\Source\Python\test\main.py", line 9, in
class UserSchema(UserBase):
File "C:\Users\dongf\Source\Python\test\venv\Lib\site-packages\sqlmodel\main.py", line 272, in new
new_cls = super().new(cls, name, bases, dict_used, **config_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "pydantic\main.py", line 283, in pydantic.main.ModelMetaclass.new
File "", line 106, in new
TypeError: weakref slot disallowed: either we already got one, or itemsize != 0
Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.11.0, Python 3.9.0
Additional Context
No response