Colab中初始化个人Google Earth Engine项目时出现403权限拒绝错误求助
Colab中初始化个人Google Earth Engine项目时出现403权限拒绝错误求助
最近在Google Colab上用Python初始化自己的Google Earth Engine(GEE)项目时碰上个头疼的问题!之前调用ee.Initialize()方法的时候,系统都会弹出一个链接,我点进去就能生成对应项目的token完成初始化,但这次直接炸了,报出403权限拒绝的错误,具体的报错日志如下:
WARNING:googleapiclient.http:Encountered 403 Forbidden with reason "PERMISSION_DENIED" --------------------------------------------------------------------------- HttpError Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries) 382 try: --> 383 return call.execute(num_retries=num_retries) 384 except googleapiclient.errors.HttpError as e: 7 frames HttpError: <HttpError 403 when requesting 【Earth Engine API的算法列表接口】 returned "Google Earth Engine API has not been used in project 522309567947 before or it is disabled. Enable it by visiting Google开发者控制台的Earth Engine API激活页面(对应项目522309567947) then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.". Details: "[{'@type': 'type.googleapis.com/google.rpc.Help', 'links': [{'description': 'Google开发者控制台API激活', 'url': '对应项目522309567947的Earth Engine API激活页面'}]}, {'@type': 'type.googleapis.com/google.rpc.ErrorInfo', 'reason': 'SERVICE_DISABLED', 'domain': 'googleapis.com', 'metadata': {'service': 'earthengine.googleapis.com', 'consumer': 'projects/522309567947'}}]"> During handling of the above exception, another exception occurred: EEException Traceback (most recent call last) /usr/local/lib/python3.10/dist-packages/ee/data.py in _execute_cloud_call(call, num_retries) 383 return call.execute(num_retries=num_retries) 384 except googleapiclient.errors.HttpError as e: --> 385 raise _translate_cloud_exception(e) # pylint: disable=raise-missing-from 386 387 EEException: Google Earth Engine API has not been used in project 522309567947 before or it is disabled. Enable it by visiting Google开发者控制台的Earth Engine API激活页面(对应项目522309567947) then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
我照着报错提示的内容检查了一遍,但还是没搞懂具体怎么操作才能解决这个问题,有没有大佬能帮忙支个招呀?
备注:内容来源于stack exchange,提问作者MohaFox




