Function check_swig_version should accept older swig versions

Issue #56 invalid
Allan Leal created an issue

Having upgraded from Kubuntu 14.04 to Kubuntu 14.10, I started getting the following error when executing my python scripts:

Exception: Incompatible swig versions detected. UFC swig version is not the same as extension module swig version: '2.0.12' != '2.0.11'

The swig version in my system is 2.0.12.

The check procedure should perhaps accept newer swig versions, which are backward compatible with the one compiled with FFC.

The following has been replaced in my installation (in file jitcompiler.py) to correct this:

def check_swig_version(compiled_module):
    # Check swig version of compiled module
    if compiled_module and compiled_module.swigversion > ufc.__swigversion__:
        error("Incompatible swig versions detected. UFC swig "\
              "version might not be backward compatible with "\
              "the extension module swig version: '%s' < '%s' " % \
              (ufc.__swigversion__, compiled_module.swigversion))

Comments (1)

  1. Log in to comment