Could not determine wxPython version. Python plugins will not be available.

275 views
Skip to first unread message

Tallis Huther da Costa

unread,
Sep 13, 2023, 5:19:03 PM9/13/23
to KiCad Developers
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


test_wxPython.py

Seth Hillbrand

unread,
Sep 13, 2023, 6:19:39 PM9/13/23
to dev...@kicad.org
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.

KiCad Services Corporation Logo
Seth Hillbrand
Lead Developer
+1-530-302-5483
Long Beach, CA
www.kipro-pcb.com    in...@kipro-pcb.com


--
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 devlist+u...@kicad.org.
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.
Reply all
Reply to author
Forward
0 new messages