新建excel时报这个错?要怎么解决呀?求大神指导
回答
收藏

新建excel时报这个错?要怎么解决呀?求大神指导

小
小宋家
2023-04-07 16:26·浏览量:1432
小
小宋家
发布于 2023-04-07 16:23更新于 2023-04-07 16:261432浏览

2023-04-07 16:21:33.001 python3.7[95829:5768027] Can't find app with identifier com.microsoft.Excel


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 47, in main

    try:

  File "/Users/songjingqi/Library/Application Support/Shadowbot/users/79054176725020673/apps/bc27d3e0-da8f-4928-a4c2-2083c89cb30a/xbot_robot/main.py", line 10, in main

    excel_instance = xbot_visual.excel.launch(launch_way="create", driver_way="auto_check", open_filename=None, save_filename="/Users/songjingqi/Desktop/【ceshi】/ceshi/Workbook.xlsx", isvisible=True, ignoreformula=False, password=None, write_password=None, update_links=False, _block=("main", 1, "启动Excel"))

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

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

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

  File "<string>", line 41, in create

  File "<string>", line 14, in create

  File "<string>", line 18, in _init_office_instance

AttributeError: 'SBScriptableApplication' object has no attribute 'workbooks'

   我用的这个

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