Hi
The otbApplication could be successfully imported in python in command lines. But, an error occurred when I try to import otbApplication in Spyder or Pycharm. It said:
Traceback (most recent call last):
File “D:\OTB-6.6.1-Win64\lib\python3\otbApplication.py”, line 14, in swig_import_helper
return importlib.import_module(mname)
File “D:\Anaconda3\envs\zy_py35\lib\importlib_init_.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 986, in _gcd_import
File “”, line 969, in _find_and_load
File “”, line 958, in _find_and_load_unlocked
File “”, line 666, in _load_unlocked
File “”, line 577, in module_from_spec
File “”, line 903, in create_module
File “”, line 222, in _call_with_frames_removed
ImportError: DLL load failed: 找不到指定的模块。
During handling of the above exception, another exception occurred:
I have added the variables in otbenv.bat into system path. My platform is Win10 + python 3.5.
I’ll be appreciated if any hints can be given to help me build otbApplication in IDE.
Thanks
Yi Zhao