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.
wx_version = ""
try:
    from wx import version
    wx_version = version()

    # Import wx modules that re-initialize wx globals, because they break wxPropertyGrid
    # (and probably some other stuff) if we let this happen after we already have started
    # mutating those globals.
    import wx.adv, wx.html, wx.richtext
    print(wx_version)

except:
    pass

Reply via email to