The errors with Ubuntu on Windows 7

Asked by Nguyen Van Dang

Hello,
I am using Ubuntu on Windows 7 with VMware Player. After installing Fenics at the link http://fenicsproject.org/download/ubuntu_details.html#ubuntu-details, I tried to run a demo in /usr/share/dolfin/demo/la/eigenvalue/python and I got following errors. I don't know if Fenics can run with Ubuntu on Windows or if I got any mistakes. Any helps are appreciated.
Thank you very much for your help.

--------------------------
On Terminal, I typed: nguyenvandang@ubuntu:/usr/share/dolfin/demo/la/eigenvalue/python$ python demo.py
--------------------------
Errors I got

Calling FFC just-in-time (JIT) compiler, this may take some time.
Traceback (most recent call last):
  File "demo.py", line 29, in <module>
    V = FunctionSpace(mesh, "CG", 1)
  File "/usr/lib/python2.7/dist-packages/dolfin/function/functionspace.py", line 237, in __init__
    FunctionSpaceBase.__init__(self, mesh, element)
  File "/usr/lib/python2.7/dist-packages/dolfin/function/functionspace.py", line 44, in __init__
    ufc_element, ufc_dofmap = jit(self._ufl_element)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 47, in mpi_jit
    return local_jit(*args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/dolfin/compilemodules/jit.py", line 114, in jit
    return jit_compile(form, parameters=p, common_cell=common_cell)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 62, in jit
    return jit_element(object, parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 162, in jit_element
    (compiled_form, module, form_data) = jit_form(form, parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/jitcompiler.py", line 122, in jit_form
    compile_form(preprocessed_form, prefix=jit_object.signature(), parameters=parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/compiler.py", line 160, in compile_form
    format_code(code, wrapper_code, prefix, parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/formatting.py", line 93, in format_code
    _write_file(code_h, prefix, ".h", parameters)
  File "/usr/lib/python2.7/dist-packages/ffc/formatting.py", line 116, in _write_file
    hfile = open(filename, "w")
IOError: [Errno 13] Permission denied: './form_2a847407964b972dd3bae7db1677609d30814b8d.h'

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu fenics Edit question
Assignee:
No assignee Edit question
Solved by:
mycae
Solved:
Last query:
Last reply:
Revision history for this message
Best mycae (mycae) said :
#1

I don't know much about fenics/dolphin, but clearly it attempting to write to part of your filesystem outside your user folder. This is disallowed to prevent users from damaging the OS, or rewriting bits of it -- such permission systems are essential to maintain systems stability and security.

Try copying the relevant directories and files into your user's home directory, before executing the program.

Revision history for this message
Nguyen Van Dang (dang-1032170) said :
#2

Thanks mycae, that solved my question.