orfeo-toolbox Conda package WSL

Description

I am able to install the orfeo-toolbox on WSL Ubuntu, using Anaconda and creating a python=3.7 virtual environment (conda install -c conda-forge -c orfeotoolbox otb). I am able to successfully run the "Smoothing" test case using the above described setup (https://www.orfeo-toolbox.org/packages/nightly/2019-06-28/CookBook-stable/recipes/python.html).

However when I run the command "print(str(otb.Registry.GetAvailableApplications()))", I get the error message:

[...]/oftb/lib/otb/applications/otbapp_TrainVectorClassifier.so: undefined symbol: _ZN5shark6random9globalRngE

I further looked into the problem and it seems some applications are working, e.g. "TrainImageClassifier", while others such as "TrainVector Classifier" produces the same error: run--> app1= otb.Registry.CreateApplication("TrainVectorClassifier") error--> 2020-11-17 12:30:03 (WARNING): Failed to load libraries from /home/cschwarz/miniconda3/envs/oftb/lib/otb/applications/otbapp_TrainVectorClassifier.so while trying to create application TrainVectorClassifier because: -> /home/cschwarz/miniconda3/envs/oftb/lib/otb/applications/otbapp_TrainVectorClassifier.so: undefined symbol: _ZN5shark6random9globalRngE

Steps to reproduce

  • install conda on WSL Ubuntu
  1. conda create --name oftb python=3.7 spyder=4 2a. conda activate oftb 2b. conda install -c conda-forge -c orfeotoolbox otb
  2. python
  3. import otbApplication as otb
  4. print(str(otb.Registry.GetAvailableApplications()))

Configuration information

conda version: 4.9.2 python version: 3.7.8 otb : 7.1.0 / Build: py37h06a4308_1

I am very excited to use OTB for patch-image-processing and would value your advice on how to solve this issue?

Best Regards, Christian