difficulties in use of Python interface of Palabos

Dear all

I have some difficulties in use of Python interface of Palabos

in Ubuntu 10.04, after Installation of

  • Swig
  • NumPy
  • SciPy
  • Matplotlib
    and definition of PALABOS_ROOT variable, i make and see this:


Swig-file preparation for module core
Swig-file specialization for module int_block
Swig-file specialization for module double_block
Swig-file specialization for module float_block
Swig-file specialization for module double_d2q9
Swig-file specialization for module float_d2q9
Swig-file specialization for module double_d3q19
Swig-file specialization for module float_d3q19
~/Desktop/palabos-v0.7r2/pythonic/src
python /home/sayyed2/Desktop/palabos-v0.7r2/scons/scons.py -f /home/sayyed2/Desktop/palabos-v0.7r2/pythonic/src//SConstruct palabosRoot=/home/sayyed2/Desktop/palabos-v0.7r2 pypalRoot=/home/sayyed2/Desktop/palabos-v0.7r2/pythonic/src/ optimize=true debug=false profile=false MPIparallel=false serialCXX=g++ parallelCXX=mpicxx compileFlags="-Wall" optimFlags="-O3" debugFlags="-g" profileFlags="-pg" includePaths="" linkFlags=""
scons: Reading SConscript files …
scons: done reading SConscript files.
scons: Building targets …
swig -o swig/core/pre_processed/core_wrap.cc -classic -python -c++ swig/core/pre_processed/core.i
g++ -o swig/core/pre_processed/core_wrap.os -c -Wall -O3 -fPIC -I/usr/include/python2.6 -I/home/sayyed2/Desktop/palabos-v0.7r2/src -I/home/sayyed2/Desktop/palabos-v0.7r2/externalLibraries -I. swig/core/pre_processed/core_wrap.cc
swig/core/pre_processed/core_wrap.cc:150:20: error: Python.h: No such file or directory
In file included from /usr/include/python2.6/numpy/ndarrayobject.h:61,
from /usr/include/python2.6/numpy/arrayobject.h:14,
from swig/core/pre_processed/core_wrap.cc:4550:
/usr/include/python2.6/numpy/npy_common.h:71:2: error: #error Must use Python with unicode enabled.
swig/core/pre_processed/core_wrap.cc:781: error: ‘PyObject’ was not declared in this scope
swig/core/pre_processed/core_wrap.cc:781: error: ‘str’ was not declared in this scope
swig/core/pre_processed/core_wrap.cc:782: error: expected ‘,’ or ‘;’ before ‘{’ token
swig/core/pre_processed/core_wrap.cc:805: error: expected initializer before ‘’ token
swig/core/pre_processed/core_wrap.cc:831: error: expected initializer before ‘
’ token
swig/core/pre_processed/core_wrap.cc:885: error: expected initializer before ‘’ token
swig/core/pre_processed/core_wrap.cc:906: error: expected initializer before ‘
’ token
In file included from /usr/include/c++/4.4/stdexcept:38,
from swig/core/pre_processed/core_wrap.cc:2759:
/usr/include/c++/4.4/exception:35: error: expected declaration before end of line
scons: *** [swig/core/pre_processed/core_wrap.os] Error 1
scons: building terminated because of errors.
make: *** [compilation] Error 2

can any one help me?