Hi, I'd like to ask a question of flyte type. I a...
# announcements
g
Hi, I'd like to ask a question of flyte type. I am using custom class module, Kirin with flyte. Flyte does not return any type error before when I run sample code of flyte, but I have no idea why flyte make this error.
Copy code
ValueError: Type <class 'kirin.api.Kirin'> not supported currently in Flytekit. Please register a new transformer

The above exception was the direct cause of the following exception:
would you give any idea to solve this happening?
i
Hi @gifted-house-14547 can you check these docs https://docs.flyte.org/projects/flytekit/en/latest/design/authoring.html#design-authoring and sections around typetransformers that would make flyte understand the new types that you want to use
g
@gifted-house-14547 Could you share code snippet? Flytekit should be able to convert unknown type to pickle. https://docs.flyte.org/projects/cookbook/en/latest/auto/core/type_system/flyte_pickle.html#sphx-glr-auto-core-type-system-flyte-pickle-py
f
Ya this should default to using pickle
@gifted-house-14547 did this work?
👍 1
g
I have tried to use
@dataclass
&
@dataclass_json
on the custom class, and unified the return type with this custom class, then it worked.
👍 2
f
thank you for updating this
170 Views