gpt4 book ai didi

amazon-web-services - aws 胶水 `ImportError: cannot import name ' S3ArnParamHandler'`

转载 作者:行者123 更新时间:2023-12-03 16:47:59 26 4
gpt4 key购买 nike

我在本地开发了一个 pandas etl 脚本并且工作正常。
我准备了一个wheel文件并上传到s3。所有软件包都已正确安装。
但是,当脚本运行时,它显示 ImportError: cannot import name 'S3ArnParamHandler'下面是我的requirements.txt

awscli==1.18.140
asn1crypto==1.4.0
awswrangler==1.9.3
azure-common==1.1.25
azure-core==1.8.1
azure-storage-blob==12.5.0; python_version >= '3.5.2'
boto3==1.14.63
botocore==1.17.63
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
cryptography==2.9.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'
docutils==0.15.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'
fsspec==0.8.2
idna==2.9; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
isodate==0.6.0
jmespath==0.10.0; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'
msrest==0.6.19
numpy==1.19.2
oauthlib==3.1.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
oscrypto==1.2.1
packaging==20.4; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pandas==1.0.0
psycopg2-binary==2.8.6; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyarrow==1.0.1; python_version >= '3.5'
pycparser==2.20; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
pycryptodomex==3.9.8; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2, 3.3'
pyjwt==1.7.1
pymysql==0.9.0
pyopenssl==19.1.0
pyparsing==2.4.7; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2'
python-dateutil==2.8.1
pytz==2020.1
requests-oauthlib==1.3.0
requests==2.23.0
s3fs==0.4.2
s3transfer==0.3.3
six==1.15.0
snowflake-connector-python==2.3.2; python_version >= '3.5'
snowflake-sqlalchemy==1.2.3
sqlalchemy-redshift==0.8.1
sqlalchemy==1.3.13
urllib3==1.25.10
xlrd==1.2.0

最佳答案

现在似乎无法覆盖 AWS Glue Python shell ( https://github.com/boto/boto3/issues/2566 ) 上的 botocore 和 boto3 库版本。
提供的版本有:

  • botocore 1.12.232
  • boto3 1.9.203

  • aiobotocore 正在寻找一些在 botocore 1.12.232 中不可用的导入。
    我知道这不是完美的解决方案,但在我的情况下,我必须删除/降级所有使用那些 boto 库中不可用的功能的依赖项,以使 Glue 工作正常工作。

    关于amazon-web-services - aws 胶水 `ImportError: cannot import name ' S3ArnParamHandler'`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63952562/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com