[MacPorts] #46787: SWIG version error dolfin
MacPorts
noreply at macports.org
Fri Feb 6 11:23:51 PST 2015
#46787: SWIG version error dolfin
-----------------------+--------------------------------
Reporter: mwathen@… | Owner: macports-tickets@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Keywords: | Port:
-----------------------+--------------------------------
Hi,
I get a swig version error when I try and create a function space in
FEniCS. Here is the error:
Calling FFC just-in-time (JIT) compiler, this may take some time.
Incompatible swig versions detected. UFC swig version is not the same as
extension module swig version: '3.0.2' != '3.0.5'
---------------------------------------------------------------------------
Exception Traceback (most recent call
last)
/Users/michaelwathen/Dropbox/mastersresearch/mhd/FEniCS/MHD/Stabilised/SaddlePointForm/Test/GeneralisedEigen/NoBC/MHDfluid.py
in <module>()
91 order = 1
92 parameters['reorder_dofs_serial'] = False
---> 93 Velocity = VectorFunctionSpace(mesh, "CG", order)
94 Pressure = FunctionSpace(mesh, "DG", order-1)
95 Magnetic = FunctionSpace(mesh, "N1curl", order)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/dolfin/functions/functionspace.py in __init__(self, mesh,
family, degree, dim, form_degree, constrained_domain, restriction)
626 # Initialize base class
627 FunctionSpaceBase.__init__(self, mesh, element,
--> 628
constrained_domain=constrained_domain)
629
630 class TensorFunctionSpace(FunctionSpaceBase):
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/dolfin/functions/functionspace.py in __init__(self, mesh,
element, constrained_domain)
151
152 # JIT-compile element to get ufc_element and ufc_dofmap
--> 153 ufc_element, ufc_dofmap = jit(self._ufl_element,
mpi_comm=mesh.mpi_comm())
154
155 # Instantiate DOLFIN FiniteElement and DofMap
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/dolfin/compilemodules/jit.py in mpi_jit(*args, **kwargs)
62 # Just call JIT compiler when running in serial
63 if MPI.size(mpi_comm) == 1:
---> 64 return local_jit(*args, **kwargs)
65
66 # Compile first on process 0
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/dolfin/compilemodules/jit.py in jit(form,
form_compiler_parameters, mpi_comm)
126
127 # Execute!
--> 128 return form_compiler.jit(form, parameters=p)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ffc/jitcompiler.py in jit(ufl_object, parameters)
70 # Check if we get an element or a form
71 if isinstance(ufl_object, FiniteElementBase):
---> 72 return jit_element(ufl_object, parameters)
73 else:
74 return jit_form(ufl_object, parameters)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ffc/jitcompiler.py in jit_element(element, parameters)
175
176 # Compile form
--> 177 compiled_form, module, prefix = jit_form(form, parameters)
178
179 form_data = compute_form_data(form)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ffc/jitcompiler.py in jit_form(form, parameters)
156
157 # Extract compiled form
--> 158 check_swig_version(module)
159 compiled_form = _extract_form(module, module_name)
160 return compiled_form, module, module_name
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ffc/jitcompiler.py in check_swig_version(compiled_module)
81 "version is not the same as extension module swig "\
82 "version: '%s' != '%s' " % \
---> 83 (ufc.__swigversion__, compiled_module.swigversion))
84
85 def jit_form(form, parameters=None):
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ffc/log.pyc in <lambda>(*message)
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
/site-packages/ufl/log.pyc in error(self, *message)
149 "Write error message and raise an exception."
150 self._log.error(*message)
--> 151 raise self._exception_type(self._format_raw(*message))
152
153 def begin(self, *message):
Exception: Incompatible swig versions detected. UFC swig version is not
the same as extension module swig version: '3.0.2' != '3.0.5'
--
Ticket URL: <https://trac.macports.org/ticket/46787>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list