Discussion:
[otb-users] Error message (otbApplication)
Rad chrt
2018-08-17 09:32:03 UTC
Permalink
Hello,

I installed otb from osgeo4w with python 2.7, I updated python to 3.6 with
the "py3_env" command. When I test import otbApplication from osgeo shell,
this error message is displayed

C:\>python3
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
import otbApplication
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\OSGEO4~2\apps\orfeotoolbox\python\otbApplication.py", line 28,
in <module>
_otbApplication = swig_import_helper()
File "C:\OSGEO4~2\apps\orfeotoolbox\python\otbApplication.py", line 24,
in swig_import_helper
_mod = imp.load_module('_otbApplication', fp, pathname, description)
File "C:\OSGEO4~2\apps\Python36\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\OSGEO4~2\apps\Python36\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: Module use of python27.dll conflicts with this version of
Python.
Can you please solve this problem

Thanks
--
--
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-08-17 13:15:42 UTC
Permalink
Rad chrt
2018-08-17 16:35:52 UTC
Permalink
ok, thank you for your reply
Hi,
I think the OTB packages on osgeo4w are obsolete, and they will not work
with Python 3. You should rather try the standalone OTB package for windows
https://www.orfeo-toolbox.org/download/
With OTB 6.6, you should be able to use Python 2.7 and Python 3.5
Regards,
Guillaume
Hello,
I installed otb from osgeo4w with python 2.7, I updated python to 3.6 with
the "py3_env" command. When I test import otbApplication from osgeo shell,
this error message is displayed
C:\>python3
Python 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Post by Rad chrt
import otbApplication
File "<stdin>", line 1, in <module>
File "C:\OSGEO4~2\apps\orfeotoolbox\python\otbApplication.py", line 28,
in <module>
_otbApplication = swig_import_helper()
File "C:\OSGEO4~2\apps\orfeotoolbox\python\otbApplication.py", line 24,
in swig_import_helper
_mod = imp.load_module('_otbApplication', fp, pathname, description)
File "C:\OSGEO4~2\apps\Python36\lib\imp.py", line 242, in load_module
return load_dynamic(name, filename, file)
File "C:\OSGEO4~2\apps\Python36\lib\imp.py", line 342, in load_dynamic
return _load(spec)
ImportError: Module use of python27.dll conflicts with this version of
Python.
Can you please solve this problem
Thanks
--
--
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.
<javascript:>
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 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.
Loading...