Hi Community! Has anyone run into issues with pand...
# ask-the-community
a
Hi Community! Has anyone run into issues with pandas DataFrames when working with them as task output types? I generally have issues running them locally on flytekit 1.10 MWE:
Copy code
import pandas as pd
from flytekit import workflow, task


@task
def gen_df()-> pd.DataFrame:
    df = pd.DataFrame({"a":[1], "b":[2]})
    return df

@workflow()
def wf() -> pd.DataFrame:
    df = gen_df()
    return df
Ends up having these errors (in ๐Ÿงต)
Copy code
โ”‚                                                                                                                                                                                                                                          โ”‚
โ”‚ โฑ  960 โ”‚   โ”‚   โ”‚   โ”‚   sink = self.file_handle = filesystem.open_output_stream(                                                                                                                                                          โ”‚
โ”‚                                                                                                                                                                                                                                          โ”‚
โ”‚ in pyarrow._fs.FileSystem.open_output_stream:868                                                                                                                                                                                         โ”‚
โ”‚                                                                                                                                                                                                                                          โ”‚
โ”‚ in pyarrow.lib.pyarrow_internal_check_status:144                                                                                                                                                                                         โ”‚
โ”‚                                                                                                                                                                                                                                          โ”‚
โ”‚ in pyarrow.lib.check_status:113                                                                                                                                                                                                          โ”‚
โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ
FileNotFoundError: [Errno 2] Failed to open local file '/tmp/flyte-o_211y4n/raw/7657bf429e60c00a271217d651979014/00000'. Detail: [errno 2] No such file or directory
where the path created by the context manager doenst exist. This is encountered when running locally
k
got the same error, looking
k
is this the
0000
added by yee?
k
It seems to have been fixed in the master branch
s
It likely relates to fsspec. I suggest downgrading your fsspec to < 2023.10.0. https://github.com/flyteorg/flyte/issues/4326