CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (http://www.cfd-online.com/Forums/openfoam-installation/)
-   -   After install OpenFOAM I cannot open paraFoam (http://www.cfd-online.com/Forums/openfoam-installation/88606-after-install-openfoam-i-cannot-open-parafoam.html)

QuangDang May 21, 2011 11:29

After install OpenFOAM I cannot open paraFoam
 
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

wyldckat May 22, 2011 02:55

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

QuangDang May 22, 2011 09:44

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

wyldckat May 22, 2011 12:57

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

QuangDang May 23, 2011 09:28

Quote:

Originally Posted by wyldckat (Post 308775)
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?



wyldckat May 23, 2011 09:40

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

QuangDang May 24, 2011 02:40

Quote:

Originally Posted by wyldckat (Post 308870)
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

nadine January 31, 2013 06:53

Same problem
 
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: Code:paraview

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

wyldckat January 31, 2013 09:22

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

nadine January 31, 2013 10:02

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 February 7, 2013 11:04

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

wyldckat February 7, 2013 18:25

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

nadine February 7, 2013 19:40

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

wyldckat February 8, 2013 04:26

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

nadine February 8, 2013 05:14

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


All times are GMT -4. The time now is 19:45.