CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [PyFoam] install: "PYTHONPATH is not set"? (https://www.cfd-online.com/Forums/openfoam-community-contributions/142684-install-pythonpath-not-set.html)

sajad6 October 7, 2014 06:33

install: "PYTHONPATH is not set"?
 
hi
when I write pyFoamVersion.py is terminal :
Code:

sajad@sajad-pc:~/PyFoam$ pyFoamVersion.py
Machine info: Linux | sajad-pc | 2.6.32-66-generic-pae | #132-Ubuntu SMP Mon Sep 1 18:51:21 UTC 2014 | i686 |

Python version: 2.6.5 (r265:79063, Feb 27 2014, 19:44:14)
[GCC 4.4.3]

Python executable: /usr/bin/python

PYTHONPATH is not set

Location of this utility: /usr/local/bin/pyFoamVersion.py

 PyFoam WARNING on line 175 of file /usr/local/lib/python2.6/dist-packages/PyFoam/FoamInformation.py : Basedir /home/sajad/foam for fork extend does not exist or is not a directory
Version (2, 0, 1) Fork openfoam of the installed 2 versions:
openfoam-201 : /opt/openfoam201
openfoam-210 : /opt/openfoam210

pyFoam-Version: 0.6.3

Path where PyFoam was found (PyFoam.__path__) is ['/usr/local/lib/python2.6/dist-packages/PyFoam']

Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/sajad/.pyFoam/pyfoamrc'), ('directory', '/home/sajad/.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
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
nose                :  No      Only needed for running the unit-tests (developers only)
Numeric              :  No      Not supported anymore. No need to install it
numpy                :  Yes      version: 1.3.0
openpyxl            :  No      Not a problem. Only used for exporting pandas-data to Excel-files (advanced)
pandas              :  No      Not a problem. Only used for handling of advanced data-handling
ply                  :  No      Not a problem. Version from ThirdParty is used
profile              :  No      Not a problem. Can't profile using this library
psyco                :  Yes      version: 17170672
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              :  Yes      version: 10.0.0
vtk                  :  No      Not a problem. Only used for some utilities
xlwt                :  No      Not a problem. Only used for exporting pandas-data to Excel-files

Library locations
cProfile            : /usr/lib/python2.6/cProfile.pyc
hotshot              : /usr/lib/python2.6/hotshot/__init__.pyc
numpy                : /usr/lib/python2.6/dist-packages/numpy/__init__.pyc
psyco                : /usr/lib/python2.6/dist-packages/psyco/__init__.pyc
twisted              : /usr/lib/python2.6/dist-packages/twisted/__init__.pyc
sajad@sajad-pc:~/PyFoam$ ^C

in line 7 that I highlighted it red it is write 'PYTHONPATH is not set'
my question is this an error?is this a problem?if yes how can I set PYTHONPATH?

wyldckat October 11, 2014 16:36

Greetings sajad6,

From what I can see, that's only a warning, not an error message. Because even without that environment variable being defined, PyFoam is installed in the main Python library folder, therefore there was no problem.

Best regards,
Bruno


All times are GMT -4. The time now is 20:03.