On Wed, Jul 16, 2014 at 8:34 AM, Auret, Jacques <[email protected]> wrote: > This message (and attachments) is subject to restrictions and a disclaimer. > Please refer to http://www.unisa.ac.za/disclaimer for full details. > ________________________________ > > Good day. > > > > I’m trying to install fenics on our HPC which is running on RedHat 6.2 > operating system. > > > > I looks like everything is working until the installation get to ffc-1.4.0. > > > > First it complained about : > > > > Traceback (most recent call last): > > File "setup.py", line 290, in <module> > > run_install() > > File "setup.py", line 205, in run_install > > SWIG_EXECUTABLE = get_swig_executable() > > File "setup.py", line 61, in get_swig_executable > > output = subprocess.check_output([swig_executable, "-version"]) > > AttributeError: 'module' object has no attribute 'check_output' > > Failure with exit status: 1 > > Exit message: There was a problem building ffc-1.4.0. > > > > From what I’ve read is that subprocess.check_output() is only available in > Python 2.7. Python 2.6.6 is currently installed on the server. > > So I replaced the line output = subprocess.check_output([swig_executable, > "-version"]) with > > output = subprocess.Popen([swig_executable, "-version"]) in the setup.py > file.
This should work with Python 2.6: output = subprocess.Popen([swig_executable, "-version"], stdout=subprocess.PIPE).communicate()[0] I'm not sure if we have decided to keep support for 2.6 or if we require 2.7 now. Johannes _______________________________________________ fenics-support mailing list [email protected] http://fenicsproject.org/mailman/listinfo/fenics-support
