|
[Sponsors] |
[OpenFOAM.com] Trouble building Paraview from ThirdPartyv1812 folder with python and mpi support |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 6, 2019, 12:25 |
Trouble building Paraview from ThirdPartyv1812 folder with python and mpi support
|
#1 |
Member
Praphul T
Join Date: Dec 2013
Location: Bangalore, India
Posts: 32
Rep Power: 12 |
Hi,
I encounter trouble in building ParaviewV5.6.0 with python and mpi support which comes along the ThirdPartyV1812 suite of OpenFoam. The following is the output log of the build process at 89% after which the build crashes. Code:
[ 89%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVClientServerCoreRenderingPythonD.dir/vtkPVClientServerCoreRenderingPythonInitImpl.cxx.o [ 89%] Linking CXX shared library ../../../lib/libvtkPVClientServerCoreRenderingPython27D-pv5.6.so [ 89%] Built target vtkPVClientServerCoreRenderingPythonD Build worked fine when no mpi and python support was provided. The main reason as to why I require a python support is to use the Python shell. Therefore, I used the following command to compile Paraview with mpi and python support. Code:
./makeParaView -qt-5.12.0 -mpi -python-lib /usr/lib/python2.7 -python-bin /usr/bin/python2.7 |
|
April 6, 2019, 19:24 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings praphul,
Yes, I do have multiple ideas as to why, but I don't have enough evidence to know the exact solution. The first idea that came to mind was that given the lack of details, the reason why it failed was because not enough was known to ensure that it would work. Sorry, it's a dumb answer, but given the lack of information, my brain didn't cooperate... So, what's missing:
Code:
-python-lib /usr/lib/python2.7 Code:
-python-lib $PYTHONHOME/lib/libpython2.7.so Code:
-python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 Other ideas:
Best regards, Bruno
__________________
|
|
April 7, 2019, 09:31 |
|
#3 |
Member
Praphul T
Join Date: Dec 2013
Location: Bangalore, India
Posts: 32
Rep Power: 12 |
Hi Bruno,
Thanks for the reply. I apologize for not giving extra details on this issue. I had dumped out the log file earlier but I didn't redirect stderr which resulted in a file without the error message. Therefore, the end of output log file only had the information which I had posted as a code snippet. The second suspicion of yours proved to be right. I had defined the python libraries incorrectly. Paraview has now been build and installed properly when I changed the makeParaView command to the following. Code:
./makeParaView -qt-5.12.0 -mpi -python-include /usr/include/python2.7 -python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so Thanks a lot for the the suggestion. I have a couple more questions.
Regards, Praphul |
|
April 7, 2019, 17:31 |
|
#4 | ||
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answers:
Quote:
Quote:
Removing it should not affect ParaView 5.6.0, or at least it should not. It is possible that some package might be uninstalled when ParaView 5.4.1 is uninstalled (apt will tell you about the ones that were picked to be uninstalled), but you can then re-install those package(s) via apt. |
|||
April 8, 2019, 02:26 |
|
#5 |
Member
Praphul T
Join Date: Dec 2013
Location: Bangalore, India
Posts: 32
Rep Power: 12 |
Thanks Bruno for the help. Everything is perfect now.
|
|
Tags |
openfoam1812, paraview5.6.0, python support |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM.org] ParaView Installation: Python problem | KateEisenhower | OpenFOAM Installation | 5 | August 24, 2017 06:27 |
[General] Building Paraview 4.1.0 with MPI and Python support | reynoldsStress | ParaView | 10 | July 27, 2017 09:38 |
[OpenFOAM.org] OF 2.3.0 compiling Paraview with "-python -mpi" | bender.rodriguez | OpenFOAM Installation | 5 | December 14, 2014 13:27 |
How to get Python Shell into ParaView 3.8.1? | blaise | OpenFOAM Installation | 3 | July 24, 2012 05:58 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |