[Numpy-discussion] Long-standing issue with using numpy in embedded CPython
Tue Oct 4 14:05:20 CDT 2011
On Tue, Oct 4, 2011 at 1:28 AM, Robin <firstname.lastname@example.org> wrote:
> On Mon, Oct 3, 2011 at 9:42 PM, Yang Zhang <email@example.com> wrote:
>> It turns out that there's a long-standing problem in numpy that
>> prevents it from being used in embedded CPython environments:
> Just wanted to make the point for reference that in general Numpy does
> work fine in (non-threaded) embedded CPython situations, see for
> example pymex  which embeds Python + Numpy in a Matlab mex file and
> works really well.
> This seems to a be a problem specific to Jepp.
> Just wanted to mention it in case it puts someone off trying something
> unnecessarily in the future.
My (second-hand) understanding is that this is a problem with having
multiple CPython interpreters, which both Jepp and numpy utilize,
incompatibly - is that right? I.e., if either one were restricted to
using a single CPython interpreter, we wouldn't see this problem?
I'm curious how to disable threads in numpy (not an ideal solution).
Googling seems to point me to setting NPY_ALLOW_THREADS to
>  https://github.com/kw/pymex
>> Is there any fix or workaround for this? Thanks.
>> Yang Zhang
>> NumPy-Discussion mailing list
> NumPy-Discussion mailing list
More information about the NumPy-Discussion