<#600 FlyteConsole - ValueError: Generic Type typi...
# flyte-github
a
#600 FlyteConsole - ValueError: Generic Type typing.Union not supported currently in Flytekit Issue created by sakthi-tech4th Hi, I'm trying to launch a workflow in the FlyteConsole (Sandbox Environment in a Windows Machine) and I'm getting the above mentioned error for a task that accept pandas DataFrames (2 data frames) and returns a DataFrame.
Copy code
[1/1] currentAttempt done. Last Error: USER::Pod failed. No message received from kubernetes.

[adbrq7s7x2kbwln2k5df-n0-0] terminated with exit code (1). Reason [Error]. Message:  
a_worflows.py", line 211, in  
def process_data_frames(lc_df: pd.DataFrame=None, data_frame: pd.DataFrame=None)->pd.DataFrame:  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/task.py", line 209, in task  
return wrapper(_task_function)  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/task.py", line 193, in wrapper  
task_instance = TaskPlugins.find_pythontask_plugin(type(task_config))(  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/tracker.py", line 30, in call  
o = super(InstanceTrackingMeta, cls).call(*args, **kwargs)  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/python_function_task.py", line 118, in init  
super().init(  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/python_auto_container.py", line 72, in init  
super().init(  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/base_task.py", line 389, in init  
interface=transform_interface_to_typed_interface(interface),  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/interface.py", line 210, in transform_interface_to_typed_interface  
inputs_map = transform_variable_map(interface.inputs, input_descriptions)  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/interface.py", line 318, in transform_variable_map  
res[k] = transform_type(v, descriptions.get(k, k))  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/interface.py", line 332, in transform_type  
return _interface_models.Variable(type=TypeEngine.to_literal_type(x), description=description)  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/type_engine.py", line 611, in to_literal_type  
transformer = cls.get_transformer(python_type)  
File "/usr/local/lib/python3.9/site-packages/flytekit/core/type_engine.py", line 584, in get_transformer  
raise ValueError(f"Generic Type {python_type.origin} not supported currently in Flytekit.")  
ValueError: Generic Type typing.Union not supported currently in Flytekit.
the data frames has columns with strings, consequently the dtypes for these columns were object. Would it be possible, for some one to let me know what is the problem or if I'm missing something? Of if this because, I'm running it in a Windows machine? Thanks and Regards flyteorg/flyteconsole