CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Pvpython ubuntu deb package

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 22, 2014, 14:21
Default Pvpython ubuntu deb package
  #1
New Member
 
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 12
maero21 is on a distinguished road
Dear Openfoam users,

I have installed the ubuntu dev package using the instructions from the OpenFOAM website. However, now I want to use pvpython and every time I get an error: ImportError: No module named vtkCommonPython. I read somewhere that this is due to the fact that I installed the deb package. However, since I already installed OpenFoam-2.2.2 I cannot install it again from source, right?

Any ideas on how I could get pvpython to work?

Thanks!

By the way, I am running Ubuntu 12.04.
maero21 is offline   Reply With Quote

Old   January 22, 2014, 18:34
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings maero21,

Check this bug report: http://www.openfoam.org/mantisbt/view.php?id=969 - the first comment provides information on where to find a fix.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 23, 2014, 10:53
Default
  #3
New Member
 
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 12
maero21 is on a distinguished road
Dear Bruno,

Thank you very much I can know run pvpython from the terminal and do some examples. However when I use the trace option in Paraview and then try to run that script through pvpython, I keep getting this error:
Code:
 Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
Did I do something wrong or is the installation not correct?

By the way, this is the script I am trying to run:

Code:
try: paraview.simple
except: from paraview.simple import *
paraview.simple._DisableFirstRenderCameraReset()

allPatches_100_vtk = LegacyVTKReader( FileNames=['/home/CFD/Documents/motorBike/VTK/allPatches/allPatches_100.vtk'] )

track0_p_k_vtk = LegacyVTKReader( FileNames=['/home/CFD/Documents/motorBike/postProcessing/sets/wallBoundedStreamLines/100/track0_p_k.vtk'] )

RenderView1 = GetRenderView()
SetActiveSource(allPatches_100_vtk)
DataRepresentation2 = Show()
DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]

RenderView1.CenterOfRotation = [0.7296143770217896, -0.008860617876052856, 0.6756079792976379]

SetActiveSource(track0_p_k_vtk)
DataRepresentation3 = Show()
DataRepresentation3.EdgeColor = [0.0, 0.0, 0.5000076295109483]

WriteImage('/home/CFD/Documents/motorBike/test1.png')


RenderView1.CameraPosition = [0.7296143770217896, -0.008860617876052856, 5.586333373144778]
RenderView1.CameraFocalPoint = [0.7296143770217896, -0.008860617876052856, 0.6756079792976379]
RenderView1.CameraClippingRange = [3.5171582611063688, 6.676784262895431]
RenderView1.CameraParallelScale = 1.270989257196217

Render()
Kind regards
maero21 is offline   Reply With Quote

Old   January 26, 2014, 07:55
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi maero21,

I didn't read carefully your post the other day and didn't answer to this question:
Quote:
Originally Posted by maero21 View Post
However, since I already installed OpenFoam-2.2.2 I cannot install it again from source, right?
You can have both installations if you want to. You can find instructions on this topic here: http://openfoamwiki.net/index.php/In...nFOAM_versions

Quote:
Originally Posted by maero21 View Post
However when I use the trace option in Paraview and then try to run that script through pvpython, I keep getting this error:
Code:
 Inconsistency detected by ld.so: dl-close.c: 759: _dl_close: Assertion `map->l_init_called' failed!
Did I do something wrong or is the installation not correct?
I vaguely remember getting that message when ParaView was closing... which was already too late to be of any matter, since I had already used ParaView with success.

According to this post: http://www.cfd-online.com/Forums/ope...tml#post364741 post #3, removing the package "qt-at-spi" might fix the problem:
Code:
sudo apt-get remove qt-at-spi
By the way, do you have Ubuntu 12.04 x86_64 or i686 installed? You can check by running:
Code:
uname -m
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[foam-extend.org] paraview not runing? (foam extended 3.2 and ubuntu 15.04) Milan2013 OpenFOAM Installation 23 April 20, 2017 05:49
Prolem installing OpenFOAM Ver 2.3.0 source in Ubuntu 13.1.0 on VMware zandi OpenFOAM Installation 5 March 31, 2014 03:57
OF 1.6 ext on Ubuntu 12.10 (64 bit) compilation errors dreamilam OpenFOAM Installation 7 April 21, 2013 05:43
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox Stubby OpenFOAM Installation 8 March 5, 2012 15:12
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


All times are GMT -4. The time now is 05:21.