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

小米note报错打开autojump.png错误 #442

Closed
bainian opened this Issue Jan 1, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@bainian

bainian commented Jan 1, 2018


Screen: Physical size: 1080x1920
Density: Physical density: 440
DeviceType: MI NOTE LTE
OS: darwin
Python: 3.6.4 |Anaconda, Inc.| (default, Dec 21 2017, 15:39:08)
[GCC 4.2.1 Compatible Clang 4.0.1 (tags/RELEASE_401/final)]


List of devices attached
4daaf8f0 device

Traceback (most recent call last):
File "wechat_jump_auto.py", line 357, in
main()
File "wechat_jump_auto.py", line 344, in main
im = Image.open('./autojump.png')
File "/Users/sage/anaconda3/envs/wechat_env3/lib/python3.6/site-packages/PIL/Image.py", line 2572, in open
% (filename if filename else fp))
OSError: cannot identify image file './autojump.png'

@F-loat

This comment has been minimized.

Contributor

F-loat commented Jan 1, 2018

试下最新版的

@gallonyin

This comment has been minimized.

gallonyin commented Jan 1, 2018

把def pull_screenshot():
方法体改成:
os.system('adb shell /system/bin/screencap -p /sdcard/screenshot.png')
os.system('adb pull /sdcard/screenshot.png ./autojump.png')
原来的用#注释掉或删掉
亲测可行

@F-loat F-loat added the Screenshot label Jan 1, 2018

@F-loat F-loat closed this Jan 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment