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

[PyFoam] Installing PyFoam from pip, can't tell if its installed correctly?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 6, 2021, 21:23
Question Installing PyFoam from pip, can't tell if its installed correctly?
  #1
Senior Member
 
Sultan Islam
Join Date: Dec 2015
Location: Canada
Posts: 141
Rep Power: 10
EternalSeekerX is on a distinguished road
Hello everyone,


I am running Fedora 34 and I wanted to compile FE40 and FE41. However there thirdparty version of pyfoam won't compile due to shebang errors, I was suggested to just install pyfoam separately. I am using Python 3.9 and i used pip install PyFoam. However I can't tell if it installed correctly.



I ran pyFoamVersion.py and it showed some outputs:
Code:
[AI-FE@AI-Workstation ~]$ pyFoamVersion.py
Machine info: Linux | AI-Workstation | 5.12.8-300.fc34.x86_64 | #1 SMP Fri May 28 15:20:54 UTC 2021 | x86_64 | x86_64

Python version: 3.9.5 (default, May 14 2021, 00:00:00) 
[GCC 11.1.1 20210428 (Red Hat 11.1.1-1)]

Python executable: /usr/bin/python3

Python 3 is supported with PyFoam
PYTHONPATH is not set

Location of this utility: /home/AI-FE/.local/bin/pyFoamVersion.py

 PyFoam WARNING on line 229 of file /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/FoamInformation.py : Basedir /home/AI-FE/OpenFOAM for fork openfoam does not exist or is not a directory 
 PyFoam WARNING on line 229 of file /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/FoamInformation.py : Basedir /home/AI-FE/foam for fork extend does not exist or is not a directory 
 PyFoam WARNING on line 229 of file /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/FoamInformation.py : Basedir /home/AI-FE/OpenFOAM for fork openfoamplus does not exist or is not a directory 
Version () (reported as number  )Fork openfoam of the installed 0 versions:

pyFoam-Version: 2021.5

Path where PyFoam was found (PyFoam.__path__) is ['/home/AI-FE/.local/lib/python3.9/site-packages/PyFoam']

Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/AI-FE/.pyFoam/pyfoamrc'), ('directory', '/home/AI-FE/.pyFoam/pyfoamrc.d')]
Configuration files (used): []

Installed libraries:
cython                         :  Yes      version: 0.29.23 
cProfile                       :  Yes 
docutils                       :  No      Not necessary. Needed for RestructuredText to HTML conversion 
Gnuplot                        :  No      Not a problem. Version from ThirdParty is used 
hotshot                        :  No      Not a problem. Can't profile using this library 
line_profiler                  :  No      Not a problem. Can't profile using this library 
ipdb                           :  No      Not necessary. Only makes debugging more comfortable 
IPython                        :  Yes      version: 7.20.0 Matches required version 2.0.0 
matplotlib                     :  Yes      version: 3.4.2 
mercurial                      :  Yes      version: b'5.7.1' 
pytest                         :  No      Only needed for running the unit-tests (developers only) 
numpy                          :  Yes      version: 1.20.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                            :  Yes      version: 3.11 
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                        :  No      Not a problem. Used for the old version of DisplayBlockmesh and some matplotlib-implementations 
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.25.1 
zeroconf                       :  Yes      version: 0.31.0 
psutil                         :  Yes      version: 5.8.0 
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          :  Syntax Error      This is our own. If it is not found we've got problems 
PyFoam.ThirdParty.pyratemp     :  Yes      version: 0.2.0 
PyFoam.ThirdParty.six          :  Yes      version: 1.10.0 
PyFoam.ThirdParty.winhacks     :  Yes 

Library locations
cProfile                       : /usr/lib64/python3.9/cProfile.py
cython                         : /home/AI-FE/.local/lib/python3.9/site-packages/cython.py
IPython                        : /usr/lib/python3.9/site-packages/IPython/__init__.py
matplotlib                     : /usr/local/lib64/python3.9/site-packages/matplotlib/__init__.py
mercurial                      : /usr/lib64/python3.9/site-packages/mercurial/__init__.py
numpy                          : /usr/lib64/python3.9/site-packages/numpy/__init__.py
ply                            : /usr/lib/python3.9/site-packages/ply/__init__.py
profile                        : /usr/lib64/python3.9/profile.py
psutil                         : /usr/lib64/python3.9/site-packages/psutil/__init__.py
PyFoam.ThirdParty.Gnuplot      : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/Gnuplot/__init__.py
PyFoam.ThirdParty.ply.yacc     : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/ply/yacc.py
PyFoam.ThirdParty.pyratemp     : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/pyratemp.py
PyFoam.ThirdParty.six          : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/six.py
PyFoam.ThirdParty.tqdm         : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/tqdm/__init__.py
PyFoam.ThirdParty.winhacks     : /home/AI-FE/.local/lib/python3.9/site-packages/PyFoam/ThirdParty/winhacks.py
requests                       : /usr/lib/python3.9/site-packages/requests/__init__.py
zeroconf                       : /home/AI-FE/.local/lib/python3.9/site-packages/zeroconf/__init__.py

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:             AI-FE
Temporary directory:  /tmp/PyFoam_AI-FE
Public key:           060c9035e876693015d29b4a61f5f2b5:10512702a18638c159a01d2a29b21393
[AI-FE@AI-Workstation ~]$
I can't tell what I am missing and if its safe to just compile openfoam now and point to this pyfoam install?
EternalSeekerX 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
[OpenFOAM.org] OF 2.4.0 Paraview not installing correctly cbcoutinho OpenFOAM Installation 3 June 12, 2015 18:03
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 19:56
uninstalling Ubuntu pack and installing source pack vetnav OpenFOAM Installation 2 July 13, 2010 20:11
Problems installing OpenFoam on a 64bit machine jango OpenFOAM Installation 1 June 4, 2007 15:53
Installing OpenFOAM in Ubuntu LINUX 510 Breeze derjames OpenFOAM Installation 0 April 7, 2006 09:22


All times are GMT -4. The time now is 13:51.