title: Python C-API and Numpy: core dump on import_array
body: <pre><code>//testNumpy.c
  #include&lt;Python.h&gt;
  #include&lt;numpy/arrayobject.h&gt;
  #include&lt;stdio.h&gt;
  int main(){
      printf("import_array\n");fflush(stdout);
      import_array();
      printf("import_array done\n");fflush(stdout);
  }
  
  $ gcc -I/usr/include/python2.6 -lpython2.6 testNumpy.c&amp;&amp;./a.out
  import_array
  Segmentation fault (core dumped)
  </code></pre>
  
  <p>What could I possibly be doing wrong on such a simple program?  I'm tearing my hair out :-)</p>