GameAISDK icon indicating copy to clipboard operation
GameAISDK copied to clipboard

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

Open CyrusZhou-CN opened this issue 4 years ago • 5 comments

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'

CyrusZhou-CN avatar Sep 30 '20 07:09 CyrusZhou-CN

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

dijinzhou avatar Oct 09 '20 03:10 dijinzhou

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 看了下工程目录结构确实没有这个

bothe1989 avatar Dec 09 '20 11:12 bothe1989

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

836304831 avatar Dec 13 '20 05:12 836304831

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

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

EdwardCheck avatar Feb 24 '21 01:02 EdwardCheck

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

836304831 avatar Mar 03 '21 02:03 836304831