-
Notifications
You must be signed in to change notification settings - Fork 455
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
连接手机出错,双击序列号直接退出界面 #30
Comments
用的哪种模式启动的啊,是win10+docker,还是纯ubutun呢? |
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. |
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 |
相同的问题,请问解决了没有呀。。头都要炸了。说是PYC编译的版本不一致,官方不是说的是3.6.2吗。都重装好几遍了,天啊! |
请教请教,,问题解决了没有啊,都说这个问题是PYC编译的版本和使用版本不一致导致的,官方说的是用的PY3.6.2编译的,可是安装的是3.6.2版本的还是出现这个问题, |
3.6.2是windows系统的要求,ubuntu系统如果是16.04版本自带3.5,用自带python版本编译不会报错。 |
报错如下:
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
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/WrappedDeviceAPI/deviceAPI/mobileDevice/android/devicePlatform/WrappedPlatform.py", line 18, in
from ..plugin.Platform_plugin.PlatformWeTest import AdbTool
File "/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 magic number in 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16': b'\x16\r\r\n'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/op_tree.py", line 293, in double_click_right_tree
ProjectNode().update_right_tree()
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/tree/project_node.py", line 334, in update_right_tree
self.select_phone()
File "/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", line 850, in _init_phone
long_edge=self.__media_source.long_edge)
File "/home/hiqos/Data/work/GameAISDK/tools/SDKTool/src/ui/canvas/data_source.py", line 77, in 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: bad magic number in 'src.WrappedDeviceAPI.deviceAPI.mobileDevice.android.plugin.Platform_plugin.PlatformWeTest.demo_ubuntu16': b'\x16\r\r\n'
是因为编译python 版本问题吗?可是版本用的3.6.2阿
The text was updated successfully, but these errors were encountered: