[Scipy-tickets] [SciPy] #1365: scipy/sparse/sparsetools/csr_wrap.cxx:2452:51: error: 'PyCObject_Import' was not declared in this scope

SciPy Trac scipy-tickets@scipy....
Mon Jan 17 07:07:34 CST 2011


#1365: scipy/sparse/sparsetools/csr_wrap.cxx:2452:51: error: 'PyCObject_Import'
was not declared in this scope
--------------------------+-------------------------------------------------
 Reporter:  pj            |       Owner:  cdavid
     Type:  defect        |      Status:  new   
 Priority:  normal        |   Milestone:  0.9.0 
Component:  Build issues  |     Version:  devel 
 Keywords:                |  
--------------------------+-------------------------------------------------
 scipy-0.9.0b1 compilation failed with python 3.2rc1 and gcc 4.5.2

 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h:45:0: warning:
 "PyInt_AsLong" redefined
 scipy/sparse/sparsetools/csr_wrap.cxx:757:0: note: this is the location of
 the previous definition
 scipy/sparse/sparsetools/csr_wrap.cxx: In function 'swig_module_info*
 SWIG_Python_GetModule()':
 scipy/sparse/sparsetools/csr_wrap.cxx:2452:51: error: 'PyCObject_Import'
 was not declared in this scope
 scipy/sparse/sparsetools/csr_wrap.cxx: In function 'void
 SWIG_Python_SetModule(swig_module_info*)':
 scipy/sparse/sparsetools/csr_wrap.cxx:2521:92: error:
 'PyCObject_FromVoidPtr' was not declared in this scope
 scipy/sparse/sparsetools/csr_wrap.cxx:2512:54: warning: unused variable
 'swig_empty_runtime_method_table'
 scipy/sparse/sparsetools/csr_wrap.cxx: In function 'swig_type_info*
 SWIG_Python_TypeQuery(const char*)':
 scipy/sparse/sparsetools/csr_wrap.cxx:2544:60: error:
 'PyCObject_AsVoidPtr' was not declared in this scope
 scipy/sparse/sparsetools/csr_wrap.cxx:2549:51: error:
 'PyCObject_FromVoidPtr' was not declared in this scope
 In file included from scipy/sparse/sparsetools/py3k.h:23:0,
                  from scipy/sparse/sparsetools/csr_wrap.cxx:2798:
 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h: In function 'FILE*
 npy_PyFile_Dup(PyObject*, char*)':
 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h:167:48: warning:
 deprecated conversion from string constant to 'char*'
 ...

 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h:258:60: warning:
 deprecated conversion from string constant to 'char*'
 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h: At global scope:
 /v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include/numpy/npy_3kcompat.h:352:1: warning: 'void
 simple_capsule_dtor(PyObject*)' defined but not used
 error: Command "g++ -pthread -DNDEBUG -g -fwrapv -O3 -Wall -O3
 -mtune=native -march=native -fPIC -D__STDC_FORMAT_MACROS=1
 -I/v/linux26_x86_64/lang/python/3.2rc1-gcc/lib/python3.2/site-
 packages/numpy/core/include
 -I/v/linux26_x86_64/lang/python/3.2rc1-gcc/include/python3.2m -c
 scipy/sparse/sparsetools/csr_wrap.cxx -o
 build/temp.linux-x86_64-3.2/scipy/sparse/sparsetools/csr_wrap.o" failed
 with exit status 1

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1365>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list