我正在使用教程来连接我的全球通信系统。我在谷歌有多个账户,用gcloud auth login激活了一个账户,我用gcloud auth list仔细检查了一下,它显示了两个账户,但我需要的一个账户被标记为ACTIVE。但是当我尝试运行教程中提到的代码时,得到以下错误
google.api_core.exceptions.Forbidden: 403 GET https://www.googleapis.com/storage/v1/b?project=<myproject>&projection=noAcl: <INACTIVE USER ACCOUNT> d
我通过pip安装google云存储模块。它作为独立的导入很好。如果导入在我正在运行的文件中,那么它可以很好地导入。如果我从另一个导入文件的模块导入文件,它就不会导入。File "/home/test/hecks/airflow-dags/dags/extract/api_extract.py", line 3, in <module>Impor
我跟随学院的youtube视频去看"Firebase Cloud Functions --上传后调整图像大小“,但我被卡住了,试图用storage.bucket(存储桶)解决一个问题。1. (node:2) MetadataLookupWarning: received unexpected error = URL is not defined code = UNKNOWN
2. Error: Anonymous caller does not have storage.objects.get access to the Google Cloud Storage
pip3 install google-cloud-storage
Defaulting to user installation because normal site-packages is notsatisfied: google-cloud-core<2.0dev,>=1.2.0 in /home/antoine/.local/lib/python3.8/site-packages (from google-cloud-storage=1.19.0 in /home