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.
Now I'm getting :
Fetching ffc-1.4.0
Verifying ffc-1.4.0
ffc-1.4.0.tar.gz: OK
Unpacking ffc-1.4.0
Building ffc-1.4.0
Traceback (most recent call last):
File "setup.py", line 291, in <module>
run_install()
File "setup.py", line 206, in run_install
SWIG_EXECUTABLE = get_swig_executable()
File "setup.py", line 63, in get_swig_executable
swig_version = re.findall(r"SWIG Version ([0-9.]+)", output)[0]
SWIG Version 2.0.3
Compiled with g++ [x86_64-unknown-linux-gnu]
Configured options: +pcre
Please see http://www.swig.org for reporting bugs and further information
File "/usr/lib64/python2.6/re.py", line 177, in findall
return _compile(pattern, flags).findall(string)
TypeError: expected string or buffer
Failure with exit status: 1
Exit message: There was a problem building ffc-1.4.0.
In the README.rst file it say that I will need Python 2.6. Is this correct ?
Can you please let me know what I do to fix the problem.
Best Regards
Jacques Auret
_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support