0

I got this error when trying to deploy my function on gcloud functions. The function runs smoothly on my local machine FYI. I've browsed some posts but none have the solution

enter image description here

1 Answers1

0

As mentioned in the similar thread1 and thread2:

For anyone else that had this problem : Removing the .py suffix on the python -m command fixes this problem, it appears -m only requires module names whereas running it directly as a python file (no -m option) requires the .py suffix

To learn more about the path attribute , you can refer to the documentation

Divyani Yadav
  • 1,030
  • 4
  • 9