CREON Plus

전체

전체 종목을 검색하는 도중에 딴짓(창을 이동하거나 스크롤 움직이거나)하면 강제종료됩니다.

작성일
2021-09-10 오후 3:08:07
조회수
216
파이썬
모의투자
김**
오류 메시지
Fatal Python error: PyEval_RestoreThread: the function must be called with the GIL held, but the GIL is released (the current Python thread state is NULL)
Python runtime state: initialized

Current thread 0x00003f4c (most recent call first):
File "<COMObject CpSysDib.MarketEye>", line 2 in BlockRequest
File "C:\Users\user\PycharmProjects\jusik_gogo\main.py", line 1059 in getCurrPrice_ARRAY
File "C:\Users\user\PycharmProjects\jusik_gogo\main.py", line 765 in inquire_list
File "C:\Users\user\AppData\Local\Programs\Python\Python39-32\lib\tkinter\__init__.py", line 1892 in __call__
File "C:\Users\user\AppData\Local\Programs\Python\Python39-32\lib\tkinter\__init__.py", line 1429 in mainloop
File "C:\Users\user\PycharmProjects\jusik_gogo\main.py", line 1484 in <module>
안녕하세요.

위와 같이 문제가 생깁니다.
tk.Button을 이용해 버튼을 만들어 command로 이벤트 설정을 했습니다.
종목 조회할 때엔 CpUtil.CpCodeMgr 모듈 호출해서 사용했습니다.

구글링을 했는데 python 3.9에 대한 설명을 할 뿐
위의 문제 원인에 대해선 언급이 없길래 여기서 도움 좀 청하고자 썼습니다.

해결방법, 원인이 뭔지 말씀부탁드려요.
감사합니다.
첨부파일
의견(0)

첨부파일을 PDF뷰어로 확인 하실수 있으며, PDF뷰어 미설치 고객께서는 우측 다운로드를 통해 설치 후 이용 가능 합니다.

PDF뷰어 다운로드

인쇄