[MacPorts] #43076: Swig version error using Dolfin

MacPorts noreply at macports.org
Tue Mar 25 15:21:29 PDT 2014


#43076: Swig version error using Dolfin
-----------------------+--------------------------------
 Reporter:  mwathen@…  |      Owner:  macports-tickets@…
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.2.1
 Keywords:             |       Port:
-----------------------+--------------------------------
 I updated macports today and it installed the new version of swig.
 Unfortunately other libraries that I'm using depend on the the previous
 version but I'm not sure how to go back to this one. Here is the error I
 get when running my python script

 Traceback (most recent call last):
   File "../FEniCS/PoissonExample/poisson.py", line 45, in <module>
     f = Expression("(pow(x[0]-0.5,2)-4*pow(x[1]-0.5,4))")
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/functions/expression.py", line 582, in __new__
     [generic_function_members])
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/compilemodules/expressions.py", line 217, in
 compile_expressions
     additional_declarations))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/compilemodules/expressions.py", line 142, in
 compile_expression_code
     code, additional_declarations=additional_declarations)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/compilemodules/jit.py", line 60, in mpi_jit
     return local_jit(*args, **kwargs)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/compilemodules/compilemodule.py", line 406, in
 compile_extension_module
     check_swig_version(compiled_module)
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/compilemodules/compilemodule.py", line 252, in
 check_swig_version
     (cpp.__swigversion__, compiled_module.swigversion))
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7
 /site-packages/dolfin/cpp/common.py", line 2296, in dolfin_error
     return _common.dolfin_error(*args)
 RuntimeError:

 ***
 -------------------------------------------------------------------------
 *** DOLFIN encountered an error. If you are not able to resolve this issue
 *** using the information listed below, you can ask for help at
 ***
 ***     fenics at fenicsproject.org
 ***
 *** Remember to include the error message listed below and, if possible,
 *** include a *minimal* running example to reproduce the error.
 ***
 ***
 -------------------------------------------------------------------------
 *** Error:   Unable to compiling extension module.
 *** Reason:  Incompatible swig versions detected. DOLFIN swig version is
 not the same as extension module swig version: '2.0.11' != '3.0.0' .
 *** Where:   This error was encountered inside compilemodule.py.
 *** Process: 0
 ***
 *** DOLFIN version: 1.3.0
 *** Git changeset:
 ***
 -------------------------------------------------------------------------

-- 
Ticket URL: <https://trac.macports.org/ticket/43076>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list