CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] Trouble building Paraview from ThirdPartyv1812 folder with python and mpi support

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By wyldckat
  • 1 Post By praphul
  • 1 Post By wyldckat
  • 1 Post By praphul

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2019, 12:25
Default 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
praphul is on a distinguished road
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
Any idea so as to why the build fails ?
praphul is offline   Reply With Quote

Old   April 6, 2019, 19:24
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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 praphul,

Quote:
Originally Posted by praphul View Post
Any idea so as to why the build fails ?
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:
  1. Which Linux Distribution, version and architecture are you using?
  2. Which installation instructions are you following?
  3. Which system packages did you install?
  4. The output you provided... is not an error message... so it's nearly useless... the missing crash/error details would tell us what went wrong... The best we get out of it is that it might have stopped compiling due to something missing from Python... so this is where I usually ask for a complete log file. So please run the command you used, but like this:
    Code:
    ./makeParaView -qt-5.12.0 -mpi -python-lib /usr/lib/python2.7 -python-bin /usr/bin/python2.7 > log.makePV 2>&1
    • Then package the resulting log file and attach it to your next post... you can package it by running this command:
      Code:
      gzip < log.makePV > log.makePV.gz
      Then attach the file "log.makePV.gz" to your next post.
My second idea/suspicion is this:
Code:
-python-lib /usr/lib/python2.7
This seems like an incomplete definition and it's not a proper one at that. Usually it's either something like this:
Code:
-python-lib $PYTHONHOME/lib/libpython2.7.so
or something like this:
Code:
-python-lib /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0

Other ideas:
  1. Ran out of disk space.
  2. CPU bug which lead to a crash by the compiler.
  3. CPU overheating...
  4. RAM problems...
  5. MPI incorrectly configured...
  6. Ambiguity of Python versions... although this one doesn't make much sense, since you've pointed out the folder names for a specific version... but it could happen, if it picked up the wrong "include" folder.
  7. Python 2.7 not being fully installed... I have seen this happen in the past, when a custom build was attempted by someone not experienced enough...
  8. Uh... accidentally pressing Ctrl+C?
  9. Someone else was controlling your computer...
  10. MS Windows intervened... somehow... I don't know, but if you were working in WSL, I would suspect that Windows updating automatically could result in such a situation... where it rebooted while you were away and all that was left was the incomplete log file...
  11. Hard-drive failure in a specific sector when it was trying to write the built library to disk...
  12. You made a bet with someone and that was why you wrote the post the way you did... I tend to be paranoid about that, when I read posts like this...
  13. Power supply problems...
  14. Graphics card problems... if somehow the driver crashed and restarted itself... but just the driver...
I could conjure up more ideas, but... I feel bad for already poking at you for your honest question "any idea?"... but the lack of information just tilted me the wrong way...

Best regards,
Bruno
praphul likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 7, 2019, 09:31
Default
  #3
Member
 
Praphul T
Join Date: Dec 2013
Location: Bangalore, India
Posts: 32
Rep Power: 12
praphul is on a distinguished road
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
I had to keep aside all other ideas you had mentioned while debugging the solution because I tried building the third party ParaView in a fresh install of Manjaro 18.04 (in another system) and found the python library to be defined in a similar manner as you had suggested in the log file.



Thanks a lot for the the suggestion.

I have a couple more questions.
  1. After the installation is complete, is it necessary to setup LD_LIBRARY_PATH manually ? ParaviewV5.6.0 seems to be working without any problems as of now.
  2. Can I remove the Paraview version 5.4.1 installed from the apt repository ? Will the removal cause any further troubles on the newly installed ParaviewV5.6.0 in ThirdParty? My system is KubuntuV18.10.
TYI : I have just started my OpenFoam journey.



Regards,
Praphul
wyldckat likes this.
praphul is offline   Reply With Quote

Old   April 7, 2019, 17:31
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
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
Quick answers:
Quote:
Originally Posted by praphul View Post
1. After the installation is complete, is it necessary to setup LD_LIBRARY_PATH manually ? ParaviewV5.6.0 seems to be working without any problems as of now.
Everything should be automatically done by OpenFOAM's bashrc scripts. When you open a new terminal and activate the OpenFOAM shell environment (namely to use the source command), everything should work as intended.


Quote:
Originally Posted by praphul View Post
2. Can I remove the Paraview version 5.4.1 installed from the apt repository ? Will the removal cause any further troubles on the newly installed ParaviewV5.6.0 in ThirdParty? My system is KubuntuV18.10.
It's preferable to remove ParaView 5.4.1 that you installed via apt, just to avoid accidental library collisions between the two versions. There shouldn't be any problems, but just in case, might as well avoid conflicts between them if you don't need 5.4.1.

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.
praphul likes this.
wyldckat is offline   Reply With Quote

Old   April 8, 2019, 02:26
Default
  #5
Member
 
Praphul T
Join Date: Dec 2013
Location: Bangalore, India
Posts: 32
Rep Power: 12
praphul is on a distinguished road
Thanks Bruno for the help. Everything is perfect now.
wyldckat likes this.
praphul is offline   Reply With Quote

Reply

Tags
openfoam1812, paraview5.6.0, python support


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
[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


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