This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Incompatible swig versions detected in conda installation

+1 vote

I fresh installed fenics 2016.2 using conda, and when I run a demo script I encountered this error

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-support@googlegroups.com
***
*** 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: '3.0.10' != '3.0.11' .
*** Where:   This error was encountered inside compilemodule.py.
*** Process: 0
***
*** DOLFIN version: 2016.2.0
*** Git changeset:
*** -------------------------------------------------------------------------

I googled but found nothing helpful. It appears to be a bug in the source code.

asked Jan 3, 2017 by noir FEniCS Novice (160 points)

1 Answer

+1 vote
 
Best answer

Try to install SWIG version 3.0.10:

conda install swig=3.0.10

Then run instant-clean and try again.

answered Jan 4, 2017 by johannr FEniCS Expert (17,350 points)
selected Jan 4, 2017 by noir

I tried that, but that does not help.

Is version 3.0.11 still installed? What do you get when you run swig -version?

SWIG Version 3.0.10

Compiled with clang++ [x86_64-apple-darwin13.4.0]

Configured options: +pcre

Try running instant-clean. Is the error still the same?

This time it runs smoothly without error. Thanks.

...