All Questions

Coding Bootstrapping

Any ideas why DigitalOcean functions keeps throwing ‘Make sure to install the ‘google-cloud-firestore’ module’?

Any ideas why DigitalOcean functions keeps throwing ‘Make sure to install the ‘google-cloud-firestore’ module’?

I want to create firestore documents from a DigitalOcean serverless function. When I install the packages in my machine everything works fine but when I deploy it in DigitalOcean it keeps throwing the error:

Invalid action: Failed to import the Cloud Firestore library for Python. Make sure to install the 'google-cloud-firestore' module.

But everything is installed…

author Tiago Ferreira

Reply
7 Answers

At the risk of sounding like Captain Obvious, I think whatever throws that error can’t find the module where it’s installed. Maybe it’s not looking in the right place. Maybe your PATH doesn’t include something it should have.

writen by Kirill Rogovoy

The problem is that I can not degub any of that because it is a serverless function…

writen by Tiago Ferreira

is that package installed as a dev dependency or dependency?

writen by Luca Restagno (ikoichi on Twitter)

Ah, brilliant point Luca! DO’s CI might only be running a ‘prod-only’ npm install

writen by Kirill Rogovoy

I am working with python so I am not even sure if it is possible to install packages just as dev. Probably it is but I was not doing that

writen by Tiago Ferreira

ops, I thought it was a node js project

writen by Luca Restagno (ikoichi on Twitter)

Do you want to ask a question?


Related Questions