|
[Sponsors] |
[foam-extend.org] Python not enabled in paraFoam foamextend3.1 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 9, 2014, 14:42 |
Python not enabled in paraFoam foamextend3.1
|
#1 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello ,
I have problems getting information from ParaView. I have installed ParaView in foam-extend3.1 in Ubuntu 14.04TS, using AllMake.stage4 in ThirdParty directory. When I try to read data from the display (find data via scalar value (v)), I get the error message: p, li { white-space: pre-wrap; } error: Find Data requires that ParaView be built with Python enabled. To enable Python set the CMake flag 'PARAVIEW_ENABLE_PYTHON' to True. As AllMake.stage4 does not mention this flag, I do not know how to fix this. Best regards, Peter |
|
September 9, 2014, 15:14 |
|
#2 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
I thouhgt I found the answer:
(http://www.cfd-online.com/Forums/ope...w-3-8-1-a.html) but Allmake.stage4 (after running AllClean.stage4) is ready within a second, without error message, but I still can not use the button Besat regards, Peter |
|
January 18, 2015, 09:09 |
|
#3 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Greetings Peter,
I've had this on my to-do list for quite sometime now and I finally managed to look into this today. It seems that the following patch can solve this issue: Code:
diff --git a/ThirdParty/AllMake.stage4 b/ThirdParty/AllMake.stage4 index 6a3409b..463ed91 100755 --- a/ThirdParty/AllMake.stage4 +++ b/ThirdParty/AllMake.stage4 @@ -74,7 +74,7 @@ then if [ -d "$QT_BIN_DIR" -a -r "$QT_BIN_DIR"/qmake ] then ( rpm_make -p ParaView-4.0.1 -s ParaView-4.0.1.spec -u http://downloads.sourceforge.net/project/openfoam-extend/foam-extend-3.1/ThirdParty/ParaView-v4.0.1-source.tgz \ - -f --define='_qmakePath $QT_BIN_DIR/qmake' + -f --define '_qmakePath $QT_BIN_DIR/qmake' --define '_withPython true' --define '_pythonLibPath /usr/lib/libpython2.7.so.1.0' ) else echo "WARNING: " diff --git a/ThirdParty/rpmBuild/SPECS/ParaView-4.0.1.spec b/ThirdParty/rpmBuild/SPECS/ParaView-4.0.1.spec index aec695b..d8f2fcc 100644 --- a/ThirdParty/rpmBuild/SPECS/ParaView-4.0.1.spec +++ b/ThirdParty/rpmBuild/SPECS/ParaView-4.0.1.spec @@ -163,6 +162,69 @@ Patch0: ParaView-4.0.1.patch_darwin # Add the value of _qmakePath for QT_QMAKE_EXECUTABLE addCMakeVariable QT_QMAKE_EXECUTABLE:FILEPATH=%{_qmakePath} +if [ "%{_withPython}" = "true" ]; then + + if pythonBin=$(which python 2>/dev/null) + then + if [ -n "%{_pythonLibPath}" ] + then + # check %{_pythonLibPath} if it has been set + if [ ! -e "%{_pythonLibPath}" ] + then + echo "*** Error: libpython not found at location specified " \ + "by -pythnon-lib input: PYTHON_LIBRARY=%{_pythonLibPath}" + fi + else + # Try to get %{_pythonLibPath} from dynamically linked binary + PYTHON_LIBRARY=$(ldd $pythonBin | \ + sed -ne '/libpython/s/.* => \(.*\) (.*/\1/p') + + [ -e "%{_pythonLibPath}" ] || { + echo "*** Error: Unable to determine path to python library." + } + fi + + [ -e "%{_pythonLibPath}" ] || { + echo " Please set the full path to the python library " + echo " (including libpython) using the -python-lib option, " + echo " or deactivate python support by not using the -python " + echo " option" + exit 1 + } + + pythonMajor=$(echo %{_pythonLibPath} | sed 's/.*libpython\(.*\)\.so.*/\1/') + pythonInclude=/usr/include/python$pythonMajor + + # note - we could also allow for a PYTHON_INCLUDE variable ... + [ -d "$pythonInclude" ] || { + echo " No python headers found in $pythonInclude/" + echo " Please install python headers or deactivate " + echo " python support by not using the -python option" + exit 1 + } + + addCMakeVariable "PARAVIEW_ENABLE_PYTHON=ON" + addCMakeVariable "PYTHON_INCLUDE_PATH=$pythonInclude" + addCMakeVariable "PYTHON_LIBRARY=%{_pythonLibPath}" + + echo "----" + echo "Python information:" + echo " executable : $pythonBin" + echo " version : $pythonMajor" + echo " include path : $pythonInclude" + echo " library : %{_pythonLibPath}" + + unset pythonBin pythonInclude pythonMajor + else + echo "*** Error: python not found" + echo "*** Deactivate python support by not using the -python " + echo "*** option" + exit 1 + fi + +fi + + echo "CMAKE_VARIABLES: $CMAKE_VARIABLES" mkdir -p ./buildObj edit 1: Uhm... apparently this didn't work... I failed to see the need for "-f"... will edit back in a few minutes... ----------------------- edit 2: OK, fixed the patch provided above. It should now work as intended, once this patch is applied. ----------------------- edit 3: Oh for crying out loud... the option is not plugged in to anything... didn't work yet. ----------------------- edit 4: OK, full patch is now in the code box above. I'm still testing this, but it should finally work as intended . Note: The path "/usr/lib/libpython2.7.so.1.0" is the one I have for Ubuntu 12.04. Other library paths for other Ubuntu versions are available here: http://openfoamwiki.net/index.php/In...M-2.3.1/Ubuntu ----------------------- edit 5: Confirmed. The latest patch in the code block above fixes the problem. ----------------------- Best regards, Bruno
__________________
Last edited by wyldckat; January 18, 2015 at 11:54. Reason: see "edit *:" |
|
January 18, 2015, 14:32 |
|
#4 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
Thanks for looking into this, however I now have the problem that AllClean.stage4 does not recognize the installed paraView version, so it is not uninstalled. On another computer I have uninstalled ParaView via the Ubuntu Software Centre, when I then apply the AllMake.stage4, I get problems with unpacking of the archive: cpio mkdir failed - Permission denied error ParaView-4.0.1-linux64GccDPOpt.x86_64: install failed Done installing package. Best regards Peter |
|
January 18, 2015, 14:49 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Peter,
Uhm... I'm flying blind here... please describe in more detail how and where you've installed foam-extend 3.1, as well as what prerequisites you've installed, because it seems that you're using a less conventional installation than usual. Best regards, Bruno |
|
January 19, 2015, 14:46 |
|
#6 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
I don't know the details anymore. I deleted foamextend-3.1 and will reinstall it once again. Will keep you posted tomorrow or the day after. Best regards, Peter |
|
January 20, 2015, 06:43 |
new installation of foamextend-3.1
|
#7 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
I have re-installed foamextend-3.1 using git from : http://sourceforge.net/p/openfoam-ex...u/Ubuntu_14.04 Using paraFoam I get some errors on fonts.I don't know where they are comming from : Code:
pk28831@sys7:~/foam/pk28831-3.1/run/droptest/solid$ paraFoam created temporary 'solid.OpenFOAM' Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 14: Having multiple values in <test> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Fontconfig warning: "/etc/fonts/conf.d/65-ttf-sil-andika.conf", line 32: Having multiple <family> in <alias> isn't supported and may not work as expected Inconsistency detected by ld.so: dl-close.c: 762: _dl_close: Assertion `map->l_init_called' failed! Then AllMake.stage4 (adapted according to your patch) does not change anything, see below: Code:
pk28831@sys7:~/foam/foam-extend-3.1/ThirdParty$ ./AllClean.stage4 This system rpm command: rpm --force-debian ======================================== Starting ThirdParty AllClean: Stage4 ======================================== Removing qt-everywhere-opensource-src-4.7.4 Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/qt-everywhere-opensource-src-4.7.4*.rpm Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/SOURCES/qt-everywhere-opensource-src-4.7.4.tar.gz Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/TGZS/x86_64/qt-everywhere-opensource-src-4.7.4.tgz Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/BUILD/qt-everywhere-opensource-src-4.7.4* Add option alsoPackage to remove the installed files. Removing ParaView-3.12.0 Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-3.12.0*.rpm Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/SOURCES/ParaView-3.12.0.tar.gz Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/TGZS/x86_64/ParaView-3.12.0.tgz Not found: /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/BUILD/ParaView-3.12.0* Add option alsoPackage to remove the installed files. ======================================== Done ThirdParty AllClean: Stage4 ======================================== pk28831@sys7:~/foam/foam-extend-3.1/ThirdParty$ cp ~/AllMake.stage4 . pk28831@sys7:~/foam/foam-extend-3.1/ThirdParty$ ./AllMake.stage4 This system rpm command: rpm --force-debian ======================================== Starting ThirdParty AllMake: Stage4 ======================================== Using system installed QT Package name : ParaView-4.0.1 Package URL : http://downloads.sourceforge.net/pro...0.1-source.tgz RPM spec file name: ParaView-4.0.1.spec Additional flags : --define Updating the ThirdParty environment variables before building package ParaView-4.0.1 RPM file name : /home/pk28831/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm Package ParaView-4.0.1 is already installed Done installing package ======================================== Done ThirdParty AllMake: Stage4 ======================================== pk28831@sys7:~/foam/foam-extend-3.1/ThirdParty$ So far the findings with the new installation. Best regards, Peter Last edited by wyldckat; January 24, 2015 at 13:06. Reason: Added [CODE][/CODE] |
|
January 24, 2015, 13:15 |
|
#8 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Peter,
OK, the AllClean.stage4 script apparently is very outdated. Nothing like fixing the problem with one's own hands: Code:
foam3rdParty rm rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm rm -r packages/ParaView-4.0.1/ In addition, my apologies, but I was so disoriented with not fixing the problem at my first couple of tries, that I ended up not uploading a tarball with the files that were modified. You can find them now in attachment, namely in "modified_files.tar.gz". Unpack it in the "ThirdParty" folder: Code:
foam3rdParty tar -xzf /path/to/modified_files.tar.gz Bruno |
|
January 25, 2015, 10:13 |
|
#9 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
Sorry for keeping you busy, but first I got the error that the path to libpython2.7.so.1.0 was not found on /usr/lib. I corrected this by the following command: Code:
sudo ln -s /usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0 /usr/lib/libpython2.7.so.1.0 Code:
[ 3%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqThreadedEventSource.cxx.o [ 3%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqTimer.cxx.o [ 3%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqTreeViewEventPlayer.cxx.o [ 3%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqTreeViewEventTranslator.cxx.o [ 3%] Building CXX object ThirdParty/QtTesting/vtkqttesting/CMakeFiles/QtTesting.dir/moc_pqWidgetEventTranslator.cxx.o Linking CXX shared library ../../../lib/libQtTesting.so [ 3%] Built target QtTesting Linking C shared library ../../../../lib/libvtklibxml2-pv4.0.so [ 3%] Built target vtklibxml2 make: *** [all] Error 2 error: Bad exit status from /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/tmp/rpm-tmp.bC2bmr (%build) RPM build errors: Bad exit status from /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/tmp/rpm-tmp.bC2bmr (%build) Installing package: ParaView-4.0.1 Uninstalling ParaView-4.0.1 using RPM: ParaView-4.0.1-linux64GccDPOpt.x86_64 Installing ParaView-4.0.1 using RPM file: /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm error: open of /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Done installing package ======================================== Done ThirdParty AllMake: Stage4 ======================================== Code:
7 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux Peter Last edited by wyldckat; January 25, 2015 at 10:30. Reason: Added [CODE][/CODE] |
|
January 25, 2015, 10:35 |
|
#10 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Peter,
Ooops, sorry, I had only tested on Ubuntu 12.04. The symbolic link you've done does fix the initial problem, but you could have edited the file "AllMake.stage4" and fix said path Please install the packages indicated here: http://openfoamwiki.net/index.php/In...u#Ubuntu_14.10 - in step #2. Those are, as far as I know, all of the necessary packages needed to build ParaView with Python support. Best regards, Bruno |
|
January 25, 2015, 13:12 |
|
#11 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
Strange, but these are different packages than described on the wikipage for installing (there a space was missing between the packages, I have made a tag for this). I have installed all the packages mentioned under 2, including that for CGAL. Now is goes wrong on another line in make: Linking CXX shared library ../../../lib/libQtTesting.so [ 3%] Built target QtTesting Linking C shared library ../../../../lib/libvtklibxml2-pv4.0.so [ 3%] Built target vtklibxml2 make: *** [all] Error 2 error: Bad exit status from /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/tmp/rpm-tmp.K9NOZZ (%build) RPM build errors: Bad exit status from /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/tmp/rpm-tmp.K9NOZZ (%build) Installing package: ParaView-4.0.1 Uninstalling ParaView-4.0.1 using RPM: ParaView-4.0.1-linux64GccDPOpt.x86_64 Installing ParaView-4.0.1 using RPM file: /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm error: open of /home/peterk/foam/foam-extend-3.1/ThirdParty/rpmBuild/RPMS/x86_64/ParaView-4.0.1-linux64GccDPOpt.x86_64.rpm failed: No such file or directory Done installing package ======================================== Done ThirdParty AllMake: Stage4 ======================================== Best regards, Peter Last edited by peterk; January 25, 2015 at 13:37. Reason: additional remark: |
|
January 25, 2015, 13:38 |
|
#12 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Peter,
Can you please attach the full output log file "log.make"? Code:
./AllMake.stage4 > log.make 2>&1
Bruno |
|
January 25, 2015, 13:41 |
|
#13 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
In a way we are now adding packages needed by OpenFoam2.3.1 to the ones as needed by foam-extend3.1. Can't this be a problem? I can tomorrow try it on another computer, the one I tried today is a laptop. Best regards, Peter |
|
January 25, 2015, 13:45 |
|
#14 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
The installation instructions currently available for foam-extend 3.1 are only meant for a fixed set of features.
As you've seen, we're trying to build new features that foam-extend 3.1 is not yet prepared to handle, which is why the modifications were necessary. On the other hand, I know from my own experience that those latest instructions for OpenFOAM 2.3.1 for Ubuntu 14.10 are able for certain to build ParaView with Python and so on. Which is why I requested that you'd install those packages. My rough guess is that the problem your having right now is hidden somewhere above the output you've shown, which is why I was asking for the full log file. Specially because I don't have enough time to test this on Ubuntu 14.04 with foam-extend 3.1 and so on |
|
January 25, 2015, 13:50 |
|
#15 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
see the attached file, now only reaching 3% again, so I am afraid it could also be something in the hardware of the laptop |
|
January 25, 2015, 14:04 |
|
#16 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Ah HA! My intuition was right
Several lines above the final end you looked at, this can be found: Code:
xmlpatterns: could not exec '/usr/lib/x86_64-linux-gnu/qt5/bin/xmlpatterns': No such file or directory Code:
export QT_SELECT=qt4 ./AllMake.stage4 > log.make 2>&1 |
|
January 25, 2015, 15:47 |
|
#17 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Helllo Bruno,
Thanks for all the effort, the compilation succeeded, but I have still to set somewhere the envronment variable to paraview: if I run a tutorial and start paraFoam, I get the error that paraview is not found, the command is there in : ~/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt/bin . This is the result of running the tutorial: Code:
electrostaticFoam mhdFoam peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics$ cd mhdFoam/ peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam$ ls Allclean Allrun hartmann peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam$ ./Allrun Running blockMesh on /home/peterk/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann Running mhdFoam on /home/peterk/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann Running foamCalc on /home/peterk/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann Running sample on /home/peterk/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam$ ls Allclean Allrun hartmann peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam$ cd hartmann/ peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ ls 0 0.5 1 1.5 2 constant log.blockMesh log.foamCalc log.mhdFoam log.sample sets system peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ paraFoam created temporary 'hartmann.OpenFOAM' /home/peterk/foam/foam-extend-3.1/bin/paraFoam: line 142: paraview: command not found peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ vi /home/peterk/foam/foam-extend-3.1/bin/paraFoam peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ which paraView peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ ls 0 0.5 1 1.5 2 constant log.blockMesh log.foamCalc log.mhdFoam log.sample sets system peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ ls 0 0.5 1 1.5 2 constant log.blockMesh log.foamCalc log.mhdFoam log.sample sets system peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ paraView No command 'paraView' found, did you mean: Command 'paraview' from package 'paraview' (universe) paraView: command not found peterk@TNR3427:~/foam/peterk-3.1/run/tutorials/electromagnetics/mhdFoam/hartmann$ paraview The program 'paraview' is currently not installed. You can install it by typing: sudo apt-get install paraview Best regards, Peter Last edited by wyldckat; January 25, 2015 at 16:22. Reason: Added [CODE][/CODE] |
|
January 25, 2015, 16:26 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128 |
Hi Peter,
Try starting a new terminal window, so that the shell environment is guaranteed to be updated. And confirm if the following commands work as intended: Code:
echo $PARAVIEW_BIN_DIR echo $PARAVIEW_DIR echo $PARAVIEW_INCLUDE_DIR echo $PARAVIEW_LIB_DIR which paraview Code:
$ echo $PARAVIEW_BIN_DIR /home/ofuser/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt/bin $ echo $PARAVIEW_DIR /home/ofuser/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt $ echo $PARAVIEW_INCLUDE_DIR /home/ofuser/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt/include/paraview-4.0 $ echo $PARAVIEW_LIB_DIR /home/ofuser/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt/lib $ which paraview /home/ofuser/foam/foam-extend-3.1/ThirdParty/packages/ParaView-4.0.1/platforms/linux64GccDPOpt/bin/paraview Bruno
__________________
|
|
January 25, 2015, 16:38 |
|
#19 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
When I just add the complete path to paraview in the paraFoam file, then paraFoam starts and I the python is enabled, so I am still searching which environment variable has to be set. I can find it that quickly via google and the forum. Best regards and goonight, Peter |
|
January 25, 2015, 16:48 |
|
#20 |
New Member
Peter Knapen
Join Date: Sep 2009
Posts: 28
Rep Power: 16 |
Hello Bruno,
This is the second time today, that our postings crossed in time. I have removed the path in paraFoam. In a new terminal the environment variables are now ok. starting paraFoam in the new terminal works well, I only remember from the past that paraView opened directly supposing a OpenFoam file had to be read, now it opens with a menue of which one is openFoam. Thanks once again for the effort: everything is working now |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[OpenFOAM] How to use python script in paraFoam? | Thomas pan | ParaView | 0 | October 12, 2015 04:34 |
[OpenFOAM] using the python shell in paraFoam | colinB | ParaView | 14 | September 14, 2015 09:04 |
[Other] Enable Python in paraFoam | tabsquare | OpenFOAM Installation | 4 | December 14, 2014 13:27 |
[General] Using Python in Openfoam in-built paraFoam (paraView 3.8.0) | Man Yue | ParaView | 6 | November 30, 2012 06:57 |
python scripting in paraFoam | chegdan | OpenFOAM Post-Processing | 0 | March 31, 2010 19:06 |