← Back to team overview

kicad-developers team mailing list archive

Building with local Python3 etc

 

So, I updated my CMake and tweaked some variables, and now 'make
install' succeeds without "app verification failed". Also I can start
pcbnew without crashing. However, trying to open the scripting console
in pcbnew gives an error popup. The console reveals that it couldn't
import the 'wx' module.

During make install, I saw this:

cp: cannot overwrite directory
/Users/lijon/Coding/kicad/build/install_py3/KiCad.app/Contents/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages
with non-directory
/usr/local/Cellar/python@3.9/3.9.2_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages

It's non-directory because it's a symlink. It points to
/usr/local/lib/python3.9/site-packages, which does contain the 'wx'
module.

I've tried rerunning cmake with
-DPYTHON_SITE_PACKAGE_PATH=/usr/local/lib/python3.9/site-packages but
I get the same error at make install. Perhaps it's cached somewhere,
how can I clear that without doing the whole build again from scratch?
(which takes a couple of hours on my slow machine...)

-- 
/Jonatan
http://kymatica.com


Follow ups