Opened 10 years ago

Last modified 10 years ago

#43076 closed defect

Swig version error using Dolfin — at Initial Version

Reported by: mwathen@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: py-ffc

Description

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@… * * 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: * -------------------------------------------------------------------------

Change History (0)

Note: See TracTickets for help on using tickets.