You have installed a mis-matched wxPython version. The version of wxPython must match the version of libwxwidgets or you will get incompatibilities/crashes.
Instead of installing using pip, you need to install wxPython using your package manager. [image: KiCad Services Corporation Logo] Seth Hillbrand *Lead Developer* +1-530-302-5483 Long Beach, CA www.kipro-pcb.com [email protected] On Wed, Sep 13, 2023 at 2:19 PM Tallis Huther da Costa < [email protected]> wrote: > Hello all, > > I am trying to compile and run KiCad locally in a clean Ubuntu VM. I > installed wxWidgets from source and installed wxPython with the following > command: > pip install wxPython --log ~/Downloads/wxPython_install.log -v > > I was able to download and run wxPython demos. > > I started kicad with the command below: > > export KICAD_RUN_FROM_BUILD_DIR=1 > > kicad/kicad & > > After starting eeschema, it shows an error: > > > This error comes from > https://gitlab.com/kicad/code/kicad/-/blob/master/scripting/python_scripting.cpp?ref_type=heads#L121. > However, when manually running the Python script test_wxPython.py the > output is: > ubuntuuser@ubuntuuservm:~/Documents/kicad$ python3 test_wxPython.py > 4.2.1 gtk3 (phoenix) wxWidgets 3.2.2.1 > > It seems that the string 'version' is empty in line 115 ( > https://gitlab.com/kicad/code/kicad/-/blob/master/scripting/python_scripting.cpp?ref_type=heads#L115). > It seems that Python instance within KiCad is not able to figure out > wxPython's installation. > > May I get help to resolve this issue? Is there another way to install > wxPython which works with a local compilation of KiCad? > > Thanks, > Tallis > > > -- > You received this message because you are subscribed to the Google Groups > "KiCad Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/a/kicad.org/d/msgid/devlist/c6160d4b-b6fe-40da-b7d5-164a5e92e837n%40kicad.org > <https://groups.google.com/a/kicad.org/d/msgid/devlist/c6160d4b-b6fe-40da-b7d5-164a5e92e837n%40kicad.org?utm_medium=email&utm_source=footer> > . > -- You received this message because you are subscribed to the Google Groups "KiCad Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/kicad.org/d/msgid/devlist/CAFdeG-qQs0FRMB2_qciSXV_NpTOpbsWhh30R4SrS%2BQNxGmCtYA%40mail.gmail.com.
