python-meep "make" fails on "Creating tar archive"

Bug #1435371 reported by Matthew A on 2015-03-23
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
python-meep
Undecided
Unassigned

Bug Description

Following the instructions in the readme found in the python-meep files I executed the "make" file with root privileges after checking that all dependencies were fulfilled. Here is the full output:

Directories for SWIG -I option : ['/usr/include']
Directories for -L option : ['/usr/lib']
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' 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-x86_64-2.7
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/usr/include -I/usr/local/include/python2.7 -c meep_wrap.cpp -o build/temp.linux-x86_64-2.7/meep_wrap.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /usr/include/numpy/ndarraytypes.h:1761:0,
                 from /usr/include/numpy/ndarrayobject.h:17,
                 from /usr/include/numpy/arrayobject.h:4,
                 from custom.hpp:19,
                 from meep_wrap.cpp:3961:
/usr/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
creating build/lib.linux-x86_64-2.7
g++ -pthread -shared build/temp.linux-x86_64-2.7/meep_wrap.o -L/usr/lib -lmeep -o build/lib.linux-x86_64-2.7/_meep.so
Directories for SWIG -I option : ['/usr/include']
Directories for -L option : ['/usr/lib']
running install
running build
running build_py
copying meep.py -> build/lib.linux-x86_64-2.7
running build_ext
running install_lib
copying build/lib.linux-x86_64-2.7/_meep.so -> /usr/local/lib/python2.7/site-packages
copying build/lib.linux-x86_64-2.7/meep.py -> /usr/local/lib/python2.7/site-packages
byte-compiling /usr/local/lib/python2.7/site-packages/meep.py to meep.pyc
running install_data
running install_egg_info
Removing /usr/local/lib/python2.7/site-packages/python_meep-1.4-py2.7.egg-info
Writing /usr/local/lib/python2.7/site-packages/python_meep-1.4-py2.7.egg-info
Directories for SWIG -I option : ['/usr/include']
Directories for -L option : ['/usr/lib']
running bdist
running bdist_dumb
running build
running build_py
running build_ext
installing to build/bdist.linux-x86_64/dumb
running install
running install_lib
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/dumb
creating build/bdist.linux-x86_64/dumb/usr
creating build/bdist.linux-x86_64/dumb/usr/local
creating build/bdist.linux-x86_64/dumb/usr/local/lib
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7
creating build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages
copying build/lib.linux-x86_64-2.7/_meep.so -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages
copying build/lib.linux-x86_64-2.7/meep.py -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages
byte-compiling build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages/meep.py to meep.pyc
running install_data
copying custom.hpp -> build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages
running install_egg_info
Writing build/bdist.linux-x86_64/dumb/usr/local/lib/python2.7/site-packages/python_meep-1.4-py2.7.egg-info
creating /opt/python-meep/dist
Creating tar archive
Traceback (most recent call last):
  File "./setup.py", line 58, in <module>
    include_dirs=includeDir)
  File "/usr/local/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/local/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/bdist.py", line 146, in run
    self.run_command(cmd_name)
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/local/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/local/lib/python2.7/distutils/command/bdist_dumb.py", line 124, in run
    owner=self.owner, group=self.group)
  File "/usr/local/lib/python2.7/distutils/cmd.py", line 392, in make_archive
    owner=owner, group=group)
  File "/usr/local/lib/python2.7/distutils/archive_util.py", line 237, in make_archive
    filename = func(base_name, base_dir, **kwargs)
  File "/usr/local/lib/python2.7/distutils/archive_util.py", line 101, in make_tarball
    tar = tarfile.open(archive_name, 'w|%s' % tar_compression[compress])
  File "/usr/local/lib/python2.7/tarfile.py", line 1689, in open
    _Stream(name, filemode, comptype, fileobj, bufsize),
  File "/usr/local/lib/python2.7/tarfile.py", line 425, in __init__
    raise CompressionError("zlib module is not available")
tarfile.CompressionError: zlib module is not available
Exception AttributeError: "_Stream instance has no attribute 'cmp'" in <bound method _Stream.__del__ of <tarfile._Stream instance at 0x3132ab8>> ignored

Abhejit Rajagopal (sirgogo) wrote :

I have the same problem

[python-meep]$ sudo ./make-mpi -I/usr/local/include -L/usr/local/lib
Directories for SWIG -I option : ['/usr/include']
Directories for -L option : ['/usr/lib']
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/lib']
running build_ext
building '_meep_mpi' extension
swigging meep_mpi.i to meep_mpi_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/local/include -o meep_mpi_wrap.cpp meep_mpi.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
error: command 'swig' 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
file meep_mpi.py (for module meep_mpi) not found
file meep_mpi.py (for module meep_mpi) not found
running build_ext
building '_meep_mpi' extension
swigging meep_mpi.i to meep_mpi_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/include -o meep_mpi_wrap.cpp meep_mpi.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
meep_common.i:87: Error: Unable to find 'meep/mympi.hpp'
meep_common.i:88: Error: Unable to find 'meep/vec.hpp'
meep_common.i:89: Error: Unable to find 'meep.hpp'
error: command 'swig' failed with exit status 1
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/lib']
running bdist
running bdist_dumb
running build
running build_py
file meep_mpi.py (for module meep_mpi) not found
file meep_mpi.py (for module meep_mpi) not found
running build_ext
building '_meep_mpi' extension
swigging meep_mpi.i to meep_mpi_wrap.cpp
swig -python -c++ -w503,389,302,362,314,509,451 -I/usr/local/include -o meep_mpi_wrap.cpp meep_mpi.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
error: command 'swig' failed with exit status 1

i2000s (i2000s) wrote :

One year later, I got the same error:

python-meep$ sudo ./make
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/lib']
running clean
'build/lib.linux-x86_64-2.7' does not exist -- can't clean it
'build/bdist.linux-x86_64' does not exist -- can't clean it
'build/scripts-2.7' does not exist -- can't clean it
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/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/local/include -o meep_wrap.cpp meep.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
error: command 'swig' failed with exit status 1
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/lib']
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
copying meep.py -> build/lib.linux-x86_64-2.7
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/local/include -o meep_wrap.cpp meep.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
error: command 'swig' failed with exit status 1
Directories for SWIG -I option : ['/usr/local/include']
Directories for -L option : ['/usr/local/lib']
running bdist
running bdist_dumb
running build
running build_py
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/local/include -o meep_wrap.cpp meep.i
meep-site-init.py:1: Error: Unknown SWIG preprocessor directive: initialisations (if this is a block of target language code, delimit it with %{ and %})
error: command 'swig' failed with exit status 1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers