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

[OpenFOAM.org] ParaView Installation: Python problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2017, 11:25
Default ParaView Installation: Python problem
  #1
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello guys,

I am trying to install ThirdParty-5.0 and have some trouble with the ParaView part: I followed the adapted instructions from the openfoamwiki for installing OpenFOAM-4.1 on OpenSUSE Leap 42.1 (https://openfoamwiki.net/index.php/I...4.1/openSUSE):

Code:
./makeParaView -python -mpi -python-lib /usr/lib64/libpython2.7.so.1.0 > log.makePV 2>&1
The end of the logfile looks like this:

Code:
[ 89%] Building CXX object VTK/Wrapping/Python/CMakeFiles/vtkPVClientServerCoreRenderingPythonD.dir/vtkPVDataRepresentationPython.cxx.o
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libicui18n.so.54, needed by /home/kate/miniconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libicuuc.so.54, needed by /home/kate/miniconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/usr/lib64/gcc/x86_64-suse-linux/4.8/../../../../x86_64-suse-linux/bin/ld: warning: libicudata.so.54, needed by /home/kate/miniconda3/lib/libQt5Core.so.5, not found (try using -rpath or -rpath-link)
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_clone_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `u_strToLower_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_setMillis_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_close_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_openTimeZones_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_toUnicode_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `u_strToUpper_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_getDefaultTimeZone_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `uenum_next_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_getStandardName_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucol_setAttribute_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucol_strcoll_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_getTimeZoneDisplayName_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_setSubstChars_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_openCountryTimeZones_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_openTimeZoneIDEnumeration_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `u_errorName_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_getAlias_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_compareNames_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_fromUnicode_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_getDefaultName_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_inDaylightTime_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_get_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_close_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_countAvailable_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_getMaxCharSize_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_open_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucol_open_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucol_close_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucol_getSortKey_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_getAvailableName_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_getDSTSavings_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucal_open_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `uenum_close_54'
/home/kate/miniconda3/lib/libQt5Core.so.5: undefined reference to `ucnv_countAliases_54'
collect2: error: ld returned 1 exit status
CommandLineExecutables/CMakeFiles/pvpython.dir/build.make:129: recipe for target 'bin/pvpython' failed
make[2]: *** [bin/pvpython] Error 1
CMakeFiles/Makefile2:46702: recipe for target 'CommandLineExecutables/CMakeFiles/pvpython.dir/all' failed
make[1]: *** [CommandLineExecutables/CMakeFiles/pvpython.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 89%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/pqAnimationScene.cxx.o
[ 89%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/pqApplicationCore.cxx.o

[...]

[ 91%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/moc_pqXYFunctionalBagChartView.cpp.o
[ 91%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/moc_pqXYHistogramChartView.cpp.o
[ 91%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/moc_pqXYChartView.cpp.o
[ 91%] Building CXX object Qt/Core/CMakeFiles/pqCore.dir/moc_pqPythonView.cpp.o
[ 91%] Linking CXX shared library ../../lib/libvtkpqCore-pv5.4.so
[ 91%] Built target pqCore
Makefile:149: recipe for target 'all' failed
make: *** [all] Error 2
I would appreciate every helping hand. What does "(try using -rpath or -rpath-link)" mean?

Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 18, 2017, 07:17
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

Did you already try

Code:
# zypper wp libicui18n.so.54
to find out package, which provides this library, and then installing the package?
alexeym is offline   Reply With Quote

Old   August 21, 2017, 03:32
Default
  #3
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Hello Alexey,

Thanks for your reply. I got the following:

Code:
kate@linux-4r1e:~> zypper wp libicui18n.so.54
Command 'what-provides' is replaced by 'search --provides --match-exact'.
See 'help search' for all available options.
Loading repository data...
Reading installed packages...
No matching items found.
kate@linux-4r1e~> zypper search --provides --match-exact libicui18n.so.54
Loading repository data...
Reading installed packages...
No matching items found.
kate@linux-4r1e:~>
Best regards,

Kate
KateEisenhower is offline   Reply With Quote

Old   August 21, 2017, 05:34
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi Kate,

You could also try search without ".54" path, but quick googling of "miniconda3 libicu" reveals, that it is common problem with conda to have version mismatch in libraries (ex. https://github.com/conda-forge/r-irk...stock/issues/3). Could you run "conda list" to learn if you have "icu" package installed, check its version, and then maybe manually create required symlink in conda libraries folder.

You could also...

1. Instruct ParaView build script to use system Qt libraries instead of ones, which come with conda.

2. Install binary version of ParaView 5.4. There is at least one repo in OBS (https://build.opensuse.org/package/b...SUSE_Leap_42.1). According to SPEC file, it has Python scripting compiled-in. Then you can use built-on FOAM reader (i.e. start paraFoam with -builtin flag or create alias).
alexeym is offline   Reply With Quote

Old   August 24, 2017, 03:10
Default
  #5
Senior Member
 
Join Date: Mar 2015
Posts: 250
Rep Power: 12
KateEisenhower is on a distinguished road
Thanks for your help, Alexey,

Indeed this seems to be a conda related problem. I solved it doing the following:

1) Clean OpenSUSE Leap 42.3 install with python and python3
2) Installed neccessary additional python packages like numpy via zypper
3) Installed of50 using the official openfoam.org instructions except
Code:
./makeParaView -python -mpi -python-lib /usr/lib64/libpython2.7.so.1.0
(openfoamwiki) instead of
Code:
./makeParaView
so that I can use pvpython.

Worked so far.

Kate
KateEisenhower is offline   Reply With Quote

Old   August 24, 2017, 05:27
Default
  #6
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Rather radical solution, but whatever works
alexeym 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
[OpenFOAM.org] OpenFOAM 2.3.1: installation problem with ParaView 4.1.0 hjw OpenFOAM Installation 5 November 17, 2015 21:14
[OpenFOAM] Paraview display problem jiejie ParaView 4 October 13, 2013 21:29
[General] Problem in using paraview meballav ParaView 11 October 12, 2012 16:03
Installation Problem with ParaView 3.12.0 on Scientific Linux 5.7 Wley OpenFOAM Installation 2 September 28, 2012 06:06
[OpenFOAM] Problem running paraview (libQVTK?) t_clark ParaView 2 August 8, 2012 05:23


All times are GMT -4. The time now is 20:32.