Comment 1 for bug 1010452

Revision history for this message
Karl Wette (kwwette) wrote :

Some further information:

* The swig2.0 packages in quantal can be backported to precise without modification, i.e.
$ backportpackage -b -w /tmp http://archive.ubuntu.com/ubuntu/pool/main/s/swig2.0/swig2.0_2.0.7-2ubuntu1.dsc
produces packages without errors.

* The packages produced by backportpackage install correctly.

* The swig binary installed by these packages runs, and from testing appears to be working correctly.

* swig2.0 has the following reverse dependencies (aside from other swig packages): python-instant, python-dolfin, libsyfi1.0-dev. Unfortunately, it looks like python-dolfin will not work with the backported version, since it requires the version of swig it was compiled with (v2.0.4). I get the following error, after installing dolfin-doc and trying to run a demo code in /usr/share/dolfin/demo/la/eigenvalue/python:

$ python ./demo_eigenvalue.py Traceback (most recent call last):
  File "./demo_eigenvalue.py", line 44, in <module>
    V = FunctionSpace(mesh, "CG", 1)
  File "/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py", line 353, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py", line 77, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 66, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 114, in jit
    """%cpp.__swigversion__
OSError: PyDOLFIN was not compiled with the present version of swig.
Install swig version 2.0.4 or recompiled PyDOLFIN with present swig

I'm guessing this is a fatal problem?