On Wed, 17 Dec 2014 14:27:41 +1300
Bart Verleye <[email protected]> wrote:

> Hi,
> 
>  >
>  > You need all the FEniCS component (FIAT, UFL, FFC, Instant,
>  > DOLFIN) at version
>  >
>  > - either 1.4.0, downloadable as tarball or checkoutable in git
>  >    repository as tag foo-1.4.0
>  > - or up-to-date master branch from respective git repositories
> 
> Ok, thanks. I downloaded everything again and started from scratch.
> That seemed to help.

So, you're trying now with master, right?

> 
> However, now I'm getting the error below. I tried using COMMANDS

This does not do what expected, see
https://bitbucket.org/fenics-project/instant/commits/f425083bd29b358e677a683ebb5551f3c55d43a1#comment-1497241

> instead of SUBPROCESS and also changed getstatusoutput to
> get_status_output, according to what I found on FEniCS help pages,

Why?

Preventively try running 'instant-clean' script. Then check whether
directories specified in INSTANT_CACHE_DIR and INSTANT_ERROR_DIR
environment variables exist and are writable.

What does it do with INSTANT_CALL_METHOD='SUBPROCESS','OS_SYSTEM' or
'COMMANDS' (without any modification). Also what about
INSTANT_CALL_METHOD='COMMANDS' with the following patch?

==============================================================================
diff --git a/instant/output.py b/instant/output.py
index def2587..58b9f8b 100644
--- a/instant/output.py
+++ b/instant/output.py
@@ -157,9 +157,9 @@ elif _call_method == 'OS_SYSTEM':
         return (status, output)
 
 elif _call_method == 'COMMANDS':
-    import subprocess
+    import commands
     def get_status_output(*args, **kwargs):
-        status, output = subprocess.getstatusoutput(*args, **kwargs)
+        status, output = commands.getstatusoutput(*args, **kwargs)
         output = output.decode('utf-8') if sys.version_info[0] > 2
else output return status, output
 else:
==============================================================================

Jan

> but the error still remains.
> 
> Thanks,
> Bart
> 
> 
> 
> (virtualPython)bver018  build-wm-p 
> /projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant
> $ python poisson.py
> 
> Calling FFC just-in-time (JIT) compiler, this may take some time.
> Traceback (most recent call last):
>    File "/projects/uoa00295/test/poisson.py", line 6, in <module>
>      V = FunctionSpace(mesh, 'Lagrange', 1)
>    File 
> "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/functions/functionspace.py",
>  
> line 468, in __init__
>      FunctionSpaceBase.__init__(self, mesh, element,
> constrained_domain) File 
> "/projects/uoa00295/dolfin/build/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 
> "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
>  
> line 64, in mpi_jit
>      return local_jit(*args, **kwargs)
>    File 
> "/projects/uoa00295/dolfin/build/lib/python2.7/site-packages/dolfin/compilemodules/jit.py",
>  
> line 128, in jit
>      return form_compiler.jit(form, parameters=p)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py",
>  
> line 72, in jit
>      return jit_element(ufl_object, parameters)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py",
>  
> line 177, in jit_element
>      compiled_form, module, prefix = jit_form(form, parameters)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/jitcompiler.py",
>  
> line 148, in jit_form
>      cache_dir = cache_dir)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/ffc/backends/ufc/build.py",
>  
> line 73, in build_ufc_module
>      **kwargs)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/build.py",
>  
> line 563, in build_module
>      recompile(modulename, module_path, new_compilation_checksum, 
> build_system)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/build.py",
>  
> line 144, in recompile
>      ret, output = get_status_output(cmd)
>    File 
> "/gpfs1m/projects/uoa00295/virtualPython/lib/python2.7/site-packages/instant/output.py",
>  
> line 163, in get_status_output
>      status, output = subprocess.check_output(*args, **kwargs)
>    File 
> "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py",
>  
> line 566, in check_output
>      process = Popen(stdout=PIPE, *popenargs, **kwargs)
>    File 
> "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py",
>  
> line 710, in __init__
>      errread, errwrite)
>    File 
> "/share/easybuild/RHEL6.3/westmere/software/Python/2.7.8-goolf-1.5.14/lib/python2.7/subprocess.py",
>  
> line 1327, in _execute_child
>      raise child_exception
> OSError: [Errno 2] No such file or directory
>  >
>  > Jan
>  >
>  >>
>  >> Thanks,
>  >> Bart
>  >>
>  >>
>  >>
>  >
> 

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

Reply via email to