astrojuanlu / fenics-recipes

This repository contains conda recipes for the FEniCS libraries
The Unlicense
13 stars 15 forks source link

DOLFIN swig version is not the same as extension module swig version: '3.0.5' != '3.0.7' . #27

Closed dlouk closed 8 years ago

dlouk commented 9 years ago

Hi,

first of all many thanks for all the work and effort you have put in this.

I encounter the following error when I try to run an example script called run_lshape_DL.py, using the Anaconda distribution and FEniCS on Ubuntu 14.04 LTS. The error happens also with any of the examples provided in the FEniCS tutorial webpage.

Traceback (most recent call last):
  File "run_lshape_DL.py", line 32, in <module>
    ue = Expression("sin(pi*x[0])*sin(pi*x[1])",degree=2)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/functions/expression.py", line 602, in __new__
    mpi_comm=mpi_comm)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 217, in compile_expressions
    mpi_comm=mpi_comm)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/compilemodules/expressions.py", line 145, in compile_expression_code
    mpi_comm=mpi_comm)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 64, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 416, in compile_extension_module
    check_swig_version(compiled_module)
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/compilemodules/compilemodule.py", line 249, in check_swig_version
    (cpp.__swigversion__, compiled_module.swigversion))
  File "/home/dimitrios/anaconda/envs/fenics27/lib/python2.7/site-packages/dolfin/cpp/common.py", line 2611, in dolfin_error
    return _common.dolfin_error(location, task, reason)

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@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: '3.0.5' != '3.0.7' .
*** Where:   This error was encountered inside compilemodule.py.
*** Process: 0
*** 
*** DOLFIN version: 1.6.0
*** Git changeset:  
*** -------------------------------------------------------------------------

Any advice is welcome!

Dimitris

astrojuanlu commented 9 years ago

Hi @dlouk, thanks for your nice comments :) You are totally right, I'm providing the wrong version of SWIG in my packages. I will try to fix that today, shouldn't take much time.

astrojuanlu commented 9 years ago

I just uploaded new versions of dolfin and ffc which in principle specify the right swig version. Could you please try updating and see if the issue is gone? If it is we can close the issue :)

dlouk commented 9 years ago

Sorry for the late reply. I am on a short vacation, so I will check first thing on Wednesday. Thanks for the update!

dlouk commented 9 years ago

It seems to be working fine now. I guess that you can close the issue now.

astrojuanlu commented 8 years ago

Perfect, thanks! :smile: