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

[OpenFOAM.org] paraView reader module build problem

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 2, 2012, 21:29
Default paraView reader module build problem
  #1
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Hello all.

I just installed OF-2.1.0 on Ubuntu 11.10 following these instructions: http://www.openfoam.org/download/ubuntu.php

Everything runs smoothly except paraView. When I try to run it the following error arises:
Code:
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
I tried to follow wyldckat instructions from earlier thread:
http://www.cfd-online.com/Forums/ope...se-11-4-a.html

But it did not work.

I did not have any prior installation of OpenFOAM.

Any guidelines or tips?
fusij is offline   Reply With Quote

Old   February 3, 2012, 04:47
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 fusij,

With Ubuntu, it's a whole other ball game. Did you install ParaView as indicated:
Quote:
Code:
sudo apt-get install paraviewopenfoam3120
!?

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 3, 2012, 06:02
Default
  #3
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Yes, I did that. I went over all the steps twice to be sure that I had everything in order.

Maybe I should clean everything and try it again? What is the best way for me to do that? Is there generally, a positive experience from installing the 2.1.0 deb pack for Ubuntu while following the earlier mentioned steps?

wyldckat: Any ideas? Maybe setup paraview independently?
fusij is offline   Reply With Quote

Old   February 3, 2012, 06:11
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
Mmm... strange. OK, can you see the ParaView folder that is located at "/opt" ? Probably has the same name as that package.

And start a new terminal, just to be certain.
__________________
wyldckat is offline   Reply With Quote

Old   February 3, 2012, 17:40
Default
  #5
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Yes I see that folder /opt/paraviewopenfoam3120/. It has three folders (bin, lib, share).
fusij is offline   Reply With Quote

Old   February 3, 2012, 18:34
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
OK, what architecture of Ubuntu do you have installed? i686 or x86_64? You can check by running:
Code:
uname -m
__________________
wyldckat is offline   Reply With Quote

Old   February 3, 2012, 19:18
Default
  #7
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Code:
vigfus@Pundi:/opt$ uname -m
x86_64
Maybe I should compile the source pack?

$WM_THIRD_PARTY_DIR doesn't exist. I thought it was neccessary?

Last edited by fusij; February 3, 2012 at 19:38.
fusij is offline   Reply With Quote

Old   February 4, 2012, 11:10
Default
  #8
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 fusij,

I wanted to know which exact version of Ubuntu you were using so I could try to replicate the same installation steps and check if things are working as expected. It all went well.
Therefore, a few more possibilities arise:
  1. It's possible that you have more than one OpenFOAM version installed and did not take into account the need for at least commenting the older lines in "~/.bashrc". If this is the case, then comment or remove the old lines that refer to the older versions of OpenFOAM and start a new terminal. Then try again running paraFoam in the case folder you were running before.
    If this works, and if you want more than one version of OpenFOAM, see my blog post: Advanced tips for working with the OpenFOAM shell environment
  2. There could be a glitch related to a file system problem that occurred during installation or afterwards, such as accidental deletion of files. To confirm this, check the following steps:
    1. Run the following command in the terminal:
      Code:
      echo $PV_PLUGIN_PATH
      It should output the following path:
      Code:
      /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
    2. Also check the contents of the path shown above, even if the command showed you nothing:
      Code:
      ls -l /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
      It should show you two files starting with "libPV3".
    3. If those two files do exist, then add the following line to the file "~/.bashrc":
      Code:
      export PV_PLUGIN_PATH=/opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
      Start a new terminal and now it should work!
Best regards,
Bruno
alsaeng likes this.
__________________
wyldckat is offline   Reply With Quote

Old   February 4, 2012, 21:31
Default
  #9
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
It works now but with two new issues. First terminal shows this when I run paraFoam
Code:
$ paraFoam
created temporary 'cavity.OpenFOAM'
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Read float past end of buffer
Secondly a window pops up and tells me that a reader can not be found for openFOAM/vigfus-2.1.0/run/tutorials/incompressible/icoFoam/cavity/cavity.OpenFOAM and tells me to choose one. I get a list of different type of files and I choose OpenFOAM and then ParaView starts smoothly and works fine.

Do you have ideas for these ones wyldckat? Thanks a lot for your efforts, they are well appreciated!
fusij is offline   Reply With Quote

Old   February 5, 2012, 06:08
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 fusij,

You could have detailed which steps you had to take! Now I don't know enough to deduce what exactly is going on

Anyway, the first error message is related to a "locale" problem. Basically, when the system is in English, the decimal separator is the dot symbol '.', but many other languages use the comma ','. That output occurs because the second mode was detected and hindered execution. To fix this, you can try running the following command before paraFoam:
Code:
export LC_ALL=C
paraFoam
As for the second error, you can try running with the option '-builtin':
Code:
paraFoam -builtin
This will select the internal reader, instead of using OpenFOAM's official reader.

By the way, which ParaView is the command line picking up?
Code:
which paraview
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 5, 2012, 22:23
Default
  #11
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Sorry for not clearing out which steps helped me out in your earlier post.

Step 3 made everything work:
Code:
export PV_PLUGIN_PATH=/opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
The first two steps showed me what you expected them to show, so they worked out fine.

Now for my two new issues:
Code:
export LC_ALL=C
does not help me with the "Read float past end of buffer" warning.

But by using
Code:
paraFoam -builtin
That warning does not arise and the reader problem disappears also. So that option seems to solve my problems but I am curious why I have to use it, why the default is not working?

And the paraView the command line picks up is:
Code:
$ which paraview 
/opt/paraviewopenfoam3120/bin/paraview

$ which paraFoam 
/opt/openfoam210/bin/paraFoam
laurentb and hoai nguyen like this.
fusij is offline   Reply With Quote

Old   February 6, 2012, 18:48
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 fusij,

It's strange, very strange the errors you are getting And without knowing more about the specific Ubuntu installation you've made, I'm unable to figure out what exactly is going wrong there

You might want to review the post you mentioned at the beginning - http://www.cfd-online.com/Forums/ope...tml#post342512




Other than this, all I can figure out is that maybe, just maybe, you are having one of those strange bugs that Ubuntu 11.10 has been having on several issues. Two that I know of are:
  • Several USB-wireless cards aren't properly controlled with kernel 3.0.x on Ubuntu 11.10.
  • Laptops tend to run out of battery in less than 45 min, due to another option preset in the kernel.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 6, 2012, 19:10
Default
  #13
Member
 
Join Date: Nov 2009
Posts: 56
Rep Power: 17
fusij is on a distinguished road
Thanks a lot for the help and time spent on these issues. What you do for people with installation complications is very respectable.

ParaView works now and that matter most.

Best regards,
Vigfús Arnar
fusij is offline   Reply With Quote

Old   March 5, 2012, 23:52
Default
  #14
New Member
 
Will Stewart
Join Date: Mar 2012
Posts: 1
Rep Power: 0
skyemoor is on a distinguished road
I've had the same problem, even after running a separate install noted above.

Quote:
Originally Posted by wyldckat View Post
Hi fusij,
    1. Run the following command in the terminal:
      Code:
      echo $PV_PLUGIN_PATH
      It should output the following path:
      Code:
      /opt/openfoam210/platforms/linux64GccDPOpt/lib/paraview-3.12
I did, but nothing is returned.

I do have Paraview 3.10 installed, and there is nothing in the .bashrc from before related to openfoam or paraview.
skyemoor is offline   Reply With Quote

Old   March 6, 2012, 15:01
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 Will and welcome to the forum!

I'm having a hard time trying to figure out the problem you are describing
Please provide more information, so I can try and reproduce the same steps you've taken.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2012, 15:30
Default
  #16
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
sukye is on a distinguished road
I met the same problem as fusij with installed centFOAM.

There are bin and lib folders in $HOME/centFOAM/paraview-3.10.1 directory, but no paraview in /opt.

Would you, Bruno or Linnemann, help me?
sukye is offline   Reply With Quote

Old   May 2, 2012, 17:48
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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 sukye,

fusij had two problems... so which one are you having?
And why didn't you ask on the other thread you had, since your question is still related to CentFOAM?

Best regards,
Bruno
__________________

Last edited by wyldckat; May 15, 2012 at 17:09. Reason: added link for future reference
wyldckat is offline   Reply With Quote

Old   May 2, 2012, 17:52
Default
  #18
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
sukye is on a distinguished road
The one fusij posted on February 2, ie the original poster of this thread.

Since the problem is identical to fusij's, I think we may not blame centFOAM

Quote:
Originally Posted by wyldckat View Post
Hi sukye,

fusij had two problems... so which one are you having?
And why didn't you ask on the other thread you had, since your question is still related to CentFOAM?

Best regards,
Bruno
sukye is offline   Reply With Quote

Old   May 2, 2012, 18:02
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
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
OK, not much information to go on with, specially since I've never used CentFOAM... but my guess is that you ran:
Code:
python centFOAM.py --paraview
only after you typed OF21.

Therefore, try running OF21 again to update the working environment.
__________________

Last edited by wyldckat; May 15, 2012 at 17:07.
wyldckat is offline   Reply With Quote

Old   May 4, 2012, 12:11
Default
  #20
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 14
sukye is on a distinguished road
Hi Bruno,

I have put OF21 in the .bashrc so it will be loaded upon login.

paraview works well, but paraFoam does not.

Then I added *requirePV=0* in bin/paraFoam as suggested in
http://www.cfd-online.com/Forums/ope...tml#post342512

Code:
> paraFoam -builtin
created temporary 'cavity.foam'
$WM_PROJECT_DIR/bin/paraFoam: line 261: paraview: command not found

Last edited by sukye; May 4, 2012 at 12:30.
sukye 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
[OpenFOAM.org] paraView running Problem [not found] X.Thomas OpenFOAM Installation 6 January 14, 2018 13:15
Parafoam - FATAL ERROR: ParaView reader module libraries do not exist Amit_Pawarpawar OpenFOAM Installation 1 August 25, 2014 11:31
FATAL ERROR: ParaView reader module libraries do not exist adarsh tiwari OpenFOAM Installation 6 April 5, 2014 12:47
[OpenFOAM] Annoying issue of automatic "Rescale to Data Range " with paraFoam/paraview 3.12 keepfit ParaView 60 September 18, 2013 04:23
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 16:28.