Search code examples
python-3.xgoogle-cloud-platformgoogle-cloud-automl

AutoML colab notebook ImportError: Missing optional dependency 'gcsfs'


I'm running the AutoML notebook from https://github.com/GoogleCloudPlatform/python-docs-samples/blob/master/tables/automl/notebooks/purchase_prediction/purchase_prediction.ipynb

In Colab the following line:

table = pd.read_csv(nested_gcs_uri, low_memory=False)

fails with the error in the subject.

I've tried pip install gcsfs which reports Requirement already satisfied

Import gcsfs returns

ModuleNotFoundError: No module named 'gcsfs'

Solution

  • Provided Purchase Prediction with AutoML Tables notebook works perfectly on AI Platform Notebooks in GCP. Before running any command it's important to make sure that billing, AI Platform API, Compute Engine API, AutoML API are enabled in GCP project. For some reasons it throws an error while running in Colab environment. The bug has been already reported on Github by @Matt Evans.