ssttkkl / PixivBot

集成插件nonebot-plugin-pixivbot的NoneBot实例的Docker镜像,适用于Docker方式部署。
MIT License
259 stars 16 forks source link

AttributeError 需要回退 Pydantic 1.6+,而TypeError需要updating to Pydantic 1.7+ #12

Closed Whale-Island closed 3 years ago

Whale-Island commented 3 years ago

python 3.9 pydantic==1.7.1 之前遇到了typeerror,看到了上个issue的解决方案是升级Pydantic,但是升级之后,又会又AttributeError: 'ApplicationLaunched' object has no attribute 'app',查看已关闭的issue,回退pydantic到1.6就可以解决这个问题。

能在readme上提供一份具体的版本信息吗,对于不熟悉py的用户来说,非常困扰。

mikixiv commented 3 years ago

python 版本退回到3.8.X就可以了

Whale-Island commented 3 years ago

我先是回退到了py3.7.9,出现报错no module named asyncio.exceptions 看到了你的回复,更换了版本3.8.5 现在又报错no module named graia 依赖是git上最新的版本

mikixiv commented 3 years ago

pip install graia

缺少哪个模块就安装一下

mikixiv commented 3 years ago

这是我这边的模块版本,可以正常运行,你可以参考一下

Package                 Version
----------------------- ----------
aiofiles                0.5.0
aiohttp                 3.7.3
async-timeout           3.0.1
attrs                   20.3.0
certifi                 2020.11.8
chardet                 3.0.4
cloudscraper            1.2.48
croniter                0.3.36
graia-application-mirai 0.8.4
graia-broadcast         0.5.0
graia-template          0.0.4
idna                    2.10
iterwrapper             0.1.4
json5                   0.9.5
loguru                  0.5.1
multidict               5.0.2
natsort                 7.1.0
Pillow                  7.2.0
pip                     20.2.1
PixivPy                 3.5.10
pydantic                1.6.1
pyparsing               2.4.7
PySocks                 1.7.1
python-dateutil         2.8.1
regex                   2020.11.13
requests                2.25.0
requests-toolbelt       0.9.1
setuptools              49.2.1
six                     1.15.0
typing-extensions       3.7.4.3
urllib3                 1.26.2
yarl                    1.6.3
Whale-Island commented 3 years ago

可能是系统的问题吧,我这个是windows server 2012 r2 即便是安装好了你上面的库,也会继续报错,算了,不折腾了