Looks like I have resolved the issue. Here's what I did.
In System Properties > Environment Variables > System variables, I added
two paths (Variable > Value) as follows,
1. PYTHONPATH > C:\Software\OTB-contrib-6.0.0-win64\lib\python
2. Path > C:\Software\OTB-contrib-6.0.0-win64\bin
Adjust the paths to your 'python' and 'bin' folders according to where you
have unzipped the OTB application.
Cheers
On Friday, July 7, 2017 at 4:26:48 PM UTC-5, CyberGIS wrote:
>
> Hi Guillaume,
>
> Thank you for your reply. I looked at the otbenv.cmd file as you
> suggested, and it seems to point to the bin directory inside current script
> dir as follows:
>
> set CURRENT_SCRIPT_DIR=%~dp0
>
> set PATH=%CURRENT_SCRIPT_DIR%\bin;%PATH%
>
> set GDAL_DATA=%CURRENT_SCRIPT_DIR%\share\gdal
>
> set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%\share\epsg_csv
>
>
>
> I have all the the dll files in the bin folder since I didn't modify
> anything. I still am unable to import otbApplication in IDLE. Am I missing
> something?
>
> Cheers
>
>
>
> On Wednesday, July 5, 2017 at 8:34:42 AM UTC-5, Guillaume Pasero wrote:
>>
>> 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.
>>
>>
>> --
>> <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
>> +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.