[Numpy-discussion] Re: Importing Numpy when using libpython

2022-06-09 Thread jensaxel
Hi, Thank you Matthew and Petr - you pointed in the right direction. The 2016-dicussion and Petr's explanation made it clear what the problem was. Petr Viktorin: > Does Racket's ffilib support RTLD_GLOBAL? Yes. All I had to do was to change (ffi-lib path-to-libpython) into (ffi-lib path-to-lib

[Numpy-discussion] Importing Numpy when using libpython

2022-06-08 Thread jensaxel
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