[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with g
From: |
Patrick Mulder |
Subject: |
Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap) |
Date: |
Sun, 18 Feb 2018 12:27:02 +0100 |
On Sun, Feb 18, 2018 at 11:16 AM, Felix Salfelder <address@hidden>
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)
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Patrick Mulder, 2018/02/11
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/11
- Message not available
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/11
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Patrick Mulder, 2018/02/11
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/11
- Message not available
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/16
- Message not available
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/17
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Patrick Mulder, 2018/02/18
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap), Felix Salfelder, 2018/02/18
- Re: [Gnucap-devel] python (was: Re: [Help-gnucap] getting started with gnucap),
Patrick Mulder <=
- Re: [Gnucap-devel] gnucap-python, Felix Salfelder, 2018/02/18