Sorry, again in a better form:

Dear FEniCS support, yesterday I tried to send the following question to the
forum:

http://fenicsproject.org/qa/3659/moving-from-ubuntu-12-04-to-14-04-swig-
problem

The question was closed by administrator and he told me I should try to post
the problem here.
So here is my problem (I had Ubuntu 12.04 and just updated to 14.04, did 
nothing else):

I updated my Ubuntu and when trying to use my fenics scripts I got the 
following error:

Traceback (most recent call last):
  File "min_example_indicator.py", line 9, in <module>
    V =  FunctionSpace(mesh, "CG", 3)
  File "/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py",
line 403, in __init__
    FunctionSpaceBase.__init__(self, mesh, element, constrained_domain)
  File "/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py",
line 84, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line
60, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line
122, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 76, in 
jit
    return jit_element(ufl_object, parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 252, in 
jit_element
    compiled_form, module, form_data, prefix = jit_form(form, parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 175, in 
jit_form
    module_name = "ffc_form_" + jit_object.signature()
  File "/usr/lib/python2.7/dist-packages/ffc/jitobject.py", line 91, in 
signature
    swig_signature = str(get_swig_version())
  File "/usr/lib/python2.7/dist-packages/instant/config.py", line 47, in get
_swig_version
    result, output = get_status_output("%s -version"%get_swig_binary())
  File "/usr/lib/python2.7/dist-packages/instant/output.py", line 82, in get
_status_output
    pipe = Popen(cmd, shell=False, cwd=cwd, env=env, stdout=PIPE, stderr=
STDOUT)
  File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

Last six rows are probably important... I tried what is here (sort of 
cleaning):
http://fenicsproject.org/qa/3360/have-upgraded-ubuntu-dolfin-doesnt-work-
solve-that-problem
but did not work.

Result of this script:

from dolfin import *
print dolfin_version()

is 1.3.0

Best regards,
Peter.
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to