|
[Sponsors] |
September 21, 2017, 10:19 |
Problem with pyFoamPVSnapshot
|
#1 |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
Hello everyone,
I started working with OpenFOAM not so long ago, but I already know a little about PyFoam. Generally, I used 'pyFoamRunParameterVariation' utility and all was fine. But then I tried to use 'pyFoamPVSnapshot' utility and faced a problem, that I can't solve myself. Here is some configuration info: OS: Ubuntu 16.04.3 LTS OpenFOAM-2.4.0 ParaView 4.1.0 PyFoam version: 0.6.7 (installed with pip) I used the utility in the following way: Code:
pyFoamPVSnapshot.py --latest-time --state-file=default.pvsm damBreak And here is what I got: Code:
Executing PVSnapshot with pvpython trough a proxy-script Warning in /tmp/pyFoamPVSnapshot_8h6vxh3u.py : Setting decomposed type to auto : Decomposed/Reconstruced correctly set. Nothing changed PyFoam WARNING on line 110 of file /usr/local/lib/python3.5/dist-packages/PyFoam/Paraview/ServermanagerWrapper.py : Can't find expected plugin 'libPOpenFOAMReaderPlugin' assuming that correct reader is compiled in. Wish me luck Traceback (most recent call last): File "/tmp/pyFoamPVSnapshot_8h6vxh3u.py", line 4, in <module> PVSnapshot() File "/usr/local/lib/python3.5/dist-packages/PyFoam/Applications/PVSnapshot.py", line 51, in __init__ **kwargs) File "/usr/local/lib/python3.5/dist-packages/PyFoam/Applications/PyFoamApplication.py", line 436, in __init__ result=self.run() File "/usr/local/lib/python3.5/dist-packages/PyFoam/Applications/PVSnapshot.py", line 493, in run views=pvs.GetViews() AttributeError: 'module' object has no attribute 'GetViews' Inconsistency detected by ld.so: dl-close.c: 811: _dl_close: Assertion `map->l_init_called' failed! Error: Return code 127 executing /tmp/pyFoamPVSnapshot_8h6vxh3u.py The line starting with "Inconsistency detected by ld.so.." also doesn't important. I ran 'pyFoamPVSnapshot' utility on another virtual machine with Ubuntu 14.04 (OF2.4.0, PV4.1.0, PyFoam 0.6.8.1) and got almost the same error except this line. But the error "AttributeError: 'module' object has no attribute 'GetViews'" still exist. Any help would be appreciated. Regards, Pavel |
|
September 22, 2017, 08:46 |
|
#2 | |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
<slowpoke mode deactivated>
Okay.. 'PVSnapshot.py' contains these lines: Quote:
So the problem is ParaView version? And there is nothing I can do about it? |
||
September 22, 2017, 10:18 |
|
#3 |
New Member
Join Date: Apr 2016
Posts: 21
Rep Power: 10 |
Have you set a Text source with the content %(casename)s ?
|
|
September 22, 2017, 11:13 |
|
#4 |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
Don't quite understand what is about. I did not perform any additional actions after installation of PyFoam. Just played a bit with PYTHONPATH and set it following way:
Code:
export PYTHONPATH=$ParaView_DIR/lib/paraview-4.1/ |
|
September 23, 2017, 12:49 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
But since it was written that line works for me (currently use 5.4) so upgrading paraview to a more recent version might fix your problem (and you won't have to rely on me having time to look at that)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
September 25, 2017, 02:55 |
|
#6 | |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
Quote:
Actually I was thinking about it too. I'll try another version of ParaView. |
||
September 26, 2017, 09:03 |
|
#7 |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
So.. I tried to run 'PVSnapshot.py' utility with another version of ParaView (4.3.1) and here is what I got:
Code:
Executing PVSnapshot with pvpython trough a proxy-script /home/prodin/Distrib/ParaView-4.3.1/lib/paraview-4.3/pvpython: error while loading shared libraries: libvtkPVServerManagerApplication-pv4.3.so.1: cannot open shared object file: No such file or directory Error: Return code 127 executing /tmp/pyFoamPVSnapshot_pvtj9dn9.py Is this some kind of permissions issue? Last edited by Pavel Rodin; September 26, 2017 at 11:13. Reason: Found the answer to the question, but there is another question. |
|
September 27, 2017, 07:30 |
|
#8 |
New Member
Pavel Rodin
Join Date: Jun 2017
Posts: 8
Rep Power: 9 |
I'm getting the same error with ParaView's version 5.2.0.
Seems I can't use ParaView as a portable program in that way (i.e. just changing the PATH variable). But if I install Paraview using apt-get (currently of version 5.0.1), then I can make a screenshot through PVSnapshot utility. Now I'm curious how to run the utility on a few case variations (e.g. after 'pyFoamRunParameterVariation.py' script execution). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
UDF compiling problem | Wouter | Fluent UDF and Scheme Programming | 6 | June 6, 2012 05:43 |
Gambit - meshing over airfoil wrapping (?) problem | JFDC | FLUENT | 1 | July 11, 2011 06:59 |
natural convection problem for a CHT problem | Se-Hee | CFX | 2 | June 10, 2007 07:29 |
Adiabatic and Rotating wall (Convection problem) | ParodDav | CFX | 5 | April 29, 2007 20:13 |
Is this problem well posed? | Thomas P. Abraham | Main CFD Forum | 5 | September 8, 1999 15:52 |