web-editor icon indicating copy to clipboard operation
web-editor copied to clipboard

IOError: cannot identify image file <_io.BytesIO object at 0x039CAEA0>

Open HakunamatataLeo opened this issue 7 years ago • 8 comments

image

HakunamatataLeo avatar Apr 11 '18 03:04 HakunamatataLeo

我也遇到了这个问题 Traceback (most recent call last): File "D:\Program Files (x86)\Python36-32\lib\site-packages\weditor\__main__.py", line 137, in get d.screenshot().convert("RGB").save(buffer, format='JPEG') File "<decorator-gen-4>", line 2, in screenshot File "D:\Program Files (x86)\Python36-32\lib\site-packages\retry\api.py", line 74, in retry_decorator logger) File "D:\Program Files (x86)\Python36-32\lib\site-packages\retry\api.py", line 33, in __retry_internal return f() File "D:\Program Files (x86)\Python36-32\lib\site-packages\uiautomator2\__init__.py", line 1491, in screenshot return Image.open(buff) File "D:\Program Files (x86)\Python36-32\lib\site-packages\PIL\Image.py", line 2572, in open % (filename if filename else fp)) OSError: cannot identify image file <_io.BytesIO object at 0x04EB0DE0>

目前还没解决

freedom-wy avatar Sep 07 '18 09:09 freedom-wy

我这复现不了

codeskyblue avatar Sep 10 '18 01:09 codeskyblue

重新初始化解决了问题

freedom-wy avatar Sep 25 '18 10:09 freedom-wy

我也出现了这个问题。 但是重新初始化也解决不了。

slightun avatar Sep 30 '19 04:09 slightun

我也出现了这个问题。 但是重新初始化也解决不了。 而且挺奇怪的,我家里一天电脑使用没有出现任何问题,但是到单位,确怎么弄都不行 这个跟win7的权限管理有关系吗。我家里电脑没开UAC,单位的电脑开了UAC,别的没啥区别啦

zhizunbao84 avatar Oct 08 '19 01:10 zhizunbao84

222222222

zhizunbao84 avatar Oct 08 '19 01:10 zhizunbao84

重启手机解决了

bluerheaven avatar May 11 '20 09:05 bluerheaven

关掉“可以让你使用更多网络的工具”,我猜你那个工具开的全局模式。 我今天也遇到这个问题了,然后重新启动weditor发现一行log: Unknown error: ReadTimeout(ReadTimeoutError("HTTPConnectionPool(host='127.0.0.1', port=1080): Read timed out. (read timeout=2.0)")) 就好奇为啥本地地址都连不上,突然反应过来应该是开了"全局模式"。。

pahoehoe avatar Jun 25 '21 02:06 pahoehoe