CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[PyFoam] PyFoam 6.6.9 installation problems

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2018, 17:13
Default PyFoam 6.6.9 installation problems
  #1
Senior Member
 
Klaus
Join Date: Mar 2009
Posts: 281
Rep Power: 22
klausb will become famous soon enough
Hi,

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
klausb is offline   Reply With Quote

Old   March 6, 2018, 20:29
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by klausb View Post
Hi,

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
Installation seems to be OK. The problem is probably with gnuplot. Can you elaborate on "I tested gnuplot"? Also: which terminal does gnuplot use when you see plots with windows ("x11" or something different?)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   October 2, 2022, 06:56
Default
  #3
New Member
 
Sanjay R
Join Date: Sep 2022
Posts: 8
Rep Power: 4
SanWick002 is on a distinguished road
Have you solved the problem? since I too seem to have the same issue...
SanWick002 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[PyFoam] Problems with installing PyFoam Christoph_84 OpenFOAM Community Contributions 34 October 26, 2021 12:25
[OpenFOAM.com] v1606+ Problems of installation on iMac Intercooled OpenFOAM Installation 4 November 15, 2016 21:22
Problems installing SVN in Ubuntu (for later installing PyFoam for OpenFOAM) immortality Lounge 2 May 24, 2014 04:05
Problems with installation batta31 OpenFOAM Installation 2 September 4, 2012 08:01
installation problems on upgrade from win 3.26 to mic Siemens 5 June 20, 2007 10:40


All times are GMT -4. The time now is 21:06.