Equim-chan / Mortal

🚀🀄️ A fast and strong AI for riichi mahjong, powered by Rust and deep reinforcement learning.
https://mortal.ekyu.moe
GNU Affero General Public License v3.0
929 stars 118 forks source link

ImportError: DLL load failed while importing libriichi: 找不到指定的模块。 #45

Closed Nitasurin closed 1 year ago

Nitasurin commented 1 year ago

我重新下载了Mortal的源码并进行build,运行train_grp后,报以下错误: File "E:\mortal\mortal\train_grp.py", line 14, in from model import GRP File "E:\mortal\mortal\model.py", line 8, in from libriichi.consts import obs_shape, oracle_obs_shape, ACTION_SPACE, GRP_SIZE ImportError: DLL load failed while importing libriichi: 找不到指定的模块。 将最新的libriichi.pyd替换成mortal3 230109版本即可正常运行。 conda虚拟环境:python3.10+pytorch1.13.0(cuda11.7)(该环境可以正常运行mortal3 230109) 系统环境:windows server2019

Nitasurin commented 1 year ago

抱歉,我已经解决这个问题,我的rust编译器已经过时了(1.65.0,2022-11-02) 。 更新后的1.68.2 (2023-03-27)版本编译出的libriichi.pyd已经可以正常使用。