python3; wx._core.wxAssertionError, Need to figure out where error occurs.
by kaz2100 from LinuxQuestions.org on (#5JFBY)
Hya,
Can experts please direct me to next step?
Situation With python3 script, following messages pop outCode:wx._core.wxAssertionError: C++ assertion "!GetImageList(wxIMAGE_LIST_SMALL)" failed at ../src/generic/listctrl.cpp(5443) in OnGetItemImage(): List control has an image list, OnGetItemImage or OnGetItemColumnImage should be overridden.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/path/to/pycharm-community-2021.1/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_tracing.py", line 23, in update_globals_dict
globals_dict.update(new_globals)
SystemError: <built-in method update of dict object at 0x7f93dd238140> returned a result with an error set
SystemError: <built-in function len> returned a result with an error set
python-BaseExceptionColored part varies depending on several factors. It may be Code: print(item, len(self.refs))
SystemError: <built-in function len> returned a result with an error setThere is NEITHER a function/method named GetImageList nor variable wxIMAGE_LIST_SMALL within the code.
It looks like that something happens outside the user code.
Than, I am lost. So far, no successful web search yet.
This happened during python2 to 3 conversion of an old database, there has been no problem with python2 here.
Any suggestion will be appreciated.
cheers
Can experts please direct me to next step?
Situation With python3 script, following messages pop outCode:wx._core.wxAssertionError: C++ assertion "!GetImageList(wxIMAGE_LIST_SMALL)" failed at ../src/generic/listctrl.cpp(5443) in OnGetItemImage(): List control has an image list, OnGetItemImage or OnGetItemColumnImage should be overridden.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/path/to/pycharm-community-2021.1/plugins/python-ce/helpers/pydev/_pydevd_frame_eval/pydevd_frame_tracing.py", line 23, in update_globals_dict
globals_dict.update(new_globals)
SystemError: <built-in method update of dict object at 0x7f93dd238140> returned a result with an error set
SystemError: <built-in function len> returned a result with an error set
python-BaseExceptionColored part varies depending on several factors. It may be Code: print(item, len(self.refs))
SystemError: <built-in function len> returned a result with an error setThere is NEITHER a function/method named GetImageList nor variable wxIMAGE_LIST_SMALL within the code.
It looks like that something happens outside the user code.
Than, I am lost. So far, no successful web search yet.
This happened during python2 to 3 conversion of an old database, there has been no problem with python2 here.
Any suggestion will be appreciated.
cheers