← Back to team overview

python-meep team mailing list archive

Latest Release Build Problems

 

Hello!

I am very excited to try using MEEP within python (especially for use with
3D geometry files), but have not had much success building
python-meep.1.3.2. I suspect this has more to do with how my system is set
up than with the package itself, but perhaps one of you can see where I've
gone wrong. I'm using Ubuntu 9.04 with python2.6.5, libmeep - Meep version
1.1.1, and swig 2.0.0. The output of sudo ./make appears below:


robinson@robinson-laptop:~/Shellscripts/Py_Scripts/python-meep-launchpad-LATEST_RELEASE$
sudo ./make
[sudo] password for robinson:
Directories for SWIG -I option :  ['/usr/include']
Directories for -L option :  ['/usr/lib']
running clean
'build/lib.linux-i686-2.6' does not exist -- can't clean it
'build/bdist.linux-i686' does not exist -- can't clean it
'build/scripts-2.6' does not exist -- can't clean it
Directories for SWIG -I option :  ['/usr/include']
Directories for -L option :  ['/usr/lib']
running build_ext
building '_meep' extension
swigging meep.i to meep_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/include -o
meep_wrap.cpp meep.i
creating build
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/python2.6 -c
meep_wrap.cpp -o build/temp.linux-i686-2.6/meep_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
meep_wrap.cpp:150:20: error: Python.h: No such file or directory
meep_wrap.cpp:3254:4: error: #error "This python version requires swig to be
run with the '-classic' option"
In file included from meep_wrap.cpp:3675:
custom.hpp:39:30: error: numpy/npy_common.h: No such file or directory
In file included from /usr/include/python2.6/numpy/arrayobject.h:14,
                 from custom.hpp:40,
                 from meep_wrap.cpp:3675:
/usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
Python with unicode enabled.
meep_wrap.cpp:781: error: ‘PyObject’ was not declared in this scope
meep_wrap.cpp:781: error: ‘str’ was not declared in this scope
meep_wrap.cpp:782: error: expected ‘,’ or ‘;’ before ‘{’ token
meep_wrap.cpp:805: error: expected initializer before ‘*’ token
meep_wrap.cpp:831: error: expected initializer before ‘*’ token
meep_wrap.cpp:885: error: expected initializer before ‘*’ token
meep_wrap.cpp:906: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.3/new:45,
                 from /usr/include/c++/4.3/ext/new_allocator.h:37,
                 from
/usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,
                 from /usr/include/c++/4.3/bits/allocator.h:53,
                 from /usr/include/c++/4.3/string:48,
                 from meep_wrap.cpp:2692:
/usr/include/c++/4.3/exception:40: error: expected declaration before end of
line
error: command 'gcc' failed with exit status 1
Directories for SWIG -I option :  ['/usr/include']
Directories for -L option :  ['/usr/lib']
running install
running build
running build_py
creating build/lib.linux-i686-2.6
copying meep.py -> build/lib.linux-i686-2.6
running build_ext
building '_meep' extension
swigging meep.i to meep_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/include -o
meep_wrap.cpp meep.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/python2.6 -c
meep_wrap.cpp -o build/temp.linux-i686-2.6/meep_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
meep_wrap.cpp:150:20: error: Python.h: No such file or directory
meep_wrap.cpp:3254:4: error: #error "This python version requires swig to be
run with the '-classic' option"
In file included from meep_wrap.cpp:3675:
custom.hpp:39:30: error: numpy/npy_common.h: No such file or directory
In file included from /usr/include/python2.6/numpy/arrayobject.h:14,
                 from custom.hpp:40,
                 from meep_wrap.cpp:3675:
/usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
Python with unicode enabled.
meep_wrap.cpp:781: error: ‘PyObject’ was not declared in this scope
meep_wrap.cpp:781: error: ‘str’ was not declared in this scope
meep_wrap.cpp:782: error: expected ‘,’ or ‘;’ before ‘{’ token
meep_wrap.cpp:805: error: expected initializer before ‘*’ token
meep_wrap.cpp:831: error: expected initializer before ‘*’ token
meep_wrap.cpp:885: error: expected initializer before ‘*’ token
meep_wrap.cpp:906: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.3/new:45,
                 from /usr/include/c++/4.3/ext/new_allocator.h:37,
                 from
/usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,
                 from /usr/include/c++/4.3/bits/allocator.h:53,
                 from /usr/include/c++/4.3/string:48,
                 from meep_wrap.cpp:2692:
/usr/include/c++/4.3/exception:40: error: expected declaration before end of
line
error: command 'gcc' failed with exit status 1
Directories for SWIG -I option :  ['/usr/include']
Directories for -L option :  ['/usr/lib']
running bdist
running bdist_dumb
running build
running build_py
copying meep.py -> build/lib.linux-i686-2.6
running build_ext
building '_meep' extension
swigging meep.i to meep_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/include -o
meep_wrap.cpp meep.i
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
-Wstrict-prototypes -fPIC -I/usr/include -I/usr/include/python2.6 -c
meep_wrap.cpp -o build/temp.linux-i686-2.6/meep_wrap.o
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
Ada/C/ObjC but not for C++
meep_wrap.cpp:150:20: error: Python.h: No such file or directory
meep_wrap.cpp:3254:4: error: #error "This python version requires swig to be
run with the '-classic' option"
In file included from meep_wrap.cpp:3675:
custom.hpp:39:30: error: numpy/npy_common.h: No such file or directory
In file included from /usr/include/python2.6/numpy/arrayobject.h:14,
                 from custom.hpp:40,
                 from meep_wrap.cpp:3675:
/usr/include/python2.6/numpy/ndarrayobject.h:114:2: error: #error Must use
Python with unicode enabled.
meep_wrap.cpp:781: error: ‘PyObject’ was not declared in this scope
meep_wrap.cpp:781: error: ‘str’ was not declared in this scope
meep_wrap.cpp:782: error: expected ‘,’ or ‘;’ before ‘{’ token
meep_wrap.cpp:805: error: expected initializer before ‘*’ token
meep_wrap.cpp:831: error: expected initializer before ‘*’ token
meep_wrap.cpp:885: error: expected initializer before ‘*’ token
meep_wrap.cpp:906: error: expected initializer before ‘*’ token
In file included from /usr/include/c++/4.3/new:45,
                 from /usr/include/c++/4.3/ext/new_allocator.h:37,
                 from
/usr/include/c++/4.3/i486-linux-gnu/bits/c++allocator.h:39,
                 from /usr/include/c++/4.3/bits/allocator.h:53,
                 from /usr/include/c++/4.3/string:48,
                 from meep_wrap.cpp:2692:
/usr/include/c++/4.3/exception:40: error: expected declaration before end of
line
error: command 'gcc' failed with exit status 1


I see no Python.h file is found, and also what appear to be unicode issues
with python. Is this the source of all my woes? If so, how do I fix it?
Anything else I need to fix/change? Any pointers or advice would be most
appreciated.

Thanks,
Paul Robinson

Follow ups