【问题标题】:glue python shell job failure to import s3fs胶水python shell作业无法导入s3fs
【发布时间】:2021-08-05 01:52:55
【问题描述】:

我是 Glue 工作的新手,并按照以下链接配置 whl 文件的方式

Import failure of s3fs library in AWS Glue

AWS Glue Python - 3 作业出现以下错误

WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ConnectTimeoutError(<pip._vendor.urllib3.connection.VerifiedHTTPSConnection object at 0x7fdac61a8080>, 'Connection to pypi.org timed out. (connect timeout=15)')': /simple/fsspec/

ERROR: Could not find a version that satisfies the requirement fsspec==2021.07.0 (from s3fs==2021.7.0) (from versions: none)

ERROR: No matching distribution found for fsspec==2021.07.0 (from s3fs==2021.7.0)

Traceback (most recent call last):
  File "/tmp/runscript.py", line 207, in <module>
    download_and_install(args.extra_py_files, timeout=time_out)
  File "/tmp/runscript.py", line 141, in download_and_install
    install_package(file_extension, install_path, local_file_path, timeout=timeout)
  File "/tmp/runscript.py", line 115, in install_package
    install_wheel_with_retry(install_path, local_file_path, timeout=timeout)
  File "/tmp/runscript.py", line 108, in install_wheel_with_retry
    retry(run_check_call, install_path, local_file_path, timeout, exceptions=TimeoutExpired, message="{} installation".format(local_file_path))
  File "/tmp/runscript.py", line 35, in retry
    return func(*func_args)
  File "/tmp/runscript.py", line 106, in run_check_call
    check_call([sys.executable, "-m", "pip", "install", "--target={}".format(_install_path), _local_file_path], timeout=_timeout)
  File "/usr/local/lib/python3.6/subprocess.py", line 311, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', 'install', '--target=/glue/lib/installation', '/tmp/glue-python-libs-lw4p0gdn/s3fs-2021.7.0-py3-none-any.whl']' returned non-zero exit status 1.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
  File "/tmp/runscript.py", line 230, in <module>
    raise e_type(e_value).with_traceback(new_stack)
TypeError: __init__() missing 1 required positional argument: 'cmd'

【问题讨论】:

    标签: python-3.x amazon-web-services aws-glue python-s3fs


    【解决方案1】:

    我认为您只是在尝试安装的依赖项中有错字。

    比较:

    2021.07.0
    2021.7.0
    

    所以更新你要安装的s3fs的版本。

    见:https://pypi.org/project/s3fs/

    【讨论】:

    • 我从这里下载了最新的文件 - pypi.org/project/s3fs/#files,它有 2021.7.0。您是说将文件名从 s3fs-2021.7.0-py3-none-any.whl 更新为 s3fs-2021.07.0-py3-none-any.whl
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2022-08-05
    • 1970-01-01
    • 1970-01-01
    • 2021-07-15
    • 2020-04-12
    • 2022-08-09
    • 1970-01-01
    相关资源
    最近更新 更多