NameError: global name 'stringNode' is not defined

Posted 13 March 2013 - 05:47 AM

Good day everyone, I am working on a script to write input files to a NGSPICE input file. but get some errors. Can I maybe get some help? working with python is total new to me, and I want to learn more about it.

I am again getting the error File "C:\python_scripts\Module_Shade_Ngspice.py", line 129, in <module>
myShadowRun=ModuleShadeNgspice(stringNode, startCellNode, endCellNode)
NameError: name 'stringNode' is not defined

The way I am trying to solve this, is not the right way i guess. But i really don't know how to do it better? Maybe there is something simple i am doing wrong that causes all the problems?