Just tried it again and no beach ball (yes, it’s typically indicative of a stuck process) but errors:
import kicommand
kicommand.KiCommandAction.getInstance().Run()
from kicommand.kicommand import kc
import kicommand.test
Manually verify result:
‘00040’:[‘int list’,
‘0,1 int’,
[0, 1],
‘int list’
],
#Test results have been updated. If all tests succeed, copy the new file
/Users/andrewjohnson/Library/Preferences/kicad/kicommand/tests.txt
over the golden copy in
/Users/andrewjohnson/Library/Preferences/kicad/scripting/plugins/kicommand/test/tests.txt
Traceback (most recent call last):
File “”, line 1, in
File “/Users/andrewjohnson/Library/Preferences/kicad/scripting/plugins/kicommand/test/init.py”, line 1, in
from test import *
File “/Users/andrewjohnson/Library/Preferences/kicad/scripting/plugins/kicommand/test/test.py”, line 251, in
runtests()
File “/Users/andrewjohnson/Library/Preferences/kicad/scripting/plugins/kicommand/test/test.py”, line 45, in runtests
results = unittest.TextTestRunner(verbosity=100).run(fullsuite)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/runner.py”, line 151, in run
test(result)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py”, line 70, in call
return self.run(*args, **kwds)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py”, line 108, in run
test(result)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py”, line 70, in call
return self.run(*args, **kwds)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/suite.py”, line 108, in run
test(result)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py”, line 393, in call
return self.run(*args, **kwds)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py”, line 304, in run
result.startTest(self)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/runner.py”, line 53, in startTest
self.stream.write(self.getDescription(test))
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa/wx/py/shell.py”, line 1247, in writeErr
self.write(text)
File “/private/var/folders/0x/9mt2shv13l3456s8dvjgmdtc0000gn/T/AppTranslocation/FC1CCC48-FCE2-4ED0-81B6-DED9D6A97D50/d/kicad.app/Contents/Frameworks/python/site-packages/wx-3.0-osx_cocoa/wx/_core.py”, line 16711, in getattr
raise PyDeadObjectError(self.attrStr % self._name)
PyDeadObjectError: The C++ part of the Shell object has been deleted, attribute access no longer allowed.