Traceback (most recent call last):
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/PIL/JpegImagePlugin.py", line 630, in _save
rawmode = RAWMODE[im.mode]
KeyError: 'RGBA'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 87, in <module>
main()
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/xbot_interpreter.py", line 49, in main
mod.main(args)
File "/Users/bowen/Library/Application Support/Shadowbot/users/600947662951550976/apps/36e0cfd6-10b2-48e1-8f85-c52c52a42795/xbot_robot/main.py", line 22, in main
], _block=("main", 3, "京东登录"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 82, in run
File "/Users/bowen/Library/Application Support/Shadowbot/users/600947662951550976/apps/36e0cfd6-10b2-48e1-8f85-c52c52a42795/xbot_extensions/activity_7bca6d/process6.py", line 150, in main
], _block=("京东登录", 73, "调用流程"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 82, in run
File "/Users/bowen/Library/Application Support/Shadowbot/users/600947662951550976/apps/36e0cfd6-10b2-48e1-8f85-c52c52a42795/xbot_extensions/activity_7bca6d/process2.py", line 29, in main
captcha_result = xbot_visual.web_service.captcha(engine_type="shadowbot", username=None, password=xbot_visual.decrypt(""), captcha_type="18", third_party_code="ttshitu_18_predict", image_source="web_element", image_file=None, image_browser=web_page, image_web_selector=start_element, image_window="", image_win_selector=None, image_region_x1="0", image_region_y1="0", image_region_x2="0", image_region_y2="0", imageback_source="screen", back_image_file=None, imageback_browser=web_page, imageback_web_selector=None, imageback_window="0", imageback_win_selector=None, imageback_region_x1=lambda: start_bound.right, imageback_region_y1=lambda: background_bound2.top, imageback_region_x2=lambda: background_bound2.right, imageback_region_y2=lambda: background_bound2.bottom, typename=None, is_to96dpi=False, remark=None, _block=("计算滑块距离", 8, "验证码识别"))
File "<string>", line 89, in wrapper
File "<string>", line 84, in wrapper
File "<string>", line 799, in captcha
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/PIL/Image.py", line 2320, in save
save_handler(self, fp, filename)
File "/Applications/影刀.app/Contents/Resources/app/node_modules/xbot-engine/lib/lib/python3.7/site-packages/PIL/JpegImagePlugin.py", line 632, in _save
raise OSError(f"cannot write mode {im.mode} as JPEG") from e
OSError: cannot write mode RGBA as JPEG