Menu

#118 pyFoamPVSnapshot.py (and other) utilities crash under OpenSuse 12.1 (python 2.7)

confirmed
None
normal
minor
always
none
A Utility
general
2012-01-14
2012-01-11
Anonymous
No

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

Discussion

  • Anonymous

    Anonymous - 2012-01-11

    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

     
  • Bernhard Gschaider

    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

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.