[NumPy-Tickets] [NumPy] #1471: Access to private attributes of Py_* objects without using the official C-API

NumPy Trac numpy-tickets@scipy....
Mon May 3 10:32:21 CDT 2010


#1471: Access to private attributes of Py_* objects without using the official
C-API
------------------------+---------------------------------------------------
 Reporter:  stefan      |       Owner:  somebody
     Type:  defect      |      Status:  new     
 Priority:  normal      |   Milestone:  2.0.0   
Component:  numpy.core  |     Version:  devel   
 Keywords:              |  
------------------------+---------------------------------------------------
Description changed by stefan:

Old description:

> PyPy generates proxy objects to many of the standard Python objects
> (Py_Slice, etc.).  These proxy objects only expose the official C-API,
> which NumPy doesn't always respect.
>
> Here is a general log which highlights some of the problems (not all of
> the errors below need to be fixed, but many of them do):
>
> """
> numpy/core/src/multiarray/common.c:616: error: expected ‘(’ before
> ‘PyPyString_Check’
> numpy/core/src/multiarray/scalartypes.c.src:513: error: request for
> member ‘tp_repr’ in something not a structure or union
> numpy/core/src/multiarray/scalartypes.c.src:513: error: request for
> member ‘tp_str’ in something not a structure or union
> numpy/core/src/multiarray/scalartypes.c.src:513: error: request for
> member ‘tp_repr’ in something not a structure or union
> numpy/core/src/multiarray/scalartypes.c.src:513: error: request for
> member ‘tp_str’ in something not a structure or union
> numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:591: error: (Each undeclared
> identifier is reported only once
> numpy/core/src/multiarray/scalartypes.c.src:591: error: for each function
> it appears in.)
> numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalartypes.c.src:2216: error:
> ‘PyUnicodeObject’ has no member named ‘length’
> numpy/core/src/multiarray/scalartypes.c.src:2216: error:
> ‘PyUnicodeObject’ has no member named ‘length’
> numpy/core/src/multiarray/scalarapi.c:375: error: ‘PyComplexObject’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalarapi.c:375: error: expected expression
> before ‘)’ token
> numpy/core/src/multiarray/scalarapi.c:377: error: expected expression
> before ‘)’ token
> numpy/core/src/multiarray/scalarapi.c:694: error: ‘PyStringObject’ has no
> member named ‘ob_shash’
> numpy/core/src/multiarray/scalarapi.c:696: error: ‘PyStringObject’ has no
> member named ‘ob_sstate’
> numpy/core/src/multiarray/scalarapi.c:696: error: ‘SSTATE_NOT_INTERNED’
> undeclared (first use in this function)
> numpy/core/src/multiarray/scalarapi.c:710: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/scalarapi.c:716: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/scalarapi.c:717: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/scalarapi.c:718: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/scalarapi.c:719: error: ‘PyUnicodeObject’ has
> no member named ‘length’
> numpy/core/src/multiarray/scalarapi.c:720: error: ‘PyUnicodeObject’ has
> no member named ‘hash’
> numpy/core/src/multiarray/scalarapi.c:721: error: ‘PyUnicodeObject’ has
> no member named ‘defenc’
> numpy/core/src/multiarray/scalarapi.c:748: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/datetime.c:3:22: error: datetime.h: No such
> file or directory
> numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’
> before ‘oop’
> numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
> (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’
> before ‘oop’
> numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
> (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’
> before ‘oop’
> numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
> (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:307: error: ‘PyUnicodeObject’
> has no member named ‘str’
> numpy/core/src/multiarray/arraytypes.c.src:792: error:
> ‘PyDateTime_IMPORT’ undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:813: error:
> ‘PyDateTime_IMPORT’ undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:910: error:
> ‘PyDateTime_IMPORT’ undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:947: error:
> ‘PyDateTime_IMPORT’ undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:955: error: ‘PyDateTime_Delta’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:955: error: expected
> expression before ‘)’ token
> numpy/core/src/multiarray/arraytypes.c.src:956: error: expected
> expression before ‘)’ token
> numpy/core/src/multiarray/arraytypes.c.src:957: error: expected
> expression before ‘)’ token
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for
> member ‘tp_new’ in something not a structure or union
> numpy/core/src/multiarray/descriptor.c:212: error: expected ‘(’ before
> ‘PyPyDict_Check’
> numpy/core/src/multiarray/descriptor.c:1233: error: ‘PyComplex_Type’
> undeclared (first use in this function)
> numpy/core/src/multiarray/ctors.c:1586: error: expected ‘(’ before
> ‘PyCObject_Check’
> numpy/core/src/multiarray/iterators.c:202: error: ‘PySliceObject’ has no
> member named ‘step’
> numpy/core/src/multiarray/iterators.c:206: error: ‘PySliceObject’ has no
> member named ‘step’
> numpy/core/src/multiarray/iterators.c:217: error: ‘PySliceObject’ has no
> member named ‘start’
> numpy/core/src/multiarray/iterators.c:221: error: ‘PySliceObject’ has no
> member named ‘start’
> numpy/core/src/multiarray/iterators.c:235: error: ‘PySliceObject’ has no
> member named ‘stop’
> numpy/core/src/multiarray/iterators.c:239: error: ‘PySliceObject’ has no
> member named ‘stop’
> numpy/core/src/multiarray/ucsnarrow.c:94: error: ‘PyUnicodeObject’ has no
> member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:95: error: ‘PyUnicodeObject’ has no
> member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:100: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:101: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:102: error: ‘PyUnicodeObject’ has
> no member named ‘length’
> numpy/core/src/multiarray/ucsnarrow.c:103: error: ‘PyUnicodeObject’ has
> no member named ‘hash’
> numpy/core/src/multiarray/ucsnarrow.c:104: error: ‘PyUnicodeObject’ has
> no member named ‘defenc’
> numpy/core/src/multiarray/ucsnarrow.c:116: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:117: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:117: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:118: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:119: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:123: error: ‘PyUnicodeObject’ has
> no member named ‘str’
> numpy/core/src/multiarray/ucsnarrow.c:124: error: ‘PyUnicodeObject’ has
> no member named ‘length’
> numpy/core/src/multiarray/multiarraymodule.c:2255: error:
> ‘PyOS_sighandler_t’ undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule.c:2255: error: expected ‘;’
> before ‘_npy_sig_save’
> numpy/core/src/multiarray/multiarraymodule.c:2256: error: ‘_npy_sig_save’
> undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule.c:2674: error:
> ‘PyOS_sighandler_t’ undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule.c:2674: error: expected ‘;’
> before ‘_npy_sig_save’
> numpy/core/src/multiarray/multiarraymodule.c:2674: error: ‘_npy_sig_save’
> undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule.c:2812: error:
> ‘PyComplex_Type’ undeclared (first use in this function)
> numpy/core/src/multiarray/multiarraymodule.c:2888: error: request for
> member ‘tp_hash’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2893: error: request for
> member ‘tp_hash’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2920: error: request for
> member ‘tp_hash’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
> member ‘tp_richcompare’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
> member ‘tp_compare’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
> member ‘tp_hash’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
> member ‘tp_richcompare’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
> member ‘tp_compare’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
> member ‘tp_hash’ in something not a structure or union
> numpy/core/src/multiarray/multiarraymodule.c:3050: error:
> ‘PyType_GenericNew’ undeclared (first use in this function)
> """

New description:

 PyPy generates proxy objects to many of the standard Python objects
 (Py_Slice, etc.).  These proxy objects only expose the official C-API,
 which NumPy doesn't always respect.

 Here is a general log which highlights some of the problems (not all of
 the errors below need to be fixed, but many of them do):

 {{{
 numpy/core/src/multiarray/common.c:616: error: expected ‘(’ before
 ‘PyPyString_Check’
 numpy/core/src/multiarray/scalartypes.c.src:513: error: request for member
 ‘tp_repr’ in something not a structure or union
 numpy/core/src/multiarray/scalartypes.c.src:513: error: request for member
 ‘tp_str’ in something not a structure or union
 numpy/core/src/multiarray/scalartypes.c.src:513: error: request for member
 ‘tp_repr’ in something not a structure or union
 numpy/core/src/multiarray/scalartypes.c.src:513: error: request for member
 ‘tp_str’ in something not a structure or union
 numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:591: error: (Each undeclared
 identifier is reported only once
 numpy/core/src/multiarray/scalartypes.c.src:591: error: for each function
 it appears in.)
 numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:591: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:606: error: ‘Py_PRINT_RAW’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalartypes.c.src:2216: error: ‘PyUnicodeObject’
 has no member named ‘length’
 numpy/core/src/multiarray/scalartypes.c.src:2216: error: ‘PyUnicodeObject’
 has no member named ‘length’
 numpy/core/src/multiarray/scalarapi.c:375: error: ‘PyComplexObject’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalarapi.c:375: error: expected expression
 before ‘)’ token
 numpy/core/src/multiarray/scalarapi.c:377: error: expected expression
 before ‘)’ token
 numpy/core/src/multiarray/scalarapi.c:694: error: ‘PyStringObject’ has no
 member named ‘ob_shash’
 numpy/core/src/multiarray/scalarapi.c:696: error: ‘PyStringObject’ has no
 member named ‘ob_sstate’
 numpy/core/src/multiarray/scalarapi.c:696: error: ‘SSTATE_NOT_INTERNED’
 undeclared (first use in this function)
 numpy/core/src/multiarray/scalarapi.c:710: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/scalarapi.c:716: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/scalarapi.c:717: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/scalarapi.c:718: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/scalarapi.c:719: error: ‘PyUnicodeObject’ has no
 member named ‘length’
 numpy/core/src/multiarray/scalarapi.c:720: error: ‘PyUnicodeObject’ has no
 member named ‘hash’
 numpy/core/src/multiarray/scalarapi.c:721: error: ‘PyUnicodeObject’ has no
 member named ‘defenc’
 numpy/core/src/multiarray/scalarapi.c:748: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/datetime.c:3:22: error: datetime.h: No such file
 or directory
 numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’ before
 ‘oop’
 numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
 (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’ before
 ‘oop’
 numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
 (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:190: error: ‘Py_complex’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:190: error: expected ‘;’ before
 ‘oop’
 numpy/core/src/multiarray/arraytypes.c.src:204: error: ‘oop’ undeclared
 (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:307: error: ‘PyUnicodeObject’
 has no member named ‘str’
 numpy/core/src/multiarray/arraytypes.c.src:792: error: ‘PyDateTime_IMPORT’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:813: error: ‘PyDateTime_IMPORT’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:910: error: ‘PyDateTime_IMPORT’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:947: error: ‘PyDateTime_IMPORT’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:955: error: ‘PyDateTime_Delta’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:955: error: expected expression
 before ‘)’ token
 numpy/core/src/multiarray/arraytypes.c.src:956: error: expected expression
 before ‘)’ token
 numpy/core/src/multiarray/arraytypes.c.src:957: error: expected expression
 before ‘)’ token
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/arraytypes.c.src:1494: error: request for member
 ‘tp_new’ in something not a structure or union
 numpy/core/src/multiarray/descriptor.c:212: error: expected ‘(’ before
 ‘PyPyDict_Check’
 numpy/core/src/multiarray/descriptor.c:1233: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/ctors.c:1586: error: expected ‘(’ before
 ‘PyCObject_Check’
 numpy/core/src/multiarray/iterators.c:202: error: ‘PySliceObject’ has no
 member named ‘step’
 numpy/core/src/multiarray/iterators.c:206: error: ‘PySliceObject’ has no
 member named ‘step’
 numpy/core/src/multiarray/iterators.c:217: error: ‘PySliceObject’ has no
 member named ‘start’
 numpy/core/src/multiarray/iterators.c:221: error: ‘PySliceObject’ has no
 member named ‘start’
 numpy/core/src/multiarray/iterators.c:235: error: ‘PySliceObject’ has no
 member named ‘stop’
 numpy/core/src/multiarray/iterators.c:239: error: ‘PySliceObject’ has no
 member named ‘stop’
 numpy/core/src/multiarray/ucsnarrow.c:94: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:95: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:100: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:101: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:102: error: ‘PyUnicodeObject’ has no
 member named ‘length’
 numpy/core/src/multiarray/ucsnarrow.c:103: error: ‘PyUnicodeObject’ has no
 member named ‘hash’
 numpy/core/src/multiarray/ucsnarrow.c:104: error: ‘PyUnicodeObject’ has no
 member named ‘defenc’
 numpy/core/src/multiarray/ucsnarrow.c:116: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:117: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:117: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:118: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:119: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:123: error: ‘PyUnicodeObject’ has no
 member named ‘str’
 numpy/core/src/multiarray/ucsnarrow.c:124: error: ‘PyUnicodeObject’ has no
 member named ‘length’
 numpy/core/src/multiarray/multiarraymodule.c:2255: error:
 ‘PyOS_sighandler_t’ undeclared (first use in this function)
 numpy/core/src/multiarray/multiarraymodule.c:2255: error: expected ‘;’
 before ‘_npy_sig_save’
 numpy/core/src/multiarray/multiarraymodule.c:2256: error: ‘_npy_sig_save’
 undeclared (first use in this function)
 numpy/core/src/multiarray/multiarraymodule.c:2674: error:
 ‘PyOS_sighandler_t’ undeclared (first use in this function)
 numpy/core/src/multiarray/multiarraymodule.c:2674: error: expected ‘;’
 before ‘_npy_sig_save’
 numpy/core/src/multiarray/multiarraymodule.c:2674: error: ‘_npy_sig_save’
 undeclared (first use in this function)
 numpy/core/src/multiarray/multiarraymodule.c:2812: error: ‘PyComplex_Type’
 undeclared (first use in this function)
 numpy/core/src/multiarray/multiarraymodule.c:2888: error: request for
 member ‘tp_hash’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2893: error: request for
 member ‘tp_hash’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2920: error: request for
 member ‘tp_hash’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
 member ‘tp_richcompare’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
 member ‘tp_compare’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2927: error: request for
 member ‘tp_hash’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
 member ‘tp_richcompare’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
 member ‘tp_compare’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:2928: error: request for
 member ‘tp_hash’ in something not a structure or union
 numpy/core/src/multiarray/multiarraymodule.c:3050: error:
 ‘PyType_GenericNew’ undeclared (first use in this function)
 }}}

--

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1471#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list