LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-31-2021, 02:13 AM   #1
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Rep: Reputation: 108Reputation: 108
python3; wx._core.wxAssertionError, Need to figure out where error occurs.


Hya,

Can experts please direct me to next step?

Situation With python3 script, following messages pop out
Code:
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-BaseException
Colored 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 set
There 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
 
Old 05-31-2021, 02:31 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
probably: https://stackoverflow.com/questions/...-set-in-python
 
1 members found this post helpful.
Old 06-01-2021, 03:12 AM   #3
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

Thanks for your reply. The link is a kind of difficult scenario.

I will update.

cheers
 
Old 06-01-2021, 08:35 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,830

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
Quote:
Originally Posted by kaz2100 View Post
Thanks for your reply. The link is a kind of difficult scenario.
Just check the first answer, "In general:"
 
Old 06-07-2021, 01:35 AM   #5
kaz2100
Senior Member
 
Registered: Apr 2005
Location: Penguin land, with apple, no gates
Distribution: SlackWare > Debian testing woody(32) sarge etch lenny squeeze(+64) wheezy .. bullseye bookworm
Posts: 1,832

Original Poster
Rep: Reputation: 108Reputation: 108
Hya

Thank you for your reply.

Yes, the first answer looks promising, but I was not able to narrow down where I start. (Error messages are inconsistent.)

Meantime, I asked same question at wxpython.org, which gave me the solution. For the time being, I can tinker the program.

regards
 
  


Reply

Tags
2to3, baseexception, python, wx



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
python3 -V returns Python 2.7.12, can't get python3 to work. gene_ Ubuntu 15 03-18-2019 10:39 AM
[SOLVED] making python3.6.4 default python3 Astral Axiom Linux - Newbie 17 04-14-2018 10:55 AM
[SOLVED] how to start python3.6 interpreter just by typing python in terminal not python3.6 bmohanraj91 Linux - Newbie 4 05-10-2017 07:51 AM
After upgrade python3.4 to python3.5.1 , not able to install packages "request" though pip3 YOGESHAS87 Linux - Software 1 08-03-2016 10:38 PM
*_core.h... Where does this come from? smitty1276 Programming 2 12-13-2006 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration