새로운 엑셀 시트 왜 안열릴까요?
해결됨
[신규 개정판] 코딩 입문자를 위한 파이썬 완벽가이드
맥 사용자 인데 엑셀 찍먹 하는 강의(xlwings)에서 wb = xw.Book() 실행하면 강의에서 처럼 새로운 엑셀 시트가 열리는게 아니고 에러 뜨면서 엑셀 홈 창이 뜨네요. 엑셀 한번 실행 시켜준 상태에서는 새로운 엑셀 시트가 잘 열리네요;; import xlwings as xw wb = xw.Book() # 왜 안될까??? --------------------------------------------------------------------------- IndexError Traceback (most recent call last) Cell In[38], line 3 1 import xlwings as xw ----> 3 wb = xw.Book() # 왜 안될까??? File /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/xlwings/main.py:963, in Book.__init__(self, fullname, update_links, read_only, format, password, write_res_password, ignore_read_only_recommended, origin, delimiter, editable, notify, converter, add_to_mru, local, corrupt_load, impl, json, mode, engine, **kwargs) 961 else: 962 app = App() --> 963 impl = app.books[0].impl 965 self.impl = impl File /Library/Frameworks/Python.framework/Versions/3.13/lib/python3.13/site-packages/xlwings/main.py:76, in Collection.__getitem__(self, key) 74 length = len(self) 75 if key >= length: ---> 76 raise IndexError("Index %s out of range (%s elements)" % (key, length)) 77 if key < 0: 78 if key < -length: IndexError: Index 0 out of range (0 elements)
- python
- xlwings





