[C++-sig] problem with embedded python
John Gerschwitz
johng at quakes.uq.edu.au
Mon Mar 8 03:00:46 CET 2004
Thanks for your reply Pierre,
> The error is when linking ... to be able to help you, I would need the
> linking command.
>
Yes I was wonderng whether I am missing a library or whether it is a
library ordering problem.
Here is the link step.
icc -o SerialAccessorTest.exe ./obj/SerialAccessorTest.o
./obj/AbstractAccessor.o ./obj/PointData.o ./obj/ParallelAccessor.o
./obj/SerialAccessorTestCase.o ./obj/SerialAccessor.o ./obj/Data.o
-L/raid2/john/newEsys/esys/tools/CppUnitTest/lib
-L/raid2/john/newEsys/esys/utils/lib
-L/raid2/john/newEsys/esys/escript/lib
-L/raid2/john/newEsys/esys/tools/boost/bin/boost/libs/python/build/libboost_python.so/intel-ia64/debug/shared-linkable-true
-L/usr/local/lib/python2.2/config
-L/opt/intel/cmplrs/80.058/intel_cc_80/lib -lCppUnitTest -lUtils
-lescript -lboost_python-intel-d-1_31 -lpython2.2 -ldl -lutil -lguide
> 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