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

paraView reader module build problem

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree4Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   February 2, 2012, 21:29
Default paraView reader module build problem
  #1
Member
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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:
ParaView installation problem on Suse 11.4

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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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 likes this.
fusij is offline   Reply With Quote

Old   February 6, 2012, 18:48
Default
  #12
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 - ParaView installation problem on Suse 11.4




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
 
Vigfús Arnar Jósefsson
Join Date: Nov 2009
Location: Reykjavik
Posts: 30
Rep Power: 7
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
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 14:30
Default
  #16
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
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, 16:48
Default
  #17
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 16:09. Reason: added link for future reference
wyldckat is offline   Reply With Quote

Old   May 2, 2012, 16:52
Default
  #18
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
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, 17:02
Default
  #19
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,503
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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 16:07.
wyldckat is offline   Reply With Quote

Old   May 4, 2012, 11:11
Default
  #20
Member
 
Join Date: Apr 2012
Posts: 32
Rep Power: 5
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
ParaView installation problem on Suse 11.4

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 11:30.
sukye is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ParaView Problem with dsmcFoam xbook OpenFOAM Paraview & paraFoam 4 February 14, 2014 02:09
ParaView Problem anishtain4 OpenFOAM 1 August 16, 2011 07:04
Can someone PLEASE document the development version installation bernd OpenFOAM Installation 76 November 14, 2008 22:51
OpenFOAM reader in the ParaView CVS tj22 OpenFOAM Paraview & paraFoam 16 December 22, 2007 10:05
Building Paraview with reader builtin instead of parafoam script tj22 OpenFOAM Paraview & paraFoam 2 April 7, 2006 12:55


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