使用Workbook.caller()的sys.argv超出范围错误

时间:2015-12-15 18:48:50

标签: python excel xlwings

此问题特定于 xlwings 。我遇到了wb = Workbook.caller()的问题。这导致以下错误:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "WeatherDataAPI.py", line 89, in <module>
    wb = Workbook.caller()
  File "C:\Python27\lib\site-packages\xlwings\main.py", line 234, in caller
    xl_app, xl_workbook = xlplatform.get_open_workbook(fullname, hwnd=sys.argv[4])
IndexError: list index out of range

previous release的xlwings中看起来有类似的问题吗?

感谢任何帮助!

非常感谢!

0 个答案:

没有答案