PyFoam is not working properly. I installed it using pip so I can plot the residuals from my new OpenFoam 5.0 installation.
Issue 1: the installed gnuplot version 5.2.2-7 is not recognized
I tested gnuplot and it works fine.
Issue 2: pyFoamVersion.py seems to identify the installed OpenFoam 5.0 as a fork version
Issue 3: The residual plot using pyFoamPlotRunner.py doesn't work at all.
pyFoamVersion.py gives the following information:
Code:
Machine info: Linux | test | 4.15.7-60.current | #1 SMP PREEMPT Thu Mar 1 13:02:55 UTC 2018 | x86_64 |
Python version: 2.7.14 (default, Feb 17 2018, 10:27:51)
[GCC 7.3.0]
Python executable: /usr/bin/python2.7
Python 2.7 is one development platform for PyFoam (along with Python 3)
PYTHONPATH is not set
Location of this utility: /usr/bin/pyFoamVersion.py
PyFoam WARNING on line 202 of file /usr/lib/python2.7/site-packages/PyFoam/FoamInformation.py : Basedir /home/klaus/foam for fork extend does not exist or is not a directory
Version 5.0 (reported as number 5.0 )Fork openfoam of the installed 1 versions:
openfoam-5.0 : /home/klaus/OpenFOAM/OpenFOAM-5.0
pyFoam-Version: 0.6.9
Path where PyFoam was found (PyFoam.__path__) is ['/usr/lib/python2.7/site-packages/PyFoam']
Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/klaus/.pyFoam/pyfoamrc'), ('directory', '/home/klaus/.pyFoam/pyfoamrc.d')]
Configuration files (used): []
Installed libraries:
cython : No Not used. Maybe will by used later to spped up parts of PyFoam
cProfile : Yes
docutils : No Not necessary. Needed for RestructuredText to HTML conversion
Gnuplot : No Not a problem. Version from ThirdParty is used
hotshot : Yes
line_profiler : No Not a problem. Can't profile using this library
ipdb : No Not necessary. Only makes debugging more comfortable
IPython : No Not necessary. But the interactive shell may be more comfortable
matplotlib : No Only Gnuplot-plotting possible
mercurial : No Not a problem. Used for experimental case handling
pytest : No Only needed for running the unit-tests (developers only)
numpy : Yes version: 1.14.1
openpyxl : No Not a problem. Only used for exporting pandas-data to Excel-files (advanced). If xlsxwriter is installed it will handle this (xlsxwriter is recommended anyway)
xlsxwriter : No Not a problem. Only used for exporting pandas-data to XLSX-files (advanced). If openpyxl is installed then this module can handle that
pandas : No Not a problem. Only used for handling of advanced data-handling
ply : No Not a problem. Version from ThirdParty is used
profile : Yes
psyco : No Not a problem. Acceleration not possible
PyQt4 : No Only some experimental GUI-stuff relies on this
PyQt4.Qwt5 : No Only an alternate plotting back-end
scipy : No Not yet used. Possibly use signal-fitting etc
Tkinter : Yes version: $Revision: 81008 $
twisted : No Not yet used. Possibly reimplement MetaServer with it
vtk : No Not a problem. Only used for some utilities
xlwt : No Not a problem. Only used for exporting pandas-data to Excel-files
xlrd : No Not a problem. Only used for importing Excel-files to pandas-data
requests : Yes version: 2.18.4
zeroconf : No Not a problem. Necessary to find existing runs. Install with 'pip install zeroconf'
psutil : No Not a problem. Provides better calculation of the maximum used memory
PyFoam.ThirdParty.ply.yacc : Yes version: 3.9
PyFoam.ThirdParty.Gnuplot : Yes version: 1.8
PyFoam.ThirdParty.tqdm : Yes version: 4.8.4
PyFoam.ThirdParty.IPy : Yes version: 0.51
PyFoam.ThirdParty.pyratemp : Yes version: 0.2.0
PyFoam.ThirdParty.six : Yes version: 1.10.0
PyFoam.ThirdParty.winhacks : Yes
Library locations
cProfile : /usr/lib/python2.7/cProfile.py
hotshot : /usr/lib/python2.7/hotshot/__init__.py
numpy : /usr/lib/python2.7/site-packages/numpy/__init__.pyc
profile : /usr/lib/python2.7/profile.py
PyFoam.ThirdParty.Gnuplot : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/Gnuplot/__init__.pyc
PyFoam.ThirdParty.IPy : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/IPy.pyc
PyFoam.ThirdParty.ply.yacc : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/ply/yacc.pyc
PyFoam.ThirdParty.pyratemp : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.pyc
PyFoam.ThirdParty.six : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/six.pyc
PyFoam.ThirdParty.tqdm : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/tqdm/__init__.pyc
PyFoam.ThirdParty.winhacks : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/winhacks.pyc
requests : /usr/lib/python2.7/site-packages/requests/__init__.pyc
Tkinter : /usr/lib/python2.7/lib-tk/Tkinter.pyc
Checking additional envirnoment variables
Checking for PYFOAM_DIR : Location of the PyFoam-installation. Not strictly necessary
PYFOAM_DIR missing from environment
Checking for PYFOAM_SITE_DIR : Location of non-PyFoam-disctributions script. Set and used by some Foam-distributions
PYFOAM_SITE_DIR missing from environment
User information
Username: klaus
Temporary directory: /tmp/PyFoam_klaus
Public key: 3be4f830574208f17776e286f2609b:052e3e1262b0781fa5026f3281772dab
What's wrong with the installation?
Klaus
PyFoam is not working properly. I installed it using pip so I can plot the residuals from my new OpenFoam 5.0 installation.
Issue 1: the installed gnuplot version 5.2.2-7 is not recognized
I tested gnuplot and it works fine.
Issue 2: pyFoamVersion.py seems to identify the installed OpenFoam 5.0 as a fork version
Issue 3: The residual plot using pyFoamPlotRunner.py doesn't work at all.
pyFoamVersion.py gives the following information:
Code:
Machine info: Linux | test | 4.15.7-60.current | #1 SMP PREEMPT Thu Mar 1 13:02:55 UTC 2018 | x86_64 |
Python version: 2.7.14 (default, Feb 17 2018, 10:27:51)
[GCC 7.3.0]
Python executable: /usr/bin/python2.7
Python 2.7 is one development platform for PyFoam (along with Python 3)
PYTHONPATH is not set
Location of this utility: /usr/bin/pyFoamVersion.py
PyFoam WARNING on line 202 of file /usr/lib/python2.7/site-packages/PyFoam/FoamInformation.py : Basedir /home/klaus/foam for fork extend does not exist or is not a directory
Version 5.0 (reported as number 5.0 )Fork openfoam of the installed 1 versions:
openfoam-5.0 : /home/klaus/OpenFOAM/OpenFOAM-5.0
pyFoam-Version: 0.6.9
Path where PyFoam was found (PyFoam.__path__) is ['/usr/lib/python2.7/site-packages/PyFoam']
Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/klaus/.pyFoam/pyfoamrc'), ('directory', '/home/klaus/.pyFoam/pyfoamrc.d')]
Configuration files (used): []
Installed libraries:
cython : No Not used. Maybe will by used later to spped up parts of PyFoam
cProfile : Yes
docutils : No Not necessary. Needed for RestructuredText to HTML conversion
Gnuplot : No Not a problem. Version from ThirdParty is used
hotshot : Yes
line_profiler : No Not a problem. Can't profile using this library
ipdb : No Not necessary. Only makes debugging more comfortable
IPython : No Not necessary. But the interactive shell may be more comfortable
matplotlib : No Only Gnuplot-plotting possible
mercurial : No Not a problem. Used for experimental case handling
pytest : No Only needed for running the unit-tests (developers only)
numpy : Yes version: 1.14.1
openpyxl : No Not a problem. Only used for exporting pandas-data to Excel-files (advanced). If xlsxwriter is installed it will handle this (xlsxwriter is recommended anyway)
xlsxwriter : No Not a problem. Only used for exporting pandas-data to XLSX-files (advanced). If openpyxl is installed then this module can handle that
pandas : No Not a problem. Only used for handling of advanced data-handling
ply : No Not a problem. Version from ThirdParty is used
profile : Yes
psyco : No Not a problem. Acceleration not possible
PyQt4 : No Only some experimental GUI-stuff relies on this
PyQt4.Qwt5 : No Only an alternate plotting back-end
scipy : No Not yet used. Possibly use signal-fitting etc
Tkinter : Yes version: $Revision: 81008 $
twisted : No Not yet used. Possibly reimplement MetaServer with it
vtk : No Not a problem. Only used for some utilities
xlwt : No Not a problem. Only used for exporting pandas-data to Excel-files
xlrd : No Not a problem. Only used for importing Excel-files to pandas-data
requests : Yes version: 2.18.4
zeroconf : No Not a problem. Necessary to find existing runs. Install with 'pip install zeroconf'
psutil : No Not a problem. Provides better calculation of the maximum used memory
PyFoam.ThirdParty.ply.yacc : Yes version: 3.9
PyFoam.ThirdParty.Gnuplot : Yes version: 1.8
PyFoam.ThirdParty.tqdm : Yes version: 4.8.4
PyFoam.ThirdParty.IPy : Yes version: 0.51
PyFoam.ThirdParty.pyratemp : Yes version: 0.2.0
PyFoam.ThirdParty.six : Yes version: 1.10.0
PyFoam.ThirdParty.winhacks : Yes
Library locations
cProfile : /usr/lib/python2.7/cProfile.py
hotshot : /usr/lib/python2.7/hotshot/__init__.py
numpy : /usr/lib/python2.7/site-packages/numpy/__init__.pyc
profile : /usr/lib/python2.7/profile.py
PyFoam.ThirdParty.Gnuplot : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/Gnuplot/__init__.pyc
PyFoam.ThirdParty.IPy : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/IPy.pyc
PyFoam.ThirdParty.ply.yacc : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/ply/yacc.pyc
PyFoam.ThirdParty.pyratemp : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/pyratemp.pyc
PyFoam.ThirdParty.six : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/six.pyc
PyFoam.ThirdParty.tqdm : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/tqdm/__init__.pyc
PyFoam.ThirdParty.winhacks : /usr/lib/python2.7/site-packages/PyFoam/ThirdParty/winhacks.pyc
requests : /usr/lib/python2.7/site-packages/requests/__init__.pyc
Tkinter : /usr/lib/python2.7/lib-tk/Tkinter.pyc
Checking additional envirnoment variables
Checking for PYFOAM_DIR : Location of the PyFoam-installation. Not strictly necessary
PYFOAM_DIR missing from environment
Checking for PYFOAM_SITE_DIR : Location of non-PyFoam-disctributions script. Set and used by some Foam-distributions
PYFOAM_SITE_DIR missing from environment
User information
Username: klaus
Temporary directory: /tmp/PyFoam_klaus
Public key: 3be4f830574208f17776e286f2609b:052e3e1262b0781fa5026f3281772dab
What's wrong with the installation?
Klaus