Closed minecraft2048 closed 6 years ago
fixed in 62d08ea
Doesn't look like this fix (62d08ea) has made it to the latest release on pip. I just did a fresh install of pyspice using pip and its not in PySpice/Spice/NgSpice/SimulationType.py, I had to add it manually.
It looks like release 1.2 (June 7, 2018) just predates this bug fix. Is it possible to up the release version number so we don't have to manually add changes in #62d08ea every we do a pip install?
Hi, I'm not sure whether my problem is same to that or not. In my case, .simulator doesn't work... please help me..
2020-01-10 23:30:39,656 - PySpice.Spice.NgSpice.Shared.NgSpiceShared - Shared.INFO - New instance for id 0
CDefError Traceback (most recent call last)
I have one of the errors
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-6-475d4280ae1b> in <module>()
----> 1 simulator = circuit.simulator(temperature=25, nominal_temperature=25)
2 analysis = simulator.ac(start_frequency=1@u_Hz, stop_frequency=1@u_MHz, number_of_points=10, variation='dec')
2 frames
/usr/local/lib/python3.6/dist-packages/PySpice/Spice/NgSpice/Simulation.py in __init__(self, circuit, **kwargs)
97 ngspice_shared = kwargs.get('ngspice_shared', None)
98 if ngspice_shared is None:
---> 99 self._ngspice_shared = NgSpiceShared.new_instance()
100 else:
101 self._ngspice_shared = ngspice_shared
AttributeError: type object 'NgSpiceShared' has no attribute 'new_instance'
which release are you using ?
Environment (OS, Python version, PySpice version, simulator)
OS: Arch Linux Pyspice version:
Python version:
Ngspice version:
Expected Behaviour
The example runs
Actual Behaviour
It crashes with this debug log:
Steps to reproduce the behaviour
I'm following this example: https://pyspice.fabrice-salvaire.fr/examples/resistor/voltage-divider.html on IPython
The question is which version of Ngspice that is supported?