[Numpy-discussion] c api, ndarray creation

Sergey Petrov qweqwegod at yahoo.com
Tue Nov 5 13:50:58 EST 2013


On Tue, 05 Nov 2013 23:20:45 +0500, Jaime Fernández del Río  
<jaime.frio at gmail.com> wrote:

> On Tue, Nov 5, 2013 at 10:10 AM, Sergey Petrov <qweqwegod at yahoo.com>  
> wrote:
>> Rather stupid question here, but I can't figure out by myself:
>> Why does the following c program segfaults? And how can I avoid it?
>
> You need to call import_array before using the C-API, see here:

Thank you, Jaime, that solved my issue.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20131105/df0f0ebc/attachment.html>


More information about the NumPy-Discussion mailing list