Re: python (was: Re: [Help-gnucap] getting started with gnucap)

Patrick Mulder <[email protected]>
Newsgroups gmane.comp.gnu.gnucap.devel
Message-ID <CAEx2pdexR2jBWJipgZ9xkM2v=gGb29ptrEniCbjs071FqDA8tA@mail.gmail.com>
On Sat, Feb 17, 2018 at 9:00 AM, Felix Salfelder <[email protected]>
wrote:

> On Fri, Feb 16, 2018 at 11:14:15PM +0100, Patrick Mulder wrote:
> > make[1]: *** No rule to make target `s__out.cc', needed by
> > `python_la-s__out.lo'.  Stop.
>
> forgot to add that one (its just a copy from gnucap/apps)
>
>
On my Debian system, I am able to build the python plugin :


1) except _gnucap.so is missing (but built with python setup.py build )
2) loading python.so from the gnucap main app gives:


gnucap> attach .libs/python.so
transient: already installed, replacing
stashing as transient:0
transient: already installed, replacing
stashing as transient:0
generator: already installed, replacing
stashing as generator:0
gnucap> python example/simple.py
ImportError: numpy.core.multiarray failed to import
ImportError: numpy.core.multiarray failed to import
gnucap> python example/custom_ac.py
Traceback (most recent call last):
  File "example/custom_ac.py", line 6, in <module>
    import numpy as np
  File "/usr/lib/python2.7/dist-packages/numpy/__init__.py", line 153, in
<module>
    from . import add_newdocs
  File "/usr/lib/python2.7/dist-packages/numpy/add_newdocs.py", line 13, in
<module>
    from numpy.lib import add_newdoc
  File "/usr/lib/python2.7/dist-packages/numpy/lib/__init__.py", line 8, in
<module>
    from .type_check import *
  File "/usr/lib/python2.7/dist-packages/numpy/lib/type_check.py", line 11,
in <module>
    import numpy.core.numeric as _nx
  File "/usr/lib/python2.7/dist-packages/numpy/core/__init__.py", line 6,
in <module>
    from . import multiarray
ImportError: /usr/lib/python2.7/dist-packages/numpy/core/multiarray.so:
undefined symbol: PyExc_SystemError
gnucap>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.