Open zhaofeng-shu33 opened 3 years ago
Same problem persists in Ubuntu 18.04.
This appears to be an ngspice issue (https://sourceforge.net/p/ngspice/discussion/133842/thread/8b0d3c1d/?limit=25):
"ngSpice_Command returns 1 if the internal function shared_exit() has been called to terminate ngspice. This may happen after having sent the 'quit' command or due to an error during execution in ngspice.dll."
I would try out the following patch:
https://sourceforge.net/u/thejackal360/ngspice/ci/28839e88384971e36c1374c7a3738d560e4f95b0/
Environment (OS, Python version, PySpice version, simulator)
Windows 10, Python 38, v1.5, ngspice
Expected Behaviour
The code should not raise exception.
Actual Behaviour
Steps to reproduce the behaviour
Run this example with uncommented last line
ngspice.quit()
.