I’m trying to use the python interface of pcbnew to export/import Specctra DSN/SES files, but I’m running into some trouble.
I’ve installed the KiCad nightly PPA on Ubuntu 20.04 following the instructions here. However, when I call ExportSpecctraDSN(“output.dsn”) it returns false. Other commands seem to work fine such as printing out the modules in the file.
Does anyone have any suggestions for how to debug further into what might be going wrong? I’ve checked that exporting works from the pcbnew UI. Importing is broken similarly.
import sys sys.path.insert(1, '/usr/lib/kicad-nightly/lib/python3/dist-packages/') import pcbnew b = pcbnew.LoadBoard(sys.argv) for m in b.GetModules(): print(m) assert(pcbnew.ExportSpecctraDSN("TMP.dsn"))