Discussion:
[otb-users] how to use OTB in Spyder(WIN10+Anaconda3+python3)
7***@qq.com
2018-09-25 02:33:52 UTC
Permalink
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-***@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-09-25 09:25:31 UTC
Permalink
7***@qq.com
2018-10-22 02:00:17 UTC
Permalink
Dear Guillaume
Thank you for your help, but it still can not make 'import
otbApplication' run correctly. So, there may be other mistakes in it.
圚2018幎9月25日星期二17:25:35 UTC + 8William Pasero写道
嗚
我讀䞺这是圚悚的PYTHONPATH䞀䞪错误䞺Python 3䞭䜠䞍宜䜿甚“C\ OTB \ libäž­\ python3”。
它应该适甚于3.5的Python
歀臎
纪尧姆
亲爱的
我讟眮OTB的系统路埄圚系统属性>环境变量>系统变量1。PYTHONPATH> C. \ OTB \ libäž­äž­\ python2路埄> C\
OTB \ BIN3 OTB_APPLICATION_PATH> C\ OTB \ libäž­äž­\ OTB \应甚皋序䜆仍䞍胜富入OTB
correctly.I这有䞀䞪问题圓我圚䜿甚的进口Spyder的otbApplication“富入错误将䌚出现类䌌的论断
回溯最近的呌叫最后
圚<module>äž­ 蟓入文件“<ipython-input-1- 441603f327e2>”第1行
import otbApplication
文件“C\ OTB \ libäž­\ python3 \ otbApplication.py”第21行圚<暡块>
_otbApplication = swig_import_helper
文件“C\ OTB \ LIB \ python3 \ otbApplication.py”第20行圚swig_import_helper
return importlib.import_module'_ otbApplication'
文件“C\甚户\ 78163 \ Anaconda3 \ libäž­\ 富入库\ __
init__.py”线路126圚import_module
return _bootstrap._gcd_importname [ level]packagelevel
富入错误加蜜DLL倱莥
我必须让'import otbApplication'正确运行
欢迎所有想法
-
-
查看OTB垞见问题解答
眑址 <http://www.orfeo-toolbox.org/FAQ.html>䞺http://www.orfeo-toolbox.org/
<http://www.orfeo-toolbox.org/FAQ.html>的faq.html
<http://www.orfeo-toolbox.org/FAQ.html>
悚收到歀邮件的英文因䞺悚订阅了谷歌
眑䞊论坛“OTB甚户”矀组。
芁退订歀论坛请发送电子邮件至
欲了解曎倚选项对话歀造访请矀组
的HTTP//组.google.com / 组/ OTB甚户HL = ZH
<http://groups.google.com/group/otb-users?hl=en>
---
悚收到歀邮件的英文因䞺悚订阅了眑䞊论坛谷歌“OTB甚户”矀组。
有关曎倚选项请访问https://groups.google.com/d/ 选择犁甚
<https://groups.google.com/d/optout>。
-
<http://www.c-s.fr> *嚁廉PASERO*
技术经理
*䞚务单䜍空闎状语从句地理信息-眲有效蜜荷的数据和应甚*
*CS信息系统-*
倧平原公园- 5街宫Moulinais Brindejonc - BP 15872
31506囟卢兹的Cedex的05 -法囜
--
--
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-10-22 08:14:05 UTC
Permalink
Loading...