配置MALib遇到的问题

前言

MALib用到了很多依赖,这些依赖不同版本之间有一些区别,可能他们开发时候比较早了,我最近按照指导配置的时候遇到了一些问题,有的是别的库bug,最近才修复,这里记录一下。

AttributeError: module ‘aioredis’ has no attribute ‘create_redis’

在这里插入图片描述

方法 aioredis.create_redis 从版本2.0开始不再支持,所以需要降低版本:pip install 'aioredis<2.0'

https://stackoverflow.com/questions/68901119/module-aioredis-has-no-attribute-create-redis

ModuleNotFoundError: No module named ‘aiohttp.signals’

在这里插入图片描述
ray的bug,安装一个指定版本的库即可:pip install aiohttp==3.7

https://github.com/ray-project/ray/issues/20681

TypeError: Plain typing.NoReturn is not valid as type argument

在这里插入图片描述
大概是python的版本问题吧

https://github.com/ipfs-shipyard/py-ipfs-http-client/issues/235

TypeError: load() missing 1 required positional argument: ‘Loader’

YAML 5.1版本后弃用了yaml.load(file)这个用法,因为觉得很不安全,5.1版本之后就修改了需要指定Loader,通过默认加载​​器(FullLoader)禁止执行任意函数,该load函数也变得更加安全

用以下三种方式都可以

d1=yaml.load(file,Loader=yaml.FullLoader)
d1=yaml.safe_load(file)
d1 = yaml.load(file, Loader=yaml.CLoader)

或者就安装老版本:pip install 'yaml<5.1'

https://blog.csdn.net/qq_34495095/article/details/120905179

‘Worker’ object has no attribute ‘core_worker’

在这里插入图片描述
一般是worker死了,检查一下为啥

https://github.com/ray-project/ray/issues/5901

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值