python - google-api-python-client 1.9.3 的重大更改 - AttributeError : module 'google.api_core' has no attribute 'gapic_v1'

标签 python api github google-cloud-platform

有其他人得到上述吗?
我一辈子都想不通它为什么提示 google.api.core 模块。上周这对我有用,但是自从更新了 google-api-python-client 之后,现在就不行了,我正在努力恢复到工作版本。
点卡住,按要求:

asgiref==3.2.7
astroid==2.3.3
cachetools==3.1.1
certifi==2019.11.28
chardet==3.0.4
Click==7.0
colorama==0.4.1
Django==3.0.6
django-crispy-forms==1.9.0
django-formtools==2.2
Flask==1.1.1
google-api-core==1.21.0
google-api-python-client==1.9.3
google-auth==1.18.0
google-auth-httplib2==0.0.3
google-auth-oauthlib==0.4.1
google-cloud==0.34.0
google-cloud-core==1.1.0
google-cloud-error-reporting==0.33.0
google-cloud-firestore==1.6.2
google-cloud-kms==1.3.0
google-cloud-logging==1.14.0
google-cloud-pubsub==1.1.0
google-cloud-secret-manager==0.2.0
googleapis-common-protos==1.6.0
grpc-google-iam-v1==0.12.3
grpcio==1.27.2
httplib2==0.14.0
idna==2.8
isort==4.3.21
itsdangerous==1.1.0
Jinja2==2.10.3
lazy-object-proxy==1.4.3
MarkupSafe==1.1.1
mccabe==0.6.1
oauth2client==4.1.3
oauthlib==3.1.0
protobuf==3.12.2
pyasn1==0.4.8
pyasn1-modules==0.2.7
PyJWT==1.7.1
pylint==2.4.4
pytz==2019.3
PyYAML==5.3.1
requests==2.22.0
requests-oauthlib==1.3.0
rsa==4.0
six==1.13.0
sqlparse==0.3.1
twilio==6.35.5
uritemplate==3.0.0
urllib3==1.25.7
Werkzeug==0.16.0
wrapt==1.11.2

最佳答案

Google-api-core 1.17.0 遭受 another regression (在最新版本中已修复)会破坏流式传输,因此使用该功能的用户应暂时将 google-api-core 固定到更旧的版本,例如1.16.0。更多详情请引用link .

关于python - google-api-python-client 1.9.3 的重大更改 - AttributeError : module 'google.api_core' has no attribute 'gapic_v1' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62474473/

相关文章:

javascript - 在 ReactJs 中加载更多实现

Git merge 和丢失的更改

node.js - 从 API 获取 POST 数据(node js、react)

javascript - 对于大小超过 ~1MB 的文件,Github.js getSha 出现 403 错误

git - 添加 Git 远程后 "fatal: refusing to merge unrelated histories"

python - Elasticsearch - 来自工作 curl 示例的 python 语法

python - Python中的SQLite3 WHERE子句

python - 使用 Selenium 单击特定的隐藏按钮(多个具有相同的名称),但我可以匹配按钮所在的特定表

python - 两列上最近的匹配合并(pandas)

c# - 仅将 API URL 限制为 Android 应用程序