← Back to team overview

dolfin team mailing list archive

Python.h: No such file or directory

 

Hi,

I'm building dolfin on Mac Snow Leopard. Even tough I know Python.h is found in the default preinstalled python26, which I use (/System/ Library/Frameworks/Python.framework/Versions/2.6/include/python2.6/ Python.h), I get complaints about that particular file:

dolfin/swig/cpp_wrap.cc:150:20: fatal error: Python.h: No such file or directory

How can I tell swig I have the file? Or what to do?

Any ideas be truly appreciated.

Aron



mpic++ -o dolfin/swig/cpp_wrap.os -c -Wall -pipe -ansi - BOOST_UBLAS_NDEBUG -O3 -DHAS_MPI=1 -DMPICH_IGNORE_CXX_SEEK - DPACKAGE_VERSION=\"0.9.3\" -DHAS_PETSC=1 -DHAS_SLEPC=1 -DHAS_SCOTCH=1 - DHAS_UMFPACK=1 -DHAS_GTS=1 -DHAS_CHOLMOD=1 -DHAS_MTL4=1 -DHAS_ZLIB=1 - fno-strict-aliasing -fno-strict-aliasing -fPIC -I. -I/Users/aron/Work/ FEniCS/stable/build/include -I/opt/local/include -I/opt/local/include - I/opt/local/include -I/opt/local/include/libxml2 -I/Users/aron/Work/ FEniCS/stable/build/include -I/Users/aron/Work/FEniCS/stable/build/ include -I/usr/local/include -I/usr/local/lib -I/Users/aron/Work/ FEniCS/stable/build -I/Users/aron/Work/FEniCS/stable/build/include -I/ Users/aron/Work/FEniCS/stable/build/include -I/usr/local/include -I/ usr/local/lib -I/Users/aron/Work/FEniCS/stable/build/include -I/opt/ local/include/UFSPARSE -I/opt/local/include -I/opt/local/include/ glib-2.0 -I/opt/local/lib/glib-2.0/include -I/opt/local/include/ UFSPARSE -I/Users/aron/Work/FEniCS/stable/mtl4 -I/opt/local/include -I/ usr/include -I/opt/local/Library/Frameworks/Python.framework/Versions/ 2.6/include/python2.6 -I/opt/local/Library/Frameworks/Python.framework/ Versions/2.6/include/python2.6 -I/Library/Python/2.6/site-packages/ numpy/core/include -I/Users/aron/Work/FEniCS/stable/build/include -I/ opt/local/include -I/opt/local/include -I/opt/local/include -I/opt/ local/include/libxml2 -I/Users/aron/Work/FEniCS/stable/build/include - I/Users/aron/Work/FEniCS/stable/build/include -I/usr/local/include -I/ usr/local/lib -I/Users/aron/Work/FEniCS/stable/build -I/Users/aron/ Work/FEniCS/stable/build/include -I/Users/aron/Work/FEniCS/stable/ build/include -I/usr/local/include -I/usr/local/lib -I/Users/aron/Work/ FEniCS/stable/build/include -I/opt/local/include/UFSPARSE -I/opt/local/ include -I/opt/local/include/glib-2.0 -I/opt/local/lib/glib-2.0/ include -I/opt/local/include/UFSPARSE -I/Users/aron/Work/FEniCS/stable/ mtl4 -I/opt/local/include -I/usr/include dolfin/swig/cpp_wrap.cc dolfin/swig/cpp_wrap.cc:150:20: fatal error: Python.h: No such file or directory
compilation terminated.
scons: *** [dolfin/swig/cpp_wrap.os] Error 1
scons: building terminated because of errors.
dolfin/swig/cpp_wrap.os failed: Error 1
Failure with exit status: 2
Exit message: There was a problem building dolfin-0.9.3.



Follow ups