I'm running fenics on Ubuntu 13.10. 'sudo apt-get install' has been run
but still the following error message appears:
In [3]: mesh = UnitSquareMesh(4,4)
In [4]: V = FunctionSpace(mesh, 'CG', 1)
---------------------------------------------------------------------------
OSError Traceback (most recent call
last)
<ipython-input-4-2ab19f4423ed> in <module>()
----> 1 V = FunctionSpace(mesh, 'CG', 1)
/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.pyc in
__init__(self, mesh, family, degree, form_degree, constrained_domain,
restriction)
401
402 # Initialize base class
--> 403 FunctionSpaceBase.__init__(self, mesh, element,
constrained_domain)
404
405 self.___degree = degree
/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.pyc in
__init__(self, mesh, element, constrained_domain)
82
83 # JIT-compile element to get ufc_element and ufc_dofmap
---> 84 ufc_element, ufc_dofmap = jit(self._ufl_element)
85
86 # Instantiate DOLFIN FiniteElement and DofMap
/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.pyc in
mpi_jit(*args, **kwargs)
58 # Just call JIT compiler when running in serial
59 if MPI.num_processes() == 1:
---> 60 return local_jit(*args, **kwargs)
61
62 # Compile first on process 0
/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.pyc in
jit(form, form_compiler_parameters, common_cell)
120 raise RuntimeError, "Form compiler must implement the
jit function."
121
--> 122 return jit_compile(form, parameters=p,
common_cell=common_cell)
/usr/lib/python2.7/dist-packages/ffc/jitcompiler.pyc in jit(ufl_object,
parameters, common_cell)
74 # Check if we get an element or a form
75 if isinstance(ufl_object, FiniteElementBase):
---> 76 return jit_element(ufl_object, parameters)
77 else:
78 return jit_form(ufl_object, parameters, common_cell)
/usr/lib/python2.7/dist-packages/ffc/jitcompiler.pyc in
jit_element(element, parameters)
250
251 # Compile form
--> 252 compiled_form, module, form_data, prefix = jit_form(form,
parameters)
253
254 return _extract_element_and_dofmap(module, prefix,
form_data)
/usr/lib/python2.7/dist-packages/ffc/jitcompiler.pyc in jit_form(form,
parameters, common_cell)
173
174 # Set prefix for generated code
--> 175 module_name = "ffc_form_" + jit_object.signature()
176
177 # Use Instant cache if possible
/usr/lib/python2.7/dist-packages/ffc/jitobject.pyc in signature(self)
89 parameters_signature =
_parameters_signature(self.parameters)
90 ffc_signature = str(FFC_VERSION)
---> 91 swig_signature = str(get_swig_version())
92 cell_signature = str(self.form.form_data().cell)
93
/usr/lib/python2.7/dist-packages/instant/config.pyc in
get_swig_version()
45 if _swig_version_cache is None:
46 # Check for swig installation
---> 47 result, output = get_status_output("%s
-version"%get_swig_binary())
48 if result != 0:
49 raise OSError("SWIG is not installed on the
system.")
/usr/lib/python2.7/dist-packages/instant/output.pyc in
get_status_output(cmd, input, cwd, env)
80 cmd = cmd.strip().split()
81 instant_debug("Running: " + str(cmd))
---> 82 pipe = Popen(cmd, shell=False, cwd=cwd, env=env,
stdout=PIPE, stderr=STDOUT)
83
84 (output, errout) = pipe.communicate(input=input)
/usr/lib/python2.7/subprocess.pyc in __init__(self, args, bufsize,
executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd,
env, universal_newlines, startupinfo, creationflags)
707 p2cread, p2cwrite,
708 c2pread, c2pwrite,
--> 709 errread, errwrite)
710 except Exception:
711 # Preserve original exception in case os.close
raises.
/usr/lib/python2.7/subprocess.pyc in _execute_child(self, args,
executable, preexec_fn, close_fds, cwd, env, universal_newlines,
startupinfo, creationflags, shell, to_close, p2cread, p2cwrite, c2pread,
c2pwrite, errread, errwrite)
1324 raise
1325 child_exception = pickle.loads(data)
-> 1326 raise child_exception
1327
1328
OSError: [Errno 2] No such file or directory
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support