Od: [email protected]
"
Komu: [email protected]
Datum: 27. 5. 2014 9:56:48
Předmět: Re: [FEniCS-support] Ubuntu 12.04 -> 14.04 upgrade swig(?) problem
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.
---------- Původní zpráva ----------
Od: [email protected]
Komu: [email protected]
Datum: 26. 5. 2014 16:52:06
Předmět: [FEniCS-support] Ubuntu 12.04 -> 14.04 upgrade problem (swig?)
Dear experts, I would highly appresciate any help. My question was also
here:
http://fenicsproject.org/qa/3659/moving-from-ubuntu-12-04-to-14-04-swig-
problem
And again to have my problem inside this mail:
I updated my Ubuntu and when trying to use my fenics scripts I got the
following error:
<span>Traceback</span> (<span>most</span> <span>recent</span>
<span><span>call</span></span> <span><span>last</span></span>)<span>:</span>
<span>File</span> <span>"min_example_indicator.py"</span>, <span>line</span>
<span>9</span>, <span><span>in</span></span> <<span><span>module</span></span>>
<span>V</span> = <span>FunctionSpace</span>(<span>mesh</span>,
<span>"CG"</span>, <span>3</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py"</span>,
<span>line</span> <span>403</span>, <span><span>in</span></span>
<span>__init__</span>
<span>FunctionSpaceBase</span>.<span>__init__</span>(<span><span>self</span></span>,
<span>mesh</span>, <span>element</span>, <span>constrained_domain</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/dolfin/functions/functionspace.py"</span>,
<span>line</span> <span>84</span>, <span><span>in</span></span>
<span>__init__</span>
<span>ufc_element</span>, <span>ufc_dofmap</span> =
<span>jit</span>(<span><span>self</span></span>.<span>_ufl_element</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py"</span>,
<span>line</span> <span>60</span>, <span><span>in</span></span>
<span>mpi_jit</span>
<span><span>return</span></span> <span>local_jit</span>(*<span>args</span>,
**<span>kwargs</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py"</span>,
<span>line</span> <span>122</span>, <span><span>in</span></span>
<span>jit</span>
<span><span>return</span></span>
<span>jit_compile</span>(<span>form</span>,
<span>parameters</span>=<span>p</span>,
<span>common_cell</span>=<span>common_cell</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py"</span>,
<span>line</span> <span>76</span>, <span><span>in</span></span> <span>jit</span>
<span><span>return</span></span>
<span>jit_element</span>(<span>ufl_object</span>, <span>parameters</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py"</span>,
<span>line</span> <span>252</span>, <span><span>in</span></span>
<span>jit_element</span>
<span>compiled_form</span>, <span><span>module</span></span>,
<span>form_data</span>, <span>prefix</span> =
<span>jit_form</span>(<span>form</span>, <span>parameters</span>)
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py"</span>,
<span>line</span> <span>175</span>, <span><span>in</span></span>
<span>jit_form</span>
<span>module_name</span> = <span>"ffc_form_"</span> +
<span>jit_object</span>.<span>signature</span>()
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/ffc/jitobject.py"</span>,
<span>line</span> <span>91</span>, <span><span>in</span></span>
<span>signature</span>
<span>swig_signature</span> =
<span>str</span>(<span>get_swig_version</span>())
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/instant/config.py"</span>,
<span>line</span> <span>47</span>, <span><span>in</span></span>
<span>get_swig_version</span>
<span>result</span>, <span>output</span> =
<span>get_status_output</span>(<span>"%s
-version"</span>%<span>get_swig_binary</span>())
<span>File</span>
<span>"/usr/lib/python2.7/dist-packages/instant/output.py"</span>,
<span>line</span> <span>82</span>, <span><span>in</span></span>
<span>get_status_output</span>
<span><span>pipe</span></span> = <span>Popen</span>(<span>cmd</span>,
<span>shell</span>=<span>False</span>, <span>cwd</span>=<span>cwd</span>,
<span>env</span>=<span>env</span>, <span>stdout</span>=<span>PIPE</span>,
<span>stderr</span>=<span>STDOUT</span>)
<span>File</span> <span>"/usr/lib/python2.7/subprocess.py"</span>,
<span>line</span> <span>710</span>, <span><span>in</span></span>
<span>__init__</span>
<span>errread</span>, <span>errwrite</span>)
<span>File</span> <span>"/usr/lib/python2.7/subprocess.py"</span>,
<span>line</span> <span>1327</span>, <span><span>in</span></span>
<span>_execute_child</span>
<span><span>raise</span></span> <span>child_exception</span>
<span>OSError</span><span>:</span> [<span>Errno</span> <span>2</span>]
<span>No</span> <span>such</span> <span>file</span>
<span><span>or</span></span> <span>directory</span>
I tried what is here:
http://fenicsproject.org/qa/3360/have-upgraded-ubuntu-dolfin-doesnt-work-
solve-that-problem
(http://fenicsproject.org/qa/3360/have-upgraded-ubuntu-dolfin-doesnt-work-solve-that-problem)
but did not work.
Result of
<span>from</span> dolfin <span>import</span> *
<span>print</span> dolfin_version()
is 1.3.0
Best regards,
Peter.
---------- Původní zpráva ----------
Od: Johannes Ring <[email protected]>
Komu: [email protected]
Datum: 27. 5. 2014 10:29:26
Předmět: Re: [FEniCS-support] Ubuntu 12.04 -> 14.04 upgrade swig(?) problem
On Tue, May 27, 2014 at 9:56 AM, <[email protected]> wrote:
> 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
Do you by any chance have a dolfin_parameters.xml file in the current
directory or in ~/.config/fenics/?
Johannes"
Dear Johannes, I did not find the file "dolfin_parameters.xml" anywhere,
including the places you suggested.
Thank you for helping me!
Best regards,
Peter.
""_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support