-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
EmissionTracker failed on GCP Colab Enteprise #572
Comments
Thanks for reporting this. Can you run the command |
Hi Benoit, thanks for your reply. Missing required header: Metadata-Flavor I appreciate your feedback. |
Sorry, from https://stackoverflow.com/questions/62026424/is-it-possible-to-obtain-instance-metadata-for-gcp-on-google-collaboratory it seems to be
|
Hi, here is the output:
|
Sorry, it's I tested it and I get this from Cloud Shell (I delete un-relevant lines) {
"cpuPlatform": "Intel Broadwell",
"machineType": "projects/8xxxxx2/machineTypes/e2-standard-4",
"zone": "projects/8xxxx2/zones/europe-west1-b"
} |
Hi again, tx for your reply. Testing it from gcp colab enteprise notebook:
Testing from gcp cloud shell, got info like (deleted others lines): "cpuPlatform": "Intel Broadwell", |
So it seems that on Colab Entreprise you get an answer from the GCP API but it's an empty JSON We have to update our GCP detection to handle this case. Thanks for reporting the details. |
Hi, tx for your feedback. Our team is looking forward to getting the fix. |
Hello, I've opened a PR for that : #580 |
Description
Tried to launch codecarbon EmissionTracker on GCP Colab Enterprise.
It works correctly on Colab Web with same codecarbon version 2.4.2.
It failed on different GCP region trials always with same error message below.
As you recently updated GCP location metatadata this might be related.
I appreciate your help.
What I Did
@eherra
The text was updated successfully, but these errors were encountered: