Python 导入awswrangler:AttributeError:module';时出错;多处理';没有属性';连接';

Python 导入awswrangler:AttributeError:module';时出错;多处理';没有属性';连接';,python,python-3.x,Python,Python 3.x,我有一个使用库awswrangler的python脚本。今天我的scrpit开始在库的导入中给出错误,我不知道发生了什么。 我正在一个docker容器中运行脚本,其中包含图像python:3.8 例如: import awswrangler as wr print(wr.__version__) 错误: Traceback (most recent call last): File "src/avec/automation/TaskBaseUserPass.py", line 1, in

我有一个使用库awswrangler的python脚本。今天我的scrpit开始在库的导入中给出错误,我不知道发生了什么。 我正在一个docker容器中运行脚本,其中包含图像python: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'
回溯(最近一次呼叫最后一次):
文件“src/avec/automation/TaskBaseUserPass.py”,第1行,在
从awswrangler.熊猫进口熊猫
文件“/usr/local/lib/python3.8/site packages/awswrangler/_init__.py”,第17行,在
从awswrangler.熊猫进口熊猫#noqa
文件“/usr/local/lib/python3.8/site packages/awswrangler/pandas.py”,第45行,在
熊猫类:
pandas中的文件“/usr/local/lib/python3.8/site packages/awswrangler/pandas.py”,第273行
def_read_csv_once_remote(发送管道:mp.connection.connection,session_primitives:“SessionPrimitives”,
AttributeError:模块“多处理”没有属性“连接”

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

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

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

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

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

似乎是其中一个或多个问题造成的。

我成功运行了3.6版,当前python版本中的库存在mp.connection.connection问题。

我成功运行了3.6版,当前python版本中的库存在mp.connection.connection问题