Originally Posted by Traction
(Post 622087)
Hey foamers,
I just finished the installation of PyFoam and unfortunately have equivalent problems when running the PyFoamRunner.
I am doing a single core simulation of OF´s damBreak tutorial. OF writes the first two time directories and stucks shortly after this.
My PyFoamRunner.py output following:
Code:
Starting time loop
Courant Number mean: 0 max: 0
Interface Courant Number mean: 0 max: 0
deltaT = 0.00119048
Time = 0.00119048
Traceback (most recent call last):
File "/usr/bin/pyFoamRunner.py", line 5, in <module>
pkg_resources.run_script('PyFoam==0.6.6', 'pyFoamRunner.py')
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 492, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1350, in run_script
execfile(script_filename, namespace, namespace)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/EGG-INFO/scripts/pyFoamRunner.py", line 5, in <module>
Runner()
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Applications/Runner.py", line 66, in __init__
**kwargs)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Applications/PyFoamApplication.py", line 426, in __init__
result=self.run()
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Applications/Runner.py", line 154, in run
run.start()
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Execution/BasicRunner.py", line 363, in start
self.lineHandle(line)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Execution/AnalyzedRunner.py", line 49, in lineHandle
StepAnalyzedCommon.lineHandle(self,line)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Execution/AnalyzedCommon.py", line 156, in lineHandle
self.analyzer.analyzeLine(line)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/LogAnalysis/FoamLogAnalyzer.py", line 139, in analyzeLine
self.analyzers[nm].doAnalysis(line)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/LogAnalysis/TimeLineAnalyzer.py", line 43, in doAnalysis
self.notifyNewTime(m)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/LogAnalysis/TimeLineAnalyzer.py", line 32, in notifyNewTime
self.notify(float(m.group(2)))
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/LogAnalysis/LogLineAnalyzer.py", line 65, in notify
f(*data)
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/LogAnalysis/FoamLogAnalyzer.py", line 85, in setTime
listener.timeChanged()
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Execution/StepAnalyzedCommon.py", line 45, in timeChanged
self.picklePlots()
File "/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/Execution/AnalyzedCommon.py", line 468, in picklePlots
move(pickleFile+".tmp",pickleFile)
File "/usr/lib64/python2.7/shutil.py", line 302, in move
os.unlink(src)
OSError: [Errno 26] Text file busy: './PyFoamRunner.interFoam.analyzed/pickledPlots.tmp'
For the sake of completeness the output of pyFoamVersion.py
Code:
Machine info: Linux | localhost.localdomain | 3.19.8-100.fc20.x86_64 | #1 SMP Tue May 12 17:08:50 UTC 2015 | x86_64 | x86_64
Python version: 2.7.5 (default, Apr 10 2015, 08:09:05)
[GCC 4.8.3 20140911 (Red Hat 4.8.3-7)]
Python executable: /bin/python
Python 2.7 is one development platform for PyFoam (along with Python 3)
PYTHONPATH: /usr/lib/python2.7/site-packages:/usr/lib64/python2.7/site-packages/openmpi:/usr/lib/python2.7/site-packages:
Location of this utility: /usr/bin/pyFoamVersion.py
PyFoam WARNING on line 201 of file /usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/FoamInformation.py : Basedir /home/foamy/foam for fork extend does not exist or is not a directory
PyFoam WARNING on line 201 of file /usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam/FoamInformation.py : Basedir /home/foamy/OpenFOAM for fork openfoamplus does not exist or is not a directory
Version 3.0.x (reported as number 3.0 )Fork openfoam of the installed 1 versions:
openfoam-3.0.x : /opt/OpenFOAM/OpenFOAM-3.0.x
pyFoam-Version: 0.6.6
Path where PyFoam was found (PyFoam.__path__) is ['/usr/lib/python2.7/site-packages/PyFoam-0.6.6-py2.7.egg/PyFoam']
Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/foamy/.pyFoam/pyfoamrc'), ('directory', '/home/foamy/.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.11.2
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 : Yes version: 4.8.5
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 : No Not a problem. Currently only needed for the blink(1)-support
Library locations
cProfile : /usr/lib64/python2.7/cProfile.pyc
hotshot : /usr/lib64/python2.7/hotshot/__init__.pyc
numpy : /usr/lib64/python2.7/site-packages/numpy/__init__.pyc
profile : /usr/lib64/python2.7/profile.pyc
PyQt4 : /usr/lib64/python2.7/site-packages/PyQt4/__init__.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
Has anyone experienced anything similar or an idea on how to get the PyFoamRunner running successful ?
|