Discussion:
[otb-users] ImportError: undefined symbol on Docker
Hédy Midassi
2018-07-11 08:50:52 UTC
Permalink
Hello,

I have been trying to use OTB 6.6.0 with both Python 2.7 and 3.5, in a
Docker container. After editing the PYTHONPATH, LD_LIBRARY_PATH, and adding
the symlink to libpython so that the right dependencies can be found, I
received the following error:

Traceback (most recent call last):
File "image_preparation_metadata.py", line 3, in <module>
import otbApplication
File "/OTB-6.6.0-Linux64/lib/python/otbApplication.py", line 28, in
<module>
_otbApplication = swig_import_helper()
File "/OTB-6.6.0-Linux64/lib/python/otbApplication.py", line 24, in
swig_import_helper
_mod = imp.load_module('_otbApplication', fp, pathname, description)
ImportError: /OTB-6.6.0-Linux64/lib/libOTBTransform-6.6.so.1: undefined
symbol: _ZN19OGRSpatialReference8ValidateEv

I have done some research, it might be a linker flag issue. Did anyone else
have the same issue?

Thanks in advance, and best regards.

Hedy
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Guillaume Pasero
2018-07-11 09:03:03 UTC
Permalink
Hédy Midassi
2018-07-11 09:39:20 UTC
Permalink
Hello Guillaume,

My LD_LIBRARY_PATH is the following:
*/usr/lib/x86_64-linux-gnu:/usr/lib:/usr/local/lib. *

As for GDAL, I have the 2.2.2 version installed on my Python 3.5 container,
and the 2.3.1 on the 2.7 one.

Best regards,

Hedy
Hi,
Do you have an other GDAL version in your container ? What is the content
of your LD_LIBRARY_PATH ?
Regards,
Guillaume
Hello,
I have been trying to use OTB 6.6.0 with both Python 2.7 and 3.5, in a
Docker container. After editing the PYTHONPATH, LD_LIBRARY_PATH, and adding
the symlink to libpython so that the right dependencies can be found, I
File "image_preparation_metadata.py", line 3, in <module>
import otbApplication
File "/OTB-6.6.0-Linux64/lib/python/otbApplication.py", line 28, in
<module>
_otbApplication = swig_import_helper()
File "/OTB-6.6.0-Linux64/lib/python/otbApplication.py", line 24, in
swig_import_helper
_mod = imp.load_module('_otbApplication', fp, pathname, description)
ImportError: /OTB-6.6.0-Linux64/lib/libOTBTransform-6.6.so.1: undefined
symbol: _ZN19OGRSpatialReference8ValidateEv
I have done some research, it might be a linker flag issue. Did anyone
else have the same issue?
Thanks in advance, and best regards.
Hedy
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
<http://www.c-s.fr> *Guillaume PASERO*
Responsable technique
*Business Unit ESPACE & GeoInformation - Département Payload Data &
Applications*
*CS SystÚmes d'Information*
Parc de la Grande Plaine - 5, Rue Brindejonc des Moulinais - BP 15872
31506 Toulouse Cedex 05 - FRANCE
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups
"otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an
For more options, visit https://groups.google.com/d/optout.
--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to otb-***@googlegroups.com
To unsubscribe from this group, send email to
otb-users+***@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to otb-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Guillaume Pasero
2018-07-12 08:03:38 UTC
Permalink
Loading...