Comments (6)
用的哪种模式启动的啊,是win10+docker,还是纯ubutun呢?
看你的报错事win10+docker的模式,win10拉代码时需要设置换行符的配置,因为默认git拉下来的代码会将换行符转换成windows下的,而docker事ubutnu的镜像就可能导致上述的问题。
from gameaisdk.
I also have similar problem. i use gentoo not ubuntu(not docker), i install all packages according to instructions in pyenv. If I make changes, which file should I edit? I don't see any abnormalities in the lines of source code where it throws an error.
from gameaisdk.
problem has been resolved. because .pyc files are files that have been compiled with a different version of python. I have added the library source code here xdien@cc8e573
from gameaisdk.
相同的问题,请问解决了没有呀。。头都要炸了。说是PYC编译的版本不一致,官方不是说的是3.6.2吗。都重装好几遍了,天啊!
from gameaisdk.
报错如下:
Traceback (most recent call last):
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 36, in init
from .deviceAPI.mobileDevice.android. androidDevice import AndroidDevice
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDevice.py", line 18, in
from .androidDeviceAPI import AndroidDeviceAPI
File "/home/hiqos /Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDeviceAPI.py", line 12, in
from .devicePlatform.WrappedPlatform import PlatformWrapper
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/devicePlatform/WrappedPlatform.py”,第18行,
从..plugin.Platform_plugin.PlatformWeTest导入AdbTool
文件“ /home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/ init .py", line 18, in
from .demo_ubuntu16.PlatformWeTest import PlatformWeTest
ImportError: bad 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16'中的幻数:b'\x16\r\r\n'在处理上述异常的过程中,又发生了一个异常:
回溯(最近一次调用):
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/op_tree.py”,第 293 行,在 double_click_right_tree
ProjectNode().update_right_tree()
文件“/home /hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py”,第 334 行,在 update_right_tree
self.select_phone()
文件中“/home/hiqos/Data/work/GameAISDK/tools/SDKTool /src/ui/tree/project_node.py", line 381, in select_phone
self._init_phone(item, serial)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node. py”,第 850 行,在 _init_phone
long_edge=self.__media_source.long_edge)
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/canvas/data_source.py”,第 77 行,在 init_phone 中
self.__phone = DeviceAdapter(device_type, platform=platform)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 47, in init
raise Exception(err)
Exception: 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16'中的错误幻数:b'\x16\r\r\n'是因为编译python版本问题吗?但是版本用的3.6.2阿
请教请教,,问题解决了没有啊,都说这个问题是PYC编译的版本和使用版本不一致导致的,官方说的是用的PY3.6.2编译的,可是安装的是3.6.2版本的还是出现这个问题,
from gameaisdk.
报错如下:
Traceback (most recent call last):
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 36, in init
from .deviceAPI.mobileDevice.android. androidDevice import AndroidDevice
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDevice.py", line 18, in
from .androidDeviceAPI import AndroidDeviceAPI
File "/home/hiqos /Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/androidDeviceAPI.py", line 12, in
from .devicePlatform.WrappedPlatform import PlatformWrapper
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/devicePlatform/WrappedPlatform.py”,第18行,
从..plugin.Platform_plugin.PlatformWeTest导入AdbTool
文件“ /home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/plugin/Platform_plugin/PlatformWeTest/ init .py", line 18, in
from .demo_ubuntu16.PlatformWeTest import PlatformWeTest
ImportError: bad 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16'中的幻数:b'\x16\r\r\n'
在处理上述异常的过程中,又发生了一个异常:
回溯(最近一次调用):
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/op_tree.py”,第293行,在double_click_right_tree
ProjectNode().update_right_tree()
文件“/home /hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py”,第334行,在update_right_tree
self.select_phone()
文件中“/home/hiqos/Data/work/GameAISDK/tools /SDKTool /src/ui/tree/project_node.py", line 381, in select_phone
self._init_phone(item, serial)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/项目节点。py”,第 850 行,在 _init_phone
long_edge=self.__media_source.long_edge)
文件“/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/canvas/data_source.py”,第 77 行,在init_phone 中
self.__phone = DeviceAdapter(device_type, platform=platform)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAdapter.py", line 47, in init
raise Exception(err)
Exception: 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16'中的错误幻数:b'\x16\r\r\n'
是因为要编译 python 版本吗?但版本是 3.6.2 阿教教请教,问题解决了没有啊,都说这个问题是 PYC 编译的版本和使用版本,请引导的,官方不是用的 PY3.6.2 编译的,但是安装的是 3.6.2 版本的还是出现了问题,
3.6.2是windows系统的要求,ubuntu系统如果是16.04版本自带3.5,用自带python版本编译不会报错。
如果ubuntu版本高了,自带python版本也会高,需要重新下载python3.5,并且编译的时候有很多python版本问题需要自行修改。
所以我最后是用了ubuntu16.04,用他自动部署工具直接部署,省的麻烦。但后面也遇到了很多问题,只能慢慢摸索
from gameaisdk.
Related Issues (20)
- 想问一下,缺少tbus,这个tbus是什么 我在百度上也没找到,尝试用pip安装也没有找到 HOT 2
- Unable to build docker 'pull access denied for base_aisdktoolclt_ubt16' HOT 3
- 运行天天酷跑的例子出错 HOT 5
- DQN本地训练不能持续
- 无法下载包 HOT 1
- 环境包链接失效 HOT 3
- 工程里面有些文件以pyc的格式提供是出于什么目的?
- 运行天天酷跑例子出错
- RainbowAction.json 这个文件重要吗?
- 你好,官网的下载页面提示file not found
- 这个项目还在维护吗?
- 求助,启动报错(windows环境)
- 下载包呢?后面这个项目还维护不.... HOT 2
- 成功跑完demo,有需要的过来看一下 HOT 4
- 有哪位大佬跑过cfm的?
- 出现报错 报错如下
- 没法正常运行
- 有没有人找到这个项目的替代品 HOT 2
- 已连接到手机,但一直报错[./phone_aiclientapi\WrappedDeviceAPI\deviceAPI\mobileDevice\android\plugin\Platform_plugin\PlatformWeTest\demo\TcpSocketHandler.py:190][ERROR] : read packet exception
- 调试模式是否可用?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gameaisdk.