python - TypeError:initial() 得到了一个意外的关键字参数“超时”
问题描述
我想使用此代码将数据从 csv 加载到 BigQuery。
df.to_gbq(table_for_uploading, upload_table, project_id=project_id, if_exists='replace', table_schema = [{'name':'execution_date','type': 'DATE'}])
我收到了这个错误
TypeError: initiate() got an unexpected keyword argument 'timeout'
任何人都可以帮助为什么?
解决方案
我怀疑安装 google-resumable-media==0.6 可能会解决您的问题。
pip uninstall google-resumable-media
pip uninstall google-cloud-storage
pip install google-resumable-media==0.6.0
pip install google-cloud-storage==1.30.0
你可以试试。
推荐阅读
- python - 为什么mypy会抱怨'“Type [Logger]”没有属性“manager”'
- python - Boto3 s3 python upload_file反复重试
- javascript - 如何在对象中使用 Javascript url 键
- javascript - 包含此对象的每个单独子项的对象数组
- python - 在 Windows 上每 X 小时自动从文本文件下载文件列表
- spring - 无法在 Kotlin 中使用 @Value 注释的默认值初始化属性
- python - python中的插入排序比较和交换
- python - OSError: [WinError 123] La syntaxe du nom de fichier, de répertoire ou de volume est wronge: '
' - python - 为什么 .loc 在 Python Pandas 系列中不起作用?
- c - pthread 不让你知道吗?