Hi,

The first point to investigate is the PATH variable. In the OTB package, there is a otbenv.cmd script that setup the environment. You should have a look at how the PATH variable is set. Maybe the OTB dll's are not in your PATH, and the python module can't be imported.

Guillaume


On 07/05/2017 01:08 AM, CyberGIS wrote:
I've made a little progress, but still can't import otbApplication in IDLE (WIndows) successfully.

I added 'PYTHONPATH' system variable in environment variables, and added the path to the python folder under the OTB software folder, i.e. ...\lib\python

Now when I import otbApplication in IDLE I get this error:

Traceback (most recent call last):
 
File "<pyshell#0>", line 1, in <module>
   
import otbApplication
 
File "C:\Software\OTB-contrib-6.0.0-win64\lib\python\otbApplication.py", line 21, in <module>
    _otbApplication
= swig_import_helper()
 
File "C:\Software\OTB-contrib-6.0.0-win64\lib\python\otbApplication.py", line 20, in swig_import_helper
   
return importlib.import_module('_otbApplication')
 
File "C:\Python27\lib\importlib\__init__.py", line 37, in import_module
    __import__
(name)
ImportError: DLL load failed: The specified module could not be found.


I'm stuck here. Any help would be greatly appreciated. Thank you!

Cheers
--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
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 - [email protected]

--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to