← Back to team overview

dolfin team mailing list archive

Re: src/demo/fem/python/demo.py ffc jit error

 

tir, 15.01.2008 kl. 15.16 +0100, skrev Ola Skavhaug:
> I have all the most recent versions of the FEniCS modules. However (or perhaps
> therefore), I get the following error when running the python demo under
> demo/fem:
> 
> skavhaug@blakken:~/devel/dolfin/src/demo/fem/python$ python demo.py 
> Found form in cache, reusing previously built module (checksum
> 5a01ea61f6a36a6c4cf3d35fe9d4f1e9)
> Traceback (most recent call last):
>   File "demo.py", line 36, in <module>
>     A, dofmapset_a = assemble(stiff, mesh)
>   File
> "/home/skavhaug/extsoft/lib/python2.5/site-packages/dolfin/assemble.py", line
> 24, in assemble
>     (compiled_form, module, form_data) = jit(form)
>   File "/usr/lib/python2.5/site-packages/ffc/jit/jit.py", line 80, in jit
>     exec("import %s as compiled_module" % (md5sum + "_module"))
>   File "<string>", line 1, in <module>
> ImportError: No module named form_5a01ea61f6a36a6c4cf3d35fe9d4f1e9_module
> 
> 
> By some reason ffc thinks I have this form cached, but can't import it. Is
> there a directory I should add to PYTHONPATH? The most elegant solution would
> perhaps be that ffc adds the correct path to sys.path in Python?
> 
> Ola

Try to remove the cache, 
rm -r /tmp/instant $HOME/.instant

I am not sure where ffc has its cache. 

Kent



Follow ups

References