On Fri, 6 Nov 2015 08:50:10 -0300
David Nolte <dno...@dim.uchile.cl> wrote:

> 
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
> 
> Jan: No, I didn't use sudo to install hashdist or in any occasion
> here.
> 
> Martin: Yes, I did run the script from a location with +w
> permissions, e.g. " ~/dev/hashstack/fenics/bin/python
> demo_poisson.py" in $HOME. (fenics being the link to
> ~/.hashdist/bld/profile/..)

That's it. Directories in ~/.hashdist/bld/profile/ are 444 - don't ask
me why. Run in a directory where you really do have permissions.

Jan

> 
> That's not it, either.
> 
> Cheers, David
> 
> 
> On 11/06/2015 03:46 AM, Jan Blechta wrote:
> > On Thu, 5 Nov 2015 20:43:54 -0300
> > David Nolte <dno...@dim.uchile.cl> wrote:
> >
> >> Hi all,
> >>
> >> I just installed fenics from source via hashdist on Linux. I had a
> >> problem with PETSc and ML
> >> (https://www.mail-archive.com/fenics@fenicsproject.org/msg02887.html),
> >> but disabling the download of ML let me compile the source
> >> successfully (actually, what are the downsides of omitting ML?).
> >> However, now the Poisson demo d1_p2D.py fails in the call of
> >> FunctionSpace():
> >>
> >>
> >> from dolfin import *
> >>
> >> mesh = UnitSquareMesh(6, 4)   # <-- btw, had to add Mesh here to
> >
> > File d1_p2d.py and the FEniCS tutorial are outdated and
> > unmaintained. Refer rather to documented demos shipped within
> > DOLFIN source tree or on
> >
> http://fenicsproject.org/documentation/dolfin/1.6.0/python/demo/index.html.
> >
> >> UnitSquare()
> >> V = FunctionSpace(mesh, 'Lagrange', 1)
> >>
> >>
> >> gives the message:
> >>
> >> Calling FFC just-in-time (JIT) compiler, this may take some time.
> >> Traceback (most recent call last):
> >>   File "/home/david/work/fenics/demo.py", line 4, in <module>
> >>     V = FunctionSpace(mesh, 'Lagrange', 1)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
> >> line 468, in __init__
> >>     FunctionSpaceBase.__init__(self, mesh, element,
> >> constrained_domain) File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
> >> line 153, in __init__
> >>     ufc_element, ufc_dofmap = jit(self._ufl_element,
> >> mpi_comm=mesh.mpi_comm())
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
> >> line 64, in mpi_jit
> >>     return local_jit(*args, **kwargs)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
> >> line 128, in jit
> >>     return form_compiler.jit(form, parameters=p)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/jitcompiler.py",
> >> line 72, in jit
> >>     return jit_element(ufl_object, parameters)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/jitcompiler.py",
> >> line 180, in jit_element
> >>     compiled_form, module, prefix = jit_form(form, parameters)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/jitcompiler.py",
> >> line 130, in jit_form
> >>     parameters=parameters)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/compiler.py",
> >> line 180, in compile_form
> >>     write_code(code_h, code_c, prefix, parameters) # FIXME: Don't
> >> write to file in this function (issue #72)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/formatting.py",
> >> line 99, in write_code
> >>     _write_file(code_h, prefix, ".h", parameters)
> >>   File
> >>
> "/home/david/.hashdist/bld/profile/nemsbmvk2e4z/lib/python2.7/site-packages/ffc/formatting.py",
> >> line 118, in _write_file
> >>     with open(filename, "w") as hfile:
> >> IOError: [Errno 13] Permission denied:
> >> './ffc_form_030172ac36a54f6832c74e6833003d3326a83aa3.h'
> >>
> >>
> >> The file ffc_form_*.h has permissons '644'.
> >>
> >>
> >> Does anyone know what's wrong? Thanks for the advice!
> >
> > Have you executed hashdist using sudo? This is known to cause
> > problems with permissions.
> >
> > Jan
> >
> >>
> >> -- David
> >>
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> fenics mailing list
> >> fenics@fenicsproject.org
> >> http://fenicsproject.org/mailman/listinfo/fenics
> >
> >
> >
> >
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
> 
> iQEcBAEBCAAGBQJWPJPyAAoJECG0wKa1Qxy1SyMIAI1XQfRrejvWLsfQcuh6lX+b
> NYXWamUjJwJIGFJBZn4yGqFVDS5uJGFt3ESTk65xK46FpTbL5bvCaPHD1gLbhF6L
> UA0XMgMDLQmeDQiZ8JzCDtwe7ufR72m2RelwrCWnvm3hy43vVayYhO5tRqGLmFHu
> +LY+Xf2yi/mcpZCyYJIA4H9gJB8uD2XHyls8y1da853j2iO8s7rxej2nMYi9/zkH
> 0xd/dYPtsreI1RjiMeH9XUCfCSXeAp3H5iEfHzPRLcbFl9IIkJYKKN83w7gZiz9K
> TzH3JITWwlXxQoSxwREGK05EK7XBbVWM2Rfcc4NPcg901plwl5Bbi+wmFogdlko=
> =PBwp
> -----END PGP SIGNATURE-----

_______________________________________________
fenics mailing list
fenics@fenicsproject.org
http://fenicsproject.org/mailman/listinfo/fenics

Reply via email to