← Back to team overview

dolfin team mailing list archive

SWIG Version

 

Hello!

First, let me say thank you to all the people involved with this project.
Very exciting! Alas, I am encountering a problem:

>>> V=FunctionSpace(mesh,'CG',1)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/dolfin/function/functionspace.py",
line 226, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/usr/lib/python2.6/dist-packages/dolfin/function/functionspace.py",
line 44, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/usr/lib/python2.6/dist-packages/dolfin/compilemodules/jit.py", line
44, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/python2.6/dist-packages/dolfin/compilemodules/jit.py", line
76, in jit
    """%cpp.__swigversion__
OSError: PyDOLFIN was not compiled with the present version of swig.
Install swig version 1.3.40 or recompiled PyDOLFIN with present swig

...

SO, I double check my version of SWIG:

robinson@robinson-laptop:~/Shellscripts/Py_Scripts$ aptitude show swig
Package: swig
State: installed
Automatically installed: yes
Version: 1.3.40-2ubuntu1
Priority: optional
Section: interpreters
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Uncompressed Size: 5,349k
Depends: libc6 (>= 2.8), libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.1.1), zlib1g
(>= 1:1.1.4)
Suggests: swig-examples, swig-doc
Replaces: swig1.3
Description: Generate scripting interfaces to C/C++ code
 SWIG is a compiler that makes it easy to integrate C and C++ code with
other languages
 including Perl, PHP, Tcl, Ruby, Python, Java, Guile, Mzscheme, Chicken,
OCaml, and C#.

 Swig takes a set of ANSI C/C++ declarations and generates an interface for
them to your
 favorite scripting language.

...

And just so i know what I'm doing, my version of FEniCS:

robinson@robinson-laptop:~/Shellscripts/Py_Scripts$ aptitude show fenics
Package: fenics
State: installed
Automatically installed: no
Version: 9.12.1
Priority: extra
Section: universe/math
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@xxxxxxxxxxxxxxxx>
Uncompressed Size: 32.8k
Depends: dolfin-dev (>= 0.9.5), python-pydolfin0 (>= 0.9.5), dolfin-doc,
dolfin-bin,
         python-ferari (>= 0.0.2), python-ffc (>= 0.7.1), python-fiat (>=
0.3.5),
         python-instant (>= 0.9.6), ufc (>= 1.2.0), python-ufc (>= 1.2.0),
ufc-doc,
         python-viper (>= 0.4.5), python-ufl (>= 0.4.1), syfi-dev (>=
0.6.0), python-syfi0
         (>= 0.6.0), syfi-doc, syfi-bin
Description: automation of computational mathematical modeling
 The vision of FEniCS is to set a new standard in Computational Mathematical
Modeling
 (CMM), which is the Automation of CMM (ACMM), towards the goals of
generality, efficiency
 and simplicity, concerning mathematical methodology, implementation and
application.
 FEniCS is organized as a collection of sub projects/components, including
DOLFIN, FErari,
 FFC, FIAT, Instant, SyFi UFC, UFL, and Viper.
Homepage: http://www.fenics.org


...

It looks as though I've got the proper version of SWIG, but then, whence
this error? Any ideas? This is under Lucid, by the way.

Thanks heaps,
Paul Robinson

Follow ups