gcp_compute plugin showing auth failure

SUMMARY

I am using gcp_compute plugin as a inventory source. While on local machine it is working fine but when I try to use this same inventory on GCP VM it is showing

ansible-inventory -i ./inventory/gcompute.gcp.yaml --graph

[WARNING]: * Failed to parse /inventory/gcompute.gcp.yaml with gcp_compute plugin: Service Acccount Email only works with Machine Account-based authentication

can somebody tell me how to resolve this

Thanks