|
[Sponsors] |
January 22, 2014, 14:21 |
Pvpython ubuntu deb package
|
#1 |
New Member
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 12 |
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. |
|
January 22, 2014, 18:34 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
January 23, 2014, 10:53 |
|
#3 |
New Member
Anonymous
Join Date: Aug 2013
Location: Europe
Posts: 24
Rep Power: 12 |
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! 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() |
|
January 26, 2014, 07:55 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi maero21,
I didn't read carefully your post the other day and didn't answer to this question: Quote:
Quote:
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 Code:
uname -m Bruno
__________________
|
|||
|
|
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 |