[C++-sig] problem with embedded python

Pierre Barbier de Reuille pierre.barbier at cirad.fr
Thu Feb 26 09:56:18 CET 2004


The error is when linking ... to be able to help you, I would need the
linking command.

On Thu, 2004-02-26 at 07:41, John Gerschwitz wrote:
> Can anybody tell me why I am getting the following error. The problem 
> C++ code
> looks like this . The problem occurs trying to import numarray.
> 
>    Py_Initialize();
>     handle<> numarrayModule(PyImport_ImportModule("numarray"));
>     numeric::array pointData(make_tuple(1,2,3,4));
> 
> Thanks John
> 
> Traceback (most recent call last):
>   File "/usr/local/lib/python2.2/site-packages/numarray/__init__.py", 
> line 1, in ?
>     from numarrayall import *
>   File "/usr/local/lib/python2.2/site-packages/numarray/numarrayall.py", 
> line 1, in ?
>     from numerictypes import *
>   File 
> "/usr/local/lib/python2.2/site-packages/numarray/numerictypes.py", line 
> 33, in ?
>     from typeconv import typeConverters as _typeConverters
>   File "/usr/local/lib/python2.2/site-packages/numarray/typeconv.py", 
> line 6, in ?
>     import _conv
> ImportError: /usr/local/lib/python2.2/site-packages/numarray/_conv.so: 
> undefined symbol: PyCObject_Type
> 
> 
> 
> _______________________________________________
> C++-sig mailing list
> C++-sig at python.org
> http://mail.python.org/mailman/listinfo/c++-sig
-- 
Pierre Barbier de Reuille

INRA - UMR Cirad/Inra/Cnrs/Univ.MontpellierII AMAP
Botanique et Bio-informatique de l'Architecture des Plantes
TA40/PSII, Boulevard de la Lironde
34398 MONTPELLIER CEDEX 5, France

tel   : (33) 4 67 61 65 77    fax   : (33) 4 67 61 56 68 





More information about the Cplusplus-sig mailing list