https://flyte.org logo
#announcements
Title
# announcements
s

SeungTaeKim

06/21/2022, 5:39 AM
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?
p

Prafulla Mahindrakar

06/21/2022, 5:53 AM
Hi @SeungTaeKim 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
k

Kevin Su

06/21/2022, 9:09 AM
@SeungTaeKim 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
k

Ketan (kumare3)

06/22/2022, 1:12 AM
Ya this should default to using pickle
@SeungTaeKim did this work?
👍 1
s

SeungTaeKim

06/22/2022, 4:23 AM
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
k

Ketan (kumare3)

06/22/2022, 4:26 AM
thank you for updating this
32 Views