Re: [otb-users] Import otbApplication in python for QGIS

2018-11-19 Thread sampath kumar
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

On Mon, Nov 19, 2018 at 10:10 PM Guillaume Pasero 
wrote:

> Have you added the bin path of OTB binaries to your PATH variable ?
>
> Regards
>
> Guillaume
> On 11/13/2018 02:32 PM, sampathyeti...@gmail.com wrote:
>
> 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 "", line 1, in 
>   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 
> _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-users@googlegroups.com
> To unsubscribe from this group, send email to
> otb-users+unsubscr...@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+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
>  *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
> +33 561 17 64 21 - guillaume.pas...@c-s.fr
>
> --
> --
> 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-users@googlegroups.com
> To unsubscribe from this group, send email to
> otb-users+unsubscr...@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 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
> otb-users+unsubscr...@googlegroups.com.
> 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-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [otb-users] Import otbApplication in python for QGIS

2018-11-19 Thread Guillaume Pasero

  
  
Have you added the bin path of OTB binaries to your PATH variable
  ?
Regards
Guillaume

On 11/13/2018 02:32 PM,
  sampathyeti...@gmail.com wrote:


  
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 "", line 1, in 
    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 
      _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-users@googlegroups.com
  To unsubscribe from this group, send email to
  otb-users+unsubscr...@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+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/d/optout.


-- 
  

  
  
  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
+33 561 17 64 21 - guillaume.pas...@c-s.fr
  
  

  

  




-- 
-- 
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-users@googlegroups.com
To unsubscribe from this group, send email to
otb-users+unsubscr...@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+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.