Hi,

On Wed, Jun 8, 2022 at 7:34 PM <jensa...@soegaard.net> wrote:
>
> Hi All,
>
> Hope this is the right forum.
>
> I am working on using Numpy from the programming language Racket.
>
> My plan of attack is to use Python via `libpython`.
> That is, from Racket I use `ffilib` to load `libpython` and from there I use 
> the C API
> to control Python.
>
> Here is what works at the moment:
>
> 1. From Racket I can load `libpython` via `ffilib`.
> 2. It is possible to initialize a Python process and run Python programs in 
> it.
> 3. It is possible to import modules written in Python.
>
> What doesn't work is importing `numpy`.
>
> The error I get when I run `import numpy` is:
>
>     ImportError: 
> dlopen(/usr/local/lib/python3.10/site-packages/numpy/core/_multiarray_umath.cpython-310-darwin.so,
>  0x0002):
>                           symbol not found in flat namespace 
> '_PyBaseObject_Type'

There is some discussion of libpython, embedded interpreters and the
Python namespace symbols here:

https://mail.python.org/pipermail/distutils-sig/2016-February/028275.html

and the following discussion, especially:

https://mail.python.org/pipermail/distutils-sig/2016-February/028286.html

Cheers,

Matthew
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to