I am trying to create a gcp function in python which can simply check the project id and display as a starting point. Below is my code
Hi @gcloudLearning,
Welcome back to Google Cloud Community!
Your main.py file and requirements.txt file should be in the same directory, and this should also be the same directory you're deploying your function from.
Can you indicate your file structure?
Thanks
@christianpaula I am getting below error. The same function is running fine locally . I tried both using gen1 and 2. same error i am getting.FileNotFoundError: [Errno 2] No such file or directory: 'gcloud'.
I am using gcloud command as subprocess like this .-