← Back to team overview

ffc team mailing list archive

Re: JIT Python error

 

You need (in jit.py)
from distutils import sysconfig
or something similar.

sysconfig is not imported if one only does
import distutils

Kent


> I'm running into a JIT error (see below) when running pyDOLFIN demos.
> Any ideas?
>
> Garth
>
>    File "/usr/lib/python2.5/site-packages/ffc/jit/jit.py", line 53, in jit
>      return jit_form(object, options)
>    File "/usr/lib/python2.5/site-packages/ffc/jit/jit.py", line 81, in
> jit_form
>      (cppargs, path, ufc_include) = extract_instant_flags(options)
>    File "/usr/lib/python2.5/site-packages/ffc/jit/jit.py", line 160, in
> extract_instant_flags
>      if len(path) == 0: path =
> [("/").join(distutils.sysconfig.get_python_inc().split("/")[:-2]) +
> "/include"]
> AttributeError: 'module' object has no attribute 'sysconfig'
>
>
> _______________________________________________
> FFC-dev mailing list
> FFC-dev@xxxxxxxxxx
> http://www.fenics.org/mailman/listinfo/ffc-dev
>




References