-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
autojump.png为0k #415
Comments
我也遇到了一样的问题,我的环境是win加Android虚拟机,目前还不知道怎么解决。 |
周六的时候 用的旧代码 还是可以的,跳到了500多, 今天我换成了新的代码, 我也是刚刚遇到这个问题了,作者说是让看这个 194 iessus, 但是我看了 ,我按照上面的操作了 也没好,不知道咋回事 我的是 win10 64位系统, Android 小米Note 1920*1089 ! 求解答! |
@stevenling |
解决了 是我写错了! |
@DevXue可是我的截图是0k,也这样改过,还是这样 |
@lolqwerdfa 你把代码重新覆盖成最新的, 然后把我发的这段复制到你的代码中试试! |
@DevXue 还是不行 |
尝试以下代码: def pull_screenshot():
os.system("adb shell screencap -p | sed 's/\\r$//' > autojump.png") ...win下没有sed命令 |
Load default config
226.15384615384608 0.06074766355140192 0.8392156862745098
140 142 149
如果你的脚本无法工作,上报issue时请copy如下信息:
Screen: 1920*1080
Density: win10
DeviceType: 一加3t
OS: win32
Python: 3.6.3 (v3.6.3:2c5fed8, Oct 3 2017, 18:11:49) [MSC v.1900 64 bit (AMD64)]
Traceback (most recent call last):
File "F:\Downloads\wechat_jump_game-master\wechat_jump_auto.py", line 356, in
main()
File "F:\Downloads\wechat_jump_game-master\wechat_jump_auto.py", line 343, in main
im = Image.open('./autojump.png')
File "C:\Users\yunli\AppData\Local\Programs\Python\Python36\lib\site-packages\PIL\Image.py", line 2572, in open
% (filename if filename else fp))
OSError: cannot identify image file './autojump.png'
注:这个png图片的大小是0k
The text was updated successfully, but these errors were encountered: