Can't find installed Python packages in KiCAD scripting console

I am trying to test out KiCAD Part Manager. I’ve got nearly everything working, but I can’t seem to get the python dependencies working in the KiCAD python environment. I’ve installed the Python MySQL connector and wxPython in Python 2.7, and when I try to run it from the command line, the window pops up and connects to my SQL database.

My impression though is that this should be running in pcbnew, not the command line. When I try to run it from the pcbnew python console, it cannot find mysql.connect. I’ve tried lots of permutations on sys.path.append() to point to the package installed directory, but that didn’t allow me to import it.

Any suggestions on how to get my KiCAD Python Path set up correctly? One thing that seems to complicate all of this is that I am running MacOS 10.15.5, and the app privacy stuff has long given me trouble. My KiCAD version is 5.1.5-0-10-14.

Please let me know if I’ve missed any important details to share, and thanks!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.