Originally created by: markusrehm2
Hi Bernhard!
we already talked about that. I have not been able to get the Snapshot utility running.
Starting pyFoamPVSnapshot.py gives me Output 1 (see below). The same happens for several other utilities which need gzip.py. In http://docs.python.org/dev/whatsnew/2.7.html I found that there was a change in Python 2.7.
If I comment out FileBasis.py:9 I get Output 2 which is more related to the paraview stuff.
The LoadState-utility is running well but none of the paraview-examples is runnging.
The version information you find under Output 3.
Regards, Markus.
---- additional_information ----
Output 1 for pyFoamPVSnapshot.py
--------------------------------
Traceback (most recent call last):
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/bin/pyFoamPVSnapshot.py", line 3, in <module>
from PyFoam.Applications.PVSnapshot import PVSnapshot
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/Applications/PVSnapshot.py", line 8, in <module>
from PyFoamApplication import PyFoamApplication
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/Applications/PyFoamApplication.py", line 10, in <module>
from PyFoam.RunDictionary.SolutionDirectory import NoTouchSolutionDirectory
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionDirectory.py", line 9, in <module>
from TimeDirectory import TimeDirectory
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/RunDictionary/TimeDirectory.py", line 4, in <module>
from SolutionFile import SolutionFile
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/RunDictionary/SolutionFile.py", line 8, in <module>
from FileBasis import FileBasis
File "/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages/PyFoam/RunDictionary/FileBasis.py", line 9, in <module>
import gzip
File "/usr/lib64/python2.7/gzip.py", line 36, in <module>
class GzipFile(io.BufferedIOBase):
AttributeError: 'module' object has no attribute 'BufferedIOBase'
Output 2 for pyFoamPVSnapshot.py
--------------------------------
Warning in /home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/bin/pyFoamPVSnapshot.py : This utilitiy currently does not work with OF>=1.6 because the API in Paraview>=3.6 has changed. But we'll try
ERROR: In /home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/ParaView-3.12.0/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx, line 324
vtkPVSessionCore (0xa982f0): Attempt to assign existing ID 1.
while processing
Message 0 = Assign
Argument 0 = id_value {1}
Argument 1 = vtk_object_pointer {vtkPVSessionCoreInterpreterHelper (0x2202510)}
ERROR: In /home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/ParaView-3.12.0/ParaViewCore/ServerImplementation/vtkPVSessionCore.cxx, line 325
vtkPVSessionCore (0xa982f0): Aborting execution for debugging purposes.
Abgebrochen
Output 3: pyFoamVersion.py
--------------------------
PYTHONPATH: /home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/build/linux64Gcc/paraview-3.12.0/bin:/usr/lib/python2.7/site-packages/vtk:/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/platforms/linux64Gcc/paraview-3.12.0/lib/paraview-3.12/site-packages:/home/mrehm/OpenFOAM_ssd/ThirdParty-2.1.x/PyFoam/pyFoamInstallation/lib/python2.7/site-packages:/platforms/build-linux64Gcc44/paraview-3.8.0/Utilities/VTKPythonWrapping/paraview:/platforms/build-linux64Gcc44/paraview-3.8.0/bin:/platforms/build-linux64Gcc44/paraview-3.8.0/Utilities/VTKPythonWrapping/paraview:/platforms/build-linux64Gcc44/paraview-3.8.0/bin:
OpenFOAM (2, 1, 'x') of the installed versions ['2.1.x']
pyFoam-Version: 0.5.6
Configuration search path: [('file', '/etc/pyFoam/pyfoamrc'), ('directory', '/etc/pyFoam/pyfoamrc.d'), ('file', '/home/mrehm/.pyFoam/pyfoamrc'), ('directory', '/home/mrehm/.pyFoam/pyfoamrc.d')]
Configuration files (used): []
Installed libraries:
Gnuplot : No Not a problem. Version from ThirdParty is used
ply : No Not a problem. Version from ThirdParty is used
Numeric : No Not a problem if numpy is present
numpy : Yes
matplotlib : Yes
psyco : No Not a problem. Acceleration not possible
hotshot : Yes
profile : Yes
cProfile : Yes
PyQt4 : Yes
PyQt4.Qwt5 : No Only an alternate plotting back-end
vtk : Yes
Tkinter : Yes
mercurial : No Not a problem. Used for experimental case handling
View and moderate all "ticketspyfoam Discussion" comments posted by this user
Mark all as spam, and block user from posting to "PyFoam"
Originally by: markusrehm2
Revision number is r1900.
View and moderate all "ticketspyfoam Discussion" comments posted by this user
Mark all as spam, and block user from posting to "PyFoam"
Originally by: markusrehm2
Hi Bernhard,
I noticed that the gzip.py-issue was only due to a wrong path was added to PYTHONPATH. So the relevant error message is output 2.
Markus
OK. I'll have a look. First make sure that the utility works on all my available systems (with PV 3.12 ... BTW: this happened with older versions too I suppose). If it does I'll try to pinpoint the system
@pythonpath: I found that on some systems the precompiled PV brings its own python-interpreter with its own libraries and this might mess up the standard-python if the PYTHONPATH is set unwisely