Discussion:
[otb-users] Import otbApplication in python for QGIS
s***@gmail.com
2018-11-13 13:32:40 UTC
Permalink
Hi,

I am trying to import OTB application into python console of QGIS but i am
getting the following error(s).



import otbApplication
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:/PROGRA~2/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "E:\Amrut\software\OTB\lib\otb\python\otbApplication.py", line 21,
in <module>
_otbApplication = swig_import_helper()
File "E:\Amrut\software\OTB\lib\otb\python\otbApplication.py", line 20,
in swig_import_helper
return importlib.import_module('_otbApplication')
File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\importlib\__init__.py",
line 37, in import_module
__import__(name)
File "C:/PROGRA~2/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line 607,
in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: %1 is not a valid Win32 application.



i am using QGIS 2.18 and OTB 5.8

if possible, please help me out.

with
Thanks and Regards,
Sampath
--
--
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-11-19 16:40:30 UTC
Permalink
sampath kumar
2018-11-20 03:48:28 UTC
Permalink
Thank you for your r
Yes i added path for bin, path of application, path of python as said by
some one in the forums.

with
Thanks and regards
sampath
Have you added the bin path of OTB binaries to your PATH variable ?
Regards
Guillaume
Hi,
I am trying to import OTB application into python console of QGIS but i am
getting the following error(s).
import otbApplication
File "<input>", line 1, in <module>
File "C:/PROGRA~2/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line
607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "E:\Amrut\software\OTB\lib\otb\python\otbApplication.py", line 21,
in <module>
_otbApplication = swig_import_helper()
File "E:\Amrut\software\OTB\lib\otb\python\otbApplication.py", line 20,
in swig_import_helper
return importlib.import_module('_otbApplication')
File "C:\PROGRA~2\QGIS2~1.18\apps\Python27\lib\importlib\__init__.py",
line 37, in import_module
__import__(name)
File "C:/PROGRA~2/QGIS2~1.18/apps/qgis/./python\qgis\utils.py", line
607, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: DLL load failed: %1 is not a valid Win32 application.
i am using QGIS 2.18 and OTB 5.8
if possible, please help me out.
with
Thanks and Regards,
Sampath
--
--
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 a topic in the
Google Groups "otb-users" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/otb-users/xJUCXA2Fv0Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
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.
Loading...