https://flyte.org logo
#ask-the-community
Title
# ask-the-community
a

Albert Wibowo

06/13/2023, 9:52 AM
Hi all, I seem to have the following error when running flyte remotely. Anyone has encountered this before?
Copy code
Matplotlib created a temporary config/cache directory at /tmp/matplotlib-dqrfqnc3 because the default path (/home/flytekit/.config/matplotlib) is not a writable directory; it is highly recommended to set the MPLCONFIGDIR environment variable to a writable directory, in particular to speed up the import of Matplotlib and to better support multiprocessing.
My flyte workflow is quite simple and is as follow:
Copy code
@task()
def get_data() -> pd.DataFrame:
    data_dict = load_breast_cancer(as_frame=True)
    print(data_dict['data'].head())
    return data_dict['data']

@task()
def clean_data_pre_split(data:pd.DataFrame) -> pd.DataFrame:

    return data

@workflow()
def training_workflow():
    data  = get_data()
    data = clean_data_pre_split(data=data)
    return
j

Jay Ganbat

06/13/2023, 3:44 PM
I dont think Matplotlib one is the issue, i have seen that before in my workflows and it still runs fine. can you look at the flyte console
29 Views