Hi,

I think there is a mistake in your PYTHONPATH, for python 3 you should use "C:\OTB\lib\python3". It should work with Python 3.5

Regards,
Guillaume

On 09/25/2018 04:33 AM, 781633...@qq.com wrote:

Dear All,

I set system paths of OTB (In System Properties > Environment Variables > System variables, 1. PYTHONPATH > C:\OTB\lib\python2. Path > C:\OTB\bin3. OTB_APPLICATION_PATH > C:\OTB\lib\otb\applications),but still cannot import OTB correctly.I have a question that when I use 'import otbApplication' in Spyder, Import Error will appear like these:

Traceback (most recent call last):

  File "<ipython-input-1-441603f327e2>", line 1, in <module>
    import otbApplication

  File "C:\OTB\lib\python3\otbApplication.py", line 21, in <module>
    _otbApplication = swig_import_helper()

  File "C:\OTB\lib\python3\otbApplication.py", line 20, in swig_import_helper
    return importlib.import_module('_otbApplication')

  File "C:\Users\78163\Anaconda3\lib\importlib\__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)

ImportError: DLL load failed

I have no ideas how to deal with this question.what can I do to make 'import otbApplication' run correctly?
All ideas are welcome!
--
--
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.

Reply via email to