Re: python (was: Re: [Help-gnucap] getting started with gnucap)
Patrick Mulder <[email protected]>
| Newsgroups | gmane.comp.gnu.gnucap.devel |
|---|---|
| Message-ID | <CAEx2pdcEOyqFeZBaJ8uVGTmQ+H7=jt6WxiLF-3puwPSAgRk-gA@mail.gmail.com> |
On Sun, Feb 18, 2018 at 11:16 AM, Felix Salfelder <[email protected]> wrote: > On Sun, Feb 18, 2018 at 09:25:14AM +0100, Patrick Mulder wrote: > > On my Debian system, I am able to build the python plugin : > > > > there seem to be two use cases, one is running gnucap from python, the > other is running python from gnucap. both make sense to me. maybe only > one way ever worked... > > indeed, there is an example that works now: running python from gnucap. for this I do: $ export LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib $ cd /home/patrick/projects/gnucap/gnucap-python/example Then from inside gnucap I run: gnucap> python loadplot.py ImportError: numpy.core.multiarray failed to import ImportError: numpy.core.multiarray failed to import gnucap> python "print(123)" Could not open print(123) gnucap> python -c "print(123)" Could not open -c gnucap> python "-c print(123)" Could not open -c print(123) There is another example input file, which seems to run but not sure that ir really calls the python loadplot.py script: attach ../.libs/python.so python loadplot.py get eq2-145.ckt store ac vm(2) ac oct 10 1k 100k PS i replaced loadplot.py with print(123)