Why this error appeared "No module named fsspec " and before it was working well
Asked Answered
C

2

6

I am using pandas to read from gcs buckets and after making the required transformation and want to save it as parquet i got this error No module named fsspec, I solved it by just installing fsspec,gcsfs libraries but I just want to know why this error appeared and before it was running well.

I installed two libraries (fsspec,gcsfs) and works well but I want to know what the reason behind this error

Coulson answered 8/12, 2022 at 14:0 Comment(1)
I use pandas to make transform for some files and after that, I save the final file at Gcs Bucket. the code was working well but unfortunately at a day the pipeline is failed and need to install two libraries (fsspec,gcsfs), I installed them and it became works well but I don't know what exactly happened to need these libraries and it was working well before.Coulson
B
2

I had to install too

pip3 install fsspec gcsfs

I know it is already in the answer but this is what helped me.

I suppose that under the hood, when Pandas is interacting with GCS, requires these 2 libraries to interact with this service.

Brenda answered 23/11, 2023 at 13:46 Comment(0)
T
0

My case was running this: pd.read_csv('c://data.csv') in Windows10

My pandas version is: 2.2.2, python version is: 3.10.7

Look at the path string, two forward slash (//) instead of backslash (\\) in the path caused this error. Remove '//' will eliminate the Errors:

ModuleNotFoundError: No module named 'fsspec';

ImportError: Missing optional dependency 'fsspec'. Use pip or conda to install fsspec. Hope this still helps someone. Thanks!

Tai answered 5/9, 2024 at 19:26 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.