contrib/python/Gnuplot.py incompatible with new pythons


Gets Around
Hi,

on RHEL6, python 2.6; Fedora 16, python 2.7:

python contrib/python/Gnuplot.py File "contrib/python/Gnuplot.py", line 215
self.with = keyw['with']
^
SyntaxError: invalid syntax

Marcin

Forum Vet
Marcin,
Gnuplot.py has a new version available from

http://gnuplot-py.sourceforge.net

This makes it sor of irrelevant keeping a version of it under the NWChem tree.
Anyhow, I have updated the Gnuplot.py from the existing NWChem to make it compatible with recent
python changes (for versions after 2.6, plus it now requires numpy instead of numeric)
http://nwchemgit.github.io/images/Gnuplotnew.xyz
Once you have downloaded the file, please rename it to Gnuplot.py

Let me know if it works under Fedora and RHEL6, since I have tested only under RHEL5 and Ubuntu 11

Gets Around
http://nwchemgit.github.io/images/Gnuplotnew.xyz works with python 2.6 (RHEL6) and 2.7 (Fedora 16).
By the way Fedora distributes gnuplot-py as RPM by default, RHEL{5,6} don't.


Forum >> NWChem's corner >> Compiling NWChem