Yes. Anyways, the file is overwritten in every run if it exists. Weird.. David
On 11/06/2015 09:37 AM, Jan Blechta wrote: > Have you tried removing the file and running again? > > Jan > > > On Fri, 6 Nov 2015 09:32:14 -0300 > David Nolte <dno...@dim.uchile.cl> wrote: > >> Yes, what I meant is: >> >> ~/.hashdist/bld/profile/smthing/bin/python $HOME/demo_poisson.py >> >> The python executable is in .hashdist/bld/profile/xyz/bin, but my >> working directory is definately writable. >> Also tried with ipython, using cd to change the current directory to >> the writable location of demo_poisson.py before doing %run >> demo_poisson.py >> >> Or how do you mean? Maybe I just don't understand. >> >> -- David >> >> On 11/06/2015 09:24 AM, Jan Blechta wrote: >>> On Fri, 6 Nov 2015 08:50:10 -0300 > David Nolte >>> <dno...@dim.uchile.cl> wrote: > >> 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 >>>>>> >>>>>> >>>>>> >> >> >> > > > _______________________________________________ fenics mailing list fenics@fenicsproject.org http://fenicsproject.org/mailman/listinfo/fenics