This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Fenics demos fail with "OSerror: [Errno 2] No such file or directory"

0 votes

Hello,
I've installed Fenics 1.3.0 on a RHELS 6.4 x86_64 cluster. After a suggle I got the installation to complete successfully. Some of the demos work OK, however any test calling the FunctionSpace routine fails (see below). So, for example, the following test fails --
"python demo_poisson.py". I cannot find any clues on the web, and so I wondered if anyone could please help me.

Best regards -- David.

Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
File "demo_poisson.py", line 41, in
V = FunctionSpace(mesh, "Lagrange", 1)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 403, in init
FunctionSpaceBase.init(self, mesh, element, constrained_domain)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/dolfin/functions/functionspace.py", line 84, in init
ufc_element, ufc_dofmap = jit(self._ufl_element)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 60, in mpi_jit
return local_jit(*args, **kwargs)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/dolfin/compilemodules/jit.py", line 122, in jit
return jit_compile(form, parameters=p, common_cell=common_cell)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/ffc/jitcompiler.py", line 76, in jit
return jit_element(ufl_object, parameters)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/ffc/jitcompiler.py", line 252, in jit_element
compiled_form, module, form_data, prefix = jit_form(form, parameters)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/ffc/jitcompiler.py", line 221, in jit_form
cache_dir = cache_dir)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/ufc_utils/build.py", line 73, in build_ufc_module
**kwargs)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/instant/build.py", line 542, in build_module
recompile(modulename, module_path, new_compilation_checksum, build_system)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/instant/build.py", line 130, in recompile
ret, output = get_status_output(cmd)
File "/local/software/fenics/1.3.0/lib/python2.7/site-packages/instant/output.py", line 82, in get_status_output
pipe = Popen(cmd, shell=False, cwd=cwd, env=env, stdout=PIPE, stderr=STDOUT)
File "/local/software/python/2.7.5/lib/python2.7/subprocess.py", line 711, in __init__
errread, errwrite)
File "/local/software/python/2.7.5/lib/python2.7/subprocess.py", line 1308, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

asked Feb 3, 2014 by scotterdavid FEniCS Novice (170 points)

1 Answer

+2 votes

At the bottom of instant/output.py in Instant, there is a section starting with this line:

# Some HPC platforms does not work with the subprocess module and needs commands

Uncomment the lines below this line to replace subprocess with commands. That might fix the problem for you.

answered Feb 3, 2014 by johannr FEniCS Expert (17,350 points)
...