Creating a column to store binary data (Buffer, Byte Array or BLOB) #609
Unanswered
gsusrafael
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
First Check
Commit to Help
Example Code
Description
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.8
Python Version
Python 3.10.11
Additional Context
Traceback (most recent call last):
File "/home/jesus/Workspace/WebApp/portal-pass-backend/main.py", line 18, in
from api.endpoints import example, cliente, residencial
File "/home/jesus/Workspace/WebApp/portal-pass-backend/api/endpoints/residencial.py", line 14, in
from api.models.residencial import (
File "/home/jesus/Workspace/WebApp/portal-pass-backend/api/models/residencial.py", line 13, in
class ResidencialBase(SQLModel):
File "/home/jesus/.virtualenvs/portal-pass/lib/python3.10/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 197, in pydantic.main.ModelMetaclass.new
File "pydantic/fields.py", line 506, in pydantic.fields.ModelField.infer
File "pydantic/fields.py", line 436, in pydantic.fields.ModelField.init
File "pydantic/fields.py", line 557, in pydantic.fields.ModelField.prepare
File "pydantic/fields.py", line 831, in pydantic.fields.ModelField.populate_validators
File "pydantic/validators.py", line 765, in find_validators
RuntimeError: no validator found for <class 'collections.abc.ByteString'>, see
arbitrary_types_allowed
in ConfigBeta Was this translation helpful? Give feedback.
All reactions