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

After install OpenFOAM I cannot open paraFoam

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

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2011, 12:29
Unhappy After install OpenFOAM I cannot open paraFoam
  #1
New Member
 
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 15
QuangDang is on a distinguished road
I am new with OpenFOAM. I install and take tutorials but when I use paraFoam I take an error

[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action
[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action
[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action
[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action
[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action


please help me
QuangDang is offline   Reply With Quote

Old   May 22, 2011, 03:55
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Quang,

You're giving us very little information to estimate what the real problem is!
In order for us to help you, please answer the following questions:
  • What Linux distribution are you using? Is it Ubuntu Natty (11.04)?
  • Which OpenFOAM version or variant have you installed?
  • Which instructions did you follow to install OpenFOAM? Did you follow these: http://www.openfoam.com/download/ubuntu.php ?
  • Which ParaView version have you installed?
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 22, 2011, 10:44
Default
  #3
New Member
 
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 15
QuangDang is on a distinguished road
ok

1/I use Ubuntu 10.10
2/I install version 1.7.1
3/I cannot follow line 1 but I can run openFOAM

line 1:

In a terminal window, add OpenFOAM to the list of repository locations for apt to search, by copying and pasting the following in a terminal prompt (Applications -> Accessories -> Terminal).
** Ubuntu 11.04 users **: In the following, replace the first line with VERS=maverick
VERS=`lsb_release -cs`
sudo sh -c "echo deb http://www.openfoam.com/download/ubuntu $VERS main >> /etc/apt/sources.list"



  • Note 1: Line 1 stores the version name of your Ubuntu distribution (e.g. maverick) under $VERS, which is used in line 2
  • Note 2: This only needs to be done once for a given system
4/ paraview I install

  1. Install Paraview (381 in the name refers to version 3.8.1): sudo apt-get install paraviewopenfoam381

should I remove this OpenFOAM and reinstall?


Another information, I install paraview but I take the same error

Last edited by QuangDang; May 22, 2011 at 11:32.
QuangDang is offline   Reply With Quote

Old   May 22, 2011, 13:57
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Quang,

OK, if I've understood you correctly, running "icoFoam -help" has worked successfully.

Try removing the file "~/.config/ParaView":
Code:
rm ~/.config/ParaView
Then run paraview and see if it still crashes.


If it still crashes, I'll give you a few more steps just in case:
  1. Remove the ParaView version provided by OpenCFD:
    Code:
    sudo apt-get remove paraviewopenfoam381
  2. Install the version that comes with Ubuntu 10.10:
    Code:
    sudo apt-get install paraview
  3. Run this on the command line and tell me if it gievs you the same error or not:
    Code:
    paraview
  4. If it does, also try this:
    Code:
    export LC_ALL=C
    paraview



I've just searched in Google, I remembered that this is an old issue: http://www.cfd-online.com/Forums/ope...4-10-10-a.html

If it still doesn't work, please detail the steps you have taken since your last post!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 23, 2011, 10:28
Default
  #5
New Member
 
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 15
QuangDang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Quang,

OK, if I've understood you correctly, running "icoFoam -help" has worked successfully.

Try removing the file "~/.config/ParaView":
Code:
rm ~/.config/ParaView
Then run paraview and see if it still crashes.


If it still crashes, I'll give you a few more steps just in case:
  1. Remove the ParaView version provided by OpenCFD:
    Code:
    sudo apt-get remove paraviewopenfoam381
  2. Install the version that comes with Ubuntu 10.10:
    Code:
    sudo apt-get install paraview
  3. Run this on the command line and tell me if it gievs you the same error or not:
    Code:
    paraview
  4. If it does, also try this:
    Code:
    export LC_ALL=C
    paraview



I've just searched in Google, I remembered that this is an old issue: http://www.cfd-online.com/Forums/ope...4-10-10-a.html

If it still doesn't work, please detail the steps you have taken since your last post!

Best regards,
Bruno
Hi Bruno,
Thank you for your help

Today, I check my OpenFOAM I realize My OpenFOAM run exactly and ParaFoam view well. But when paraFOAM start, it makes error

[31mQVariantMap DBusMenuExporterDBus::GetProperties(int, const QStringList&) [0m: Condition failed: action

I use your command
Code:
rm ~/.config/ParaView
it makes error

rm: cannot remove `/home/quang/.config/ParaView': Is a directory


I use these commands

  1. Remove the ParaView version provided by OpenCFD: Code:
    sudo apt-get remove paraviewopenfoam381
  2. Install the version that comes with Ubuntu 10.10: Code:
    sudo apt-get install paraview
  3. Run this on the command line and tell me if it gievs you the same error or not: Code:
    paraview
  4. If it does, also try this: Code:
    export LC_ALL=C
    paraview


Do not effect but I belive

Code:
rm ~/.config/ParaView

this command can help me

Can you explain How I can do this command?


QuangDang is offline   Reply With Quote

Old   May 23, 2011, 10:40
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Quang,

Sorry about that, I forgot that it was a directory. The quickest way will be to use:
Code:
rm -rf ~/.config/ParaView
The "-r" option makes it recursive, therefore folders will also be removed; the "f" option forces the removal of files and folders without asking first.

Removing that folder will remove any configurations from previous ParaView versions. You can then either try Ubuntu's ParaView version or OpenCFD's "paraviewopenfoam381".

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 24, 2011, 03:40
Default
  #7
New Member
 
Quang
Join Date: Jul 2010
Posts: 11
Rep Power: 15
QuangDang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Quang,

Sorry about that, I forgot that it was a directory. The quickest way will be to use:
Code:
rm -rf ~/.config/ParaView
The "-r" option makes it recursive, therefore folders will also be removed; the "f" option forces the removal of files and folders without asking first.

Removing that folder will remove any configurations from previous ParaView versions. You can then either try Ubuntu's ParaView version or OpenCFD's "paraviewopenfoam381".

Best regards,
Bruno
I will try and reply to you

Thanks Burno

QuangDang
QuangDang is offline   Reply With Quote

Old   January 31, 2013, 06:53
Default Same problem
  #8
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello All,

I am having exactly the same problem, I am on ubuntu 11.10, and i have installed OpenFoam210 and paraviewOpenfoam3101, and Salomé.
So when testing the installation, everything worked just fine, but once i run salome, and then try to run paraview, i get the error mentioned in this thread: "[31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const?[0m: Condition failed: action"
Using Bruno's first suggestion:
rm -rf ~/.config/ParaView Solved the problem until i rerun salome, and then same problem again.
So, i used Bruno's 2nd suggestion:
If it still crashes, I'll give you a few more steps just in case:
  1. Remove the ParaView version provided by OpenCFD: Code:
    sudo apt-get remove paraviewopenfoam381
  2. Install the version that comes with Ubuntu 10.10: Code:
    sudo apt-get install paraview
  3. Run this on the command line and tell me if it gievs you the same error or not: Codearaview

Now i can use Salome and paraview without an error, but using paraview with openfoam by typing paraFoam, opens a window where i have to choose every time "openfoam" as the reader or the file couldn't be open.
So is there a way, that make openfoam as the default reader?
And many thanks to bruno, who saved me before and still!
Thank you all,
Nadine
nadine is offline   Reply With Quote

Old   January 31, 2013, 09:22
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Nadine:

I'll quote from one of my blog posts: http://www.cfd-online.com/Forums/blo...-openfoam.html
Quote:
7. Now open the file "$WM_PROJECT_DIR/bin/paraFoam" in your favorite simple text editor and replace every entry ".OpenFOAM" with ".foam". Now save and close the file.
NOTE: if you're feeling too lazy to open a text editor, try this:
Code:
sed -i -e 's=\.OpenFOAM=\.foam='  $WM_PROJECT_DIR/bin/paraFoam
NOTE about OpenFOAM 2.0: If you want to keep this file unedited, you can use the new argument "builtin":
Code:
paraFoam -builtin
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 31, 2013, 10:02
Default
  #10
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello Bruno,
Thank you for replying that fast. I tried your suggestion but it won't work! ParaFoam always asks to choose a reader from the list! So I also changed the extension= OpenFOAM to extension=foam. After doing this, parafoam worked fine, without asking to choose a reader, but once i run Salomé, than I am back to my first problem and i get the error message i mentioned before ([31mQVariantMap DBusMenuExporterDBus::getProperties(int, const QStringList&) const?[0m: Condition failed: action).
So Finally, I undid the changes and now, salomé and paraFoam work, and I back to choose the reader every time.
It's not really an error, but just annoying! Should be a way to overcome this but I am not the expert for that!
Sincerly,
Nadine
nadine is offline   Reply With Quote

Old   February 7, 2013, 11:04
Default
  #11
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
Hello Bruno,
The last time, I used paraFoam and salome evrything worked just fine. That was last week, after your reply. Today I runned paraFoam and I got the error message below:
FATAL ERROR: ParaView reader module libraries do not exist

Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake
"
So I tried to verify if paraview works, and it does.
So I tried to do what they are asking:
"nadine@dardevil:~$ cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
nadine@dardevil:/opt/openfoam201/applications/utilities/postProcessing/graphics/
PV3Readers$ ./Allwclean
+ wclean libso vtkPV3Readers
wclean vtkPV3Readers
+ PV3blockMeshReader/Allwclean
+ rm -f /opt/openfoam201/platforms/linux64GccDPOpt/lib/libPV3blockMeshReader*
+ rm -rf PV3blockMeshReader/Make
+ wclean libso vtkPV3blockMesh
wclean vtkPV3blockMesh
+ PV3FoamReader/Allwclean
+ rm -f /opt/openfoam201/platforms/linux64GccDPOpt/lib/libPV3FoamReader*
+ rm -rf PV3FoamReader/Make
+ wclean libso vtkPV3Foam
wclean vtkPV3Foam
nadine@dardevil:/opt/openfoam201/applications/utilities/postProcessing/graphics/
PV3Readers$ ./Allwmake
+ [ -d /opt/paraviewopenfoam3101 -a -r /opt/paraviewopenfoam3101 ]
nadine@dardevil:/opt/openfoam201/applications/utilities/postProcessing/graphics/
PV3Readers$
"
And still the same error message!
I tried to use one of your threads: http://www.cfd-online.com/Forums/blo...-openfoam.html
But it made worst, because now I have the same error message when running paraFoam, and a new message error when running paraview "symbol lookup error "! So I undid everything and I reused the steps from this thread but paraFoam still doesn't work.

Please Help,
Best regards,
Nadine
nadine is offline   Reply With Quote

Old   February 7, 2013, 18:25
Default
  #12
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Nadine,

I'm sorry, but I'm a bit lost. Could you describe in some detail the current installation you have?
It would make it easier to diagnose the problem, because right now I can't figure out the details from your previous posts .

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   February 7, 2013, 19:40
Default
  #13
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
hello Bruno,
Thank you again for replying.
Okey, I ill try to be clearer in describing my problem.
I recently installed ubuntu 11.10, and both Openfoam and Salomé where already installed on the OS. (I got the whole package from a bootable usb stick). So salome and OpenFoam210 and paraviewOpenfoam3101 where installed in the opt.
whie running salome, I had an error in running paraFoam. Therefore, I used the solution you proposed in this thread: "
rm -rf ~/.config/ParaView
Remove the ParaView version provided by OpenCFD: Code:
sudo apt-get remove paraviewopenfoam381
Install the version that comes with Ubuntu 10.10: Code:
sudo apt-get install paraview
Run this on the command line and tell me if it gis you the same error or not: Code: paraview

After that both Salome and parafoam worked fine, but parafom aks everytime to choose a reader from a list. So here, i asked you if there is a something i can do, so Openfoam will be as a default reader when i type "paraFoam". And your suggesting was to edit paraFoam by typing:
"sed -i -e 's=\.OpenFOAM=\.foam=' $WM_PROJECT_DIR/bin/paraFoam"
Doing that didn't change the fact that i have to choose the reader. But salome and parafoam worked, so I had not a real problem and everything was fine, till today. when suddenly, without changing a thing, i just restart my pc, and when i typed paraFoam, i got the error message i mentionned before:
"Please build the reader module before continuing:
cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers
./Allwclean
./Allwmake"
So as I said, I tried to do what they are asking, but didn't worked. So i removed paraview, and tried to install Parafoam from the begining using your thread:
" http://www.cfd-online.com/Forums/blo...-openfoam.html "
And i followed all the steps, but after neither paraFoam or praview worked. typing paraFoam gave the same error message, and typing paraview gives another error message telling me, that there is a symbol lookup error!
So I removed again paraview that I built using your thread. And, I re-installed using this thread.
So now, I have paraview installed correctly, and works fine. BUT paraFoam gives always the same error message!
I am really not a good user of linux OS, I just use it to run my simulations. SO I noticed that ./Allwmake gives :" + [ -d /opt/paraviewopenfoam3101 -a -r /opt/paraviewopenfoam3101 ]" as a result. But there is no paraviewopenfoam3101 in the opt file, because we remonved this one and installed paraview. So maybe this what is cusing the problem. But even if it is, I have no idea how to fixed it without having to repeat everything from zero!!!

I hope that my reply was not too long! But I am just trying to explain everything so we don't miss something that can be the cause!

Waiting for the help,
Best regards,
Nadine
nadine is offline   Reply With Quote

Old   February 8, 2013, 04:26
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
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 Nadine,

Many thanks for the detailed explanation. Now I think I understand the problem.

OK, let's try these steps:
  1. Switch to "root" mode:
    Code:
    sudo -s
    Or:
    Code:
    su -
  2. Go into the folder where OpenFOAM is installed, more specifically to the "bin" folder it has got. If I'm not mistaken, it should be in your case:
    Code:
    cd /opt/openfoam201/bin
  3. Now run these two commands:
    Code:
    sed -i -e 's/requirePV=1/requirePV=0/' paraFoam
    sed -i -e 's=\.OpenFOAM=\.foam=' paraFoam
    The first command is just a precaution.
  4. Exit "root" mode:
    Code:
    exit
  5. Go to one of the folders where you have an OpenFOAM case and try running paraFoam in it. It should now work as intended!


This should fix the problem. I had forgotten to tell you before that if you had installed OpenFOAM in "/opt", you would need "root" permissions for the previous commands to work

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

Old   February 8, 2013, 05:14
Default
  #15
Member
 
nadine moussa
Join Date: Mar 2012
Posts: 30
Rep Power: 14
nadine is on a distinguished road
WOW Bruno,

I am the one who should thank you! I am so greateful! It worked, now paraFoam works just fine!

Have a great day, like mine thanks to your help.

BEST REGARDS,
Nadine
nadine is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 07:25
install openfoam 1.6 on opensuse 11.0 andresbh OpenFOAM Installation 8 September 30, 2009 01:48
Need help to open an OpenFoam case with Paraviw aaurouss OpenFOAM 2 July 6, 2009 14:18
Howto install OpenFOAM on mandriva2009qt44 with Qt435 in home directory gzy_1228 OpenFOAM Installation 0 November 15, 2008 15:31
FoamX and paraFoam error after install OpenFoam qtian OpenFOAM Installation 0 February 6, 2008 12:24


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