← Back to team overview

dolfin team mailing list archive

Re: [Question #141219]: Dolfin demo crashes - "failed to import module" errormessage

 

Question #141219 on DOLFIN changed:
https://answers.launchpad.net/dolfin/+question/141219

    Status: Open => Answered

Johan Hake proposed the following answer:
Coud you open a command prompt and:

  cd C:\Users\Timu\.instant\cache
  python -c "import form_fbe9250706cbb74 636c7c77012477c3a794e8927"

and report the problem you have.

Johan
  

On Wednesday January 12 2011 12:56:17 Timu Gallien wrote:
> New question #141219 on DOLFIN:
> https://answers.launchpad.net/dolfin/+question/141219
> 
> I have Fenics installed on Windows Vista but am unable to run the demo
> programs. The module which the demo is looking for is present in
> 'C:\Users\Timu\.instant\cache', but the program does not seem to recognize
> they are there. Does anyone have suggestions?
> 
> 
> C:\FEniCS\share\dolfin\demo\pde\navier-stokes\python>python demo.py
> Computing mesh connectivity 2 - 2.
> Computing mesh connectivity 0 - 2.
> Creating mesh entities of dimension 1.
> In instant.import_module_directly: Failed to import module
> 'form_fbe9250706cbb74 636c7c77012477c3a794e8927' from
> 'C:\Users\Timu\.instant\cache'.
> Failed to import module found in cache. Modulename:
> 'form_fbe9250706cbb74636c7c7 7012477c3a794e8927'; Path:
> 'C:\Users\Timu\.instant\cache'.
> Traceback (most recent call last):
>   File "demo.py", line 22, in <module>
>     V = VectorFunctionSpace(mesh, "CG", 2)
>   File "C:\FEniCS\lib\site-packages\dolfin\function\functionspace.py", line
> 315, in __init__
>     restriction=restriction)]
>   File "C:\FEniCS\lib\site-packages\dolfin\function\functionspace.py", line
> 231, in __init__
>     FunctionSpaceBase.__init__(self, mesh, element)
>   File "C:\FEniCS\lib\site-packages\dolfin\function\functionspace.py", line
> 44, in __init__
>     ufc_element, ufc_dofmap = jit(self._ufl_element)
>   File "C:\FEniCS\lib\site-packages\dolfin\compilemodules\jit.py", line 47,
> in m pi_jit
>     return local_jit(*args, **kwargs)
>   File "C:\FEniCS\lib\site-packages\dolfin\compilemodules\jit.py", line
> 114, in jit
>     return jit_compile(form, parameters=p, common_cell=common_cell)
>   File "C:\FEniCS\lib\site-packages\ffc\jitcompiler.py", line 62, in jit
>     return jit_element(object, parameters)
>   File "C:\FEniCS\lib\site-packages\ffc\jitcompiler.py", line 162, in
> jit_elemen t
>     (compiled_form, module, form_data) = jit_form(form, parameters)
>   File "C:\FEniCS\lib\site-packages\ffc\jitcompiler.py", line 113, in
> jit_form module = instant.import_module(jit_object, cache_dir=cache_dir)
> File "C:\FEniCS\lib\site-packages\instant\cache.py", line 155, in
> import_modul e
>     return check_disk_cache(modulename, cache_dir, moduleids)
>   File "C:\FEniCS\lib\site-packages\instant\cache.py", line 121, in
> check_disk_c ache
>     module = import_and_cache_module(path, modulename, moduleids)
>   File "C:\FEniCS\lib\site-packages\instant\cache.py", line 67, in
> import_and_ca che_module
>     instant_assert(module is not None, "Failed to import module found in
> cache. Modulename: '%s'; Path: '%s'." % (modulename, path))
>   File "C:\FEniCS\lib\site-packages\instant\output.py", line 55, in
> instant_asse rt
>     raise AssertionError(text)
> AssertionError: Failed to import module found in cache. Modulename:
> 'form_fbe925 0706cbb74636c7c77012477c3a794e8927'; Path:
> 'C:\Users\Timu\.instant\cache'.
> 
> C:\FEniCS\share\dolfin\demo\pde\navier-stokes\python>

-- 
You received this question notification because you are a member of
DOLFIN Team, which is an answer contact for DOLFIN.