gpt4 book ai didi

python - 错误导入 awswrangler : AttributeError: module 'multiprocessing' has no attribute 'connection'

转载 作者:行者123 更新时间:2023-12-02 02:56:57 25 4
gpt4 key购买 nike

我有一个使用 lib awswrangler 的 python 脚本。今天我的 scrpit 开始在导入库时出错,我不知道发生了什么。我在带有图像 python 的 docker 容器中运行脚本:3.8

例子:

import awswrangler as wr

print(wr.__version__)

错误:

Traceback (most recent call last):
File "src/avec/automation/TaskBaseUserPass.py", line 1, in <module>
from awswrangler.pandas import Pandas
File "/usr/local/lib/python3.8/site-packages/awswrangler/__init__.py", line 17, in <module>
from awswrangler.pandas import Pandas # noqa
File "/usr/local/lib/python3.8/site-packages/awswrangler/pandas.py", line 45, in <module>
class Pandas:
File "/usr/local/lib/python3.8/site-packages/awswrangler/pandas.py", line 273, in Pandas
def _read_csv_once_remote(send_pipe: mp.connection.Connection, session_primitives: "SessionPrimitives",
AttributeError: module 'multiprocessing' has no attribute 'connection'

最佳答案

我今天在尝试导入 awswrangler 时遇到了同样的问题。对我来说,降级以下依赖项有帮助:

pip install fsspec==0.6.3 PyAthena==1.10.2 s3fs==0.4.0

似乎是其中一个或多个导致了问题。

关于python - 错误导入 awswrangler : AttributeError: module 'multiprocessing' has no attribute 'connection' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60907299/

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