[C++-sig] problem with embedded python

John Gerschwitz johng at quakes.uq.edu.au
Thu Feb 26 07:41:55 CET 2004

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.

    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 *
"/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

More information about the Cplusplus-sig mailing list