Open ag-123 opened 5 years ago
i tried to use an include guard in api.h
/* Simplified Ngspice API for CFFI parser */
#ifndef __SIMP_CEFI_API__
#define __SIMP_CEFI_API__
typedef struct ngcomplex
{ ...
...
#endif
i got this error instead
CDefError: cannot parse "#ifndef __SIMP_CEFI_API__"
<cdef source string>:2:1: Directives not supported yet
i think the error may be related to jupyter-notebook. if i reset and clear all the outputs. then step every cell all over again, the error goes away
in linux opensuse leap15.1, i did a virtualenv myPySpice then myPySpice/bin/activate - this gets into the virtual environment setup for myPySpice next i installed PySpice using pip3 install PySpice i setup a jupyter-notebook with the correct myPySpice virtual env for both cases below among the examples i tried: this one seem to work just ok no errors https://pyspice.fabrice-salvaire.fr/examples/basic-usages/subcircuit.html but when i tried this one https://pyspice.fabrice-salvaire.fr/examples/ngspice-shared/external-source.html at the codes:
i got an error as such:
I've been trying to figure out what may be wrong, but strangely it successfully plots the graph that is shown in the example external source plot