[SOLVED] wxPython Woes

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

[SOLVED] wxPython Woes

Postby hosadeeb » Mar 18th, '24, 01:18

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
Last edited by hosadeeb on Mar 26th, '24, 00:16, edited 1 time in total.
hosadeeb
 
Posts: 103
Joined: Feb 6th, '13, 12:49

Re: wxPython Woes

Postby Germ » Mar 18th, '24, 03:06

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/
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 724
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA

Re: wxPython Woes

Postby hosadeeb » Mar 18th, '24, 09:45

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.
hosadeeb
 
Posts: 103
Joined: Feb 6th, '13, 12:49

Re: wxPython Woes

Postby hosadeeb » Mar 18th, '24, 09:56

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)
Last edited by doktor5000 on Mar 18th, '24, 19:05, edited 1 time in total.
Reason: added code tags
hosadeeb
 
Posts: 103
Joined: Feb 6th, '13, 12:49

Re: [SOLVED] wxPython Woes

Postby hosadeeb » Mar 26th, '24, 00:19

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.
Last edited by hosadeeb on Mar 26th, '24, 11:28, edited 1 time in total.
hosadeeb
 
Posts: 103
Joined: Feb 6th, '13, 12:49

Re: [SOLVED] wxPython Woes

Postby Germ » Mar 26th, '24, 02:10

Glad you got it sorted. :mrgreen:
Starting in 1999: Mandrake > Mandriva > Mageia
Linux User #274693
User avatar
Germ
 
Posts: 724
Joined: Mar 30th, '11, 13:16
Location: Chelsea, Oklahoma USA


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest

cron