On 11/27/2013 04:10 AM, Johannes Ring wrote:
On Tue, Nov 26, 2013 at 7:51 PM, Mike Sussman <[email protected]> wrote:
Folks,
I have just installed FEniCS on my Scientific Linux 6 (derivative of
RHEL6) box. The installation SEEMS to be correct (after some tweaking),
but I cannot get the environment correct to actually run an example. The
installation is done in my home directory ~/Installs/FEniCS
I am trying to run examples-1.0/stationary/poisson/d1_p2D.py but it never
actually gets running. I set the environment variables using
share/dolfin/dolfin.conf, but it complains that it cannot find swig.
The swig executable is in my path, and the answer to "which swig" is
"~/Installs/FEniCS/bin/swig" and according to "swig -version" its version
number is 2.0.3. This is the version downloaded as part of the FEniCS
install.
BUT here is what I get:
$ python d1_p2D.py
Reading DOLFIN parameters from file "dolfin_parameters.xml".
*** -------------------------------------------------------------------------
*** Warning: UnitSquare has been deprecated in DOLFIN version 1.1.0.
*** The class UnitSquare has been replaced by UnitSquareMesh.
*** -------------------------------------------------------------------------
Traceback (most recent call last):
File "d1_p2D.py", line 15, in <module>
V = FunctionSpace(mesh, 'Lagrange', 1)
File
"/home/mike/Installs/FEniCS/lib64/python2.6/site-packages/dolfin/functions/functionspace.py",
line 390, in __init__
FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
File
"/home/mike/Installs/FEniCS/lib64/python2.6/site-packages/dolfin/functions/functionspace.py",
line 84, in __init__
ufc_element, ufc_dofmap = jit(self._ufl_element)
File
"/home/mike/Installs/FEniCS/lib64/python2.6/site-packages/dolfin/compilemodules/jit.py",
line 66, in mpi_jit
return local_jit(*args, **kwargs)
File
"/home/mike/Installs/FEniCS/lib64/python2.6/site-packages/dolfin/compilemodules/jit.py",
line 102, in jit
raise OSError, "Could not find swig installation. Pass an existing "\
OSError: Could not find swig installation. Pass an existing swig binary or
install SWIG version 2.0 or higher.
The problem is in dolfin_parameters.xml. Remove any swig related line
in this file and it should work.
Johannes
Thank you, Johannes, that solved the problem.
--
Mike Sussman
[email protected]
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support