Incompatible swig versions detected. UFC swig version is not the same as
extension module swig version: '2.0.11' != '2.0.4'
Traceback (most recent call last):
  File "./bvp_01.py", line 119, in <module>
    bvp_01 ( 8 )
  File "./bvp_01.py", line 47, in bvp_01
    V = FunctionSpace ( mesh, "Lagrange", 1 )
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
line 456, in __init__
    FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
line 147, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
line 66, in mpi_jit
    output = local_jit(*args, **kwargs)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
line 126, in jit
    return jit_compile(form, parameters=p)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/ffc/jitcompiler.py",
line 75, in jit
    return jit_element(ufl_object, parameters)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/ffc/jitcompiler.py",
line 186, in jit_element
    compiled_form, module, form_data, prefix = jit_form(form, parameters)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/ffc/jitcompiler.py",
line 164, in jit_form
    check_swig_version(module)
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/ffc/jitcompiler.py",
line 86, in check_swig_version
    (ufc.__swigversion__, compiled_module.swigversion))
  File "<string>", line 1, in <lambda>
  File
"/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/lib/python2.7/site-packages/ufl/log.py",
line 151, in error
    raise self._exception_type(self._format_raw(*message))
Exception: Incompatible swig versions detected. UFC swig version is not the
same as extension module swig version: '2.0.11' != '2.0.4'

What do you get when you run the following commands:

 $ which swig
 $ swig -version


Then I get the version installed by fenics:

$ which swig
/pfs/nobackup/home/b/bbrydsoe/fenics_MPIMODULE_build/bld/profile/hztejro3ksqb/bin/swig
$ swig -version

SWIG Version 2.0.11

Compiled with g++ [x86_64-unknown-linux-gnu]

Configured options: +pcre

Please see http://www.swig.org for reporting bugs and further information



Also try instant-clean as suggested by Jan.


I did. I got the exact same error as before anyway.

Also attaching the new version of my yaml file.

Is there a specific reason that you use revision
1a97d560b12d86d8c36f8e574a1ebb3ea00067b7 of hashstack? This is from
June 2014 and a lot has happened both in hashdist/hashstack and FEniCS
since then.


No, no reason ;) That's what was in the yaml file I grabbed and made changes to. I will remove those lines and try rebuilding with a newer version, and see if that helps.

Thanks, Birgitte


--
Birgitte Maria E. Brydsö
HPC2N, MIT-Huset
Umeå University
SE-901 87 Umeå

Telephone: +46(0)90-786 64 55
Email: [email protected]
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to