打开/新建Excel出错
回答
收藏

打开/新建Excel出错

y
yuankr
2023-10-16 10:53·浏览量:261
y
yuankr
发布于 2023-10-16 10:53261浏览

打开/新建Excel出错,错误提示:

stat: path should be string, bytes, os.PathLike or integer, not SelectFileDialogResult_Dynamic_f08435ec_6bce_11ee_9b28_4ccc6abd8c78

Traceback (most recent call last):

 File "D:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\runpy.py", line 193, in _run_module_as_main

   "__main__", mod_spec)

 File "D:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\runpy.py", line 85, in _run_code

   exec(code, run_globals)

 File "D:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\site-packages\xbot_interpreter.py", line 94, in <module>

   main()

 File "D:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\site-packages\xbot_interpreter.py", line 55, in main

   mod.main(args)

 File "C:\Users\yuankr\AppData\Local\ShadowBot\users\586089499938537474\apps\016979d3-587c-4bea-867e-b6b51565cc58\xbot_robot\main.py", line 10, in main

   excel_instance = xbot_visual.excel.launch(launch_way="open", driver_way="auto_check", open_filename=select_file_dialog, save_filename="", isvisible=True, ignoreformula=False, password=None, write_password=None, update_links=False, _block=("main", 2, "打开/新建Excel"))

 File "<string>", line 89, in wrapper

 File "<string>", line 84, in wrapper

 File "<string>", line 53, in launch

 File "D:\Program Files (x86)\ShadowBot\shadowbot-5.13.33\python\lib\genericpath.py", line 19, in exists

   os.stat(path)

TypeError: stat: path should be string, bytes, os.PathLike or integer, not SelectFileDialogResult_Dynamic_f08435ec_6bce_11ee_9b28_4ccc6abd8c78


收藏
全部回答1
最新
发布回答
回答