Tencent / GameAISDK

基于图像的游戏AI自动化框架
Other
2.03k stars 433 forks source link

~/GameAISDK/tools/AIClient$ python demo.py 运行出错 #13

Open CyrusZhou-CN opened 3 years ago

CyrusZhou-CN commented 3 years ago

Ubuntu 20.4 Traceback (most recent call last): File "demo.py", line 10, in from aiclient.start_service import ActionExecute ImportError: bad magic number in 'aiclient': b'3\r\r\n'

dijinzhou commented 3 years ago

python版本不匹配引起的。可以加技术QQ群讨论:1095989343

bothe1989 commented 3 years ago

Traceback (most recent call last): File "D:\git\GameAISDK\tools\AIClient\demo.py", line 10, in from aiclient.start_service import ActionExecute ImportError: No module named aiclient.start_service 看了下工程目录结构确实没有这个

836304831 commented 3 years ago

AIClient如果下载完整的话,是有aiclient.start_service这个module的,先判断一下代码是否全部拉取到了,也可以贴一下AIClient的目录展开的截图,便于协助你排查问题。

EdwardCheck commented 3 years ago

AIClient如果下载完整的话,是有aiclient.start_service这个module的,先判断一下代码是否全部拉取到了,也可以贴一下AIClient的目录展开的截图,便于协助你排查问题。

image AIClient都是.pyc文件,导入提示ImportError: bad magic number in 'aiclient': b'3\r\r\n'

836304831 commented 3 years ago
  1. 如果使用docker镜像方式,即使是在window下,也要下载ubtunu的编译版本。因为docker镜像是基于ubuntu的。
  2. 编译的版本windows支持python3.6,ubuntu下支持python3.5,确认一下python版本。