Page 1 of 1

[SOLVED] wxPython Woes

PostPosted: Mar 18th, '24, 01:18
by hosadeeb
Hi there,
On my Mageia 9 box, regularly updated, I'm having the following:
  • wxGlade, as installed the usual way, i.e. from the distro's depo, couldn't find wxglade.py using the installed script: wxpython in the /usr/bin/ directory.
  • I tried downloading the package from Github, and I got a core dump on launching wxpython from it.
  • I then resorted to putting the needed path explicitly in the script, but then the programme crashed with a core dump!

So, without my explicit path the script wouldn't find the initial entry point, but then with the path wxPython crashes.

Any hints or ideas on a remedy to this? Thanks in advance.

Hosam Adeeb Nashed

Re: wxPython Woes

PostPosted: Mar 18th, '24, 03:06
by Germ
How about a symlink from where it is to where your app thinks it should be?

Have a look here:
https://www.freecodecamp.org/news/symli ... olic-link/

Re: wxPython Woes

PostPosted: Mar 18th, '24, 09:45
by hosadeeb
Well, the launching script uses a convoluted way of finding the necessary file, so I just opted for providing an absolute path. But then, when the file is found, and the launching starts, a core dump happens. As I said, the same happens when I try to launch the programme using the freshly downloaded package, I mean when the file is located in the same directory.

Re: wxPython Woes

PostPosted: Mar 18th, '24, 09:56
by hosadeeb
Code: Select all
INFO    : Starting wxGlade version "1.1.0a2" on Python 3.10.11
INFO    : Using wxPython 4.2.0
INFO    : Loading "wconfig" modules from /home/hosadeeb/Downloads/Programming Stuff/Python/wxGlade-master/widgets/widgets.txt:
INFO    : Load code generators:
INFO    :   lisp generator loaded
INFO    :   python generator loaded
INFO    :   C++ generator loaded
INFO    :   XRC generator loaded
INFO    :   perl generator loaded
INFO    : Loading widgets from /home/hosadeeb/Downloads/Programming Stuff/Python/wxGlade-master/widgets/widgets.txt:
INFO    :    frame
INFO    :    dialog
INFO    :    panel
INFO    :    notebook
INFO    :    splitter_window
INFO    :    button
INFO    :    toggle_button
INFO    :    bitmap_button
INFO    :    spin_button
INFO    :    text_ctrl
INFO    :    choice
INFO    :    combo_box
INFO    :    list_box
INFO    :    check_list_box
INFO    :    checkbox
INFO    :    radio_button
INFO    :    radio_box
INFO    :    spin_ctrl
INFO    :    spin_ctrl_double
INFO    :    slider
INFO    :    gauge
09:55:22: Debug: Adding duplicate image handler for 'Windows bitmap file'
09:55:22: Debug: Adding duplicate animation handler for '1' type
09:55:22: Debug: Adding duplicate animation handler for '2' type
INFO    :    calendar_ctrl
INFO    :    generic_calendar_ctrl
INFO    :    datepicker_ctrl
INFO    :    timepicker_ctrl
INFO    :    list_ctrl
INFO    :    tree_ctrl
INFO    :    grid
INFO    :    static_text
INFO    :    hyperlink_ctrl
INFO    :    static_line
INFO    :    static_bitmap
INFO    :    spacer
INFO    :    property_grid_manager
INFO    :    search_ctrl
INFO    :    custom_widget
INFO    :    menubar
INFO    :    toolbar
INFO    :    statusbar
INFO    : Load sizer generators:
INFO    :   for lisp
INFO    :   for python
INFO    :   for C++
INFO    :   for XRC
INFO    :   for perl
Segmentation fault (core dumped)

Re: [SOLVED] wxPython Woes

PostPosted: Mar 26th, '24, 00:19
by hosadeeb
I finally got to make it work! Haphazardly, I tried launching the wxglade.py file, rather than the file with the same name, but without the extension, though it is the one that should be used. Et VoilĂ !!!

Oh, by the way: That worked only from the downloaded archive from GitHub, but didn't work when I tried doing the same with version installed from the repo.

Re: [SOLVED] wxPython Woes

PostPosted: Mar 26th, '24, 02:10
by Germ
Glad you got it sorted. :mrgreen: