I'm having the same issue. I had to go to command line syntax because every time I tried calculating Top of Canopy Reflectance, the GUI would error out and stop working. Anyway, I got it to work fine using the windows cmd interface but want to create a python GUI for my co-workers. I was getting the 'no module named otbApplication' error and after setting different paths per a user forum suggestion I now get "ImportError: DLL load failed: The specified procedure could not be found." Been working on this for a while and am getting nowhere fast. I'm running Python3.6 and my sys.path output looks like this:
'C:\\tmp\\Brandon\\OTB-6.4.0-Win64\\lib', 'C:\\tmp\\Brandon\\OTB-6.4.0-Win64\\bin', 'C:\\tmp\\Brandon\\OTB-6.4.0-Win64\\lib\\otb\\applications', 'C:\\tmp\\Brandon\\OTB-6.4.0-Win64\\lib\\python', 'C:\\ProgramData\\Anaconda3\\python36.zip', 'C:\\ProgramData\\Anaconda3\\DLLs', 'C:\\ProgramData\\Anaconda3\\lib', 'C:\\ProgramData\\Anaconda3', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\win32\\lib', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\Pythonwin', 'C:\\ProgramData\\Anaconda3\\lib\\site-packages\\IPython\\extensions', 'C:\\Users\\brandon.moore\\.ipython'] Any ideas that people may have are greatly appreciated as I'm stuck like Pooh Bear in a honey tree. Brandon On Wednesday, May 23, 2018 at 4:21:29 AM UTC-5, swiky aquilla wrote: > > Hi all, > > > I am trying installing the otbApplication on Python but it is not > working…I want to use the \otbcli_LargeScaleMeanShift.bat > file. > I follow all the discussion on this subject on otb-users group, without > success. > > I have downloaded OTB-6.4.0-Win64.zip (binary package) here : > https://www.orfeo-toolbox.org/download/ > > > I Added 6 paths on the environment variables (System Properties > > Environment Variables > System variables), on PATH : (see the attached > file) > C:\Users\asi\Downloads\OTB-6.4.0-Win64\bin > C:\Users\asi\Downloads\OTB-6.4.0-Win64\lib\python3 > C:\Users\asi\Downloads\OTB-6.4.0-Win64\lib\otb\applications > C:\Users\asi\Downloads\OTB-6.4.0-Win64 > C:\Users\asi\Downloads\OTB-6.4.0-Win64\bin\otbcli_LargeScaleMeanShift.bat > > > I change the PYTHONPATH of the otbenv file > (C:\Users\asi\Downloads\OTB-6.4.0-Win64\otbenv.bat) > set CURRENT_SCRIPT_DIR=%~dp0 > set PATH=%CURRENT_SCRIPT_DIR%bin;%PATH% > set GDAL_DATA=%CURRENT_SCRIPT_DIR%share\data > set GEOTIFF_CSV=%CURRENT_SCRIPT_DIR%share\epsg_csv > set PYTHONPATH=%CURRENT_SCRIPT_DIR%lib\python3;%PYTHONPATH% > set OTB_APPLICATION_PATH=%CURRENT_SCRIPT_DIR%lib\otb\applications > set GDAL_DRIVER_PATH=disable > :: Set numeric locale to C > set LC_NUMERIC=C > > > I work on jupyter Notebook, with Anaconda (version : conda 4.5.4), and > Python 3.6.5. > When I enter : > import otbApplication > the error is : > ModuleNotFoundError Traceback (most recent call last > ) > <ipython-input-1-441603f327e2> in <module>() > ----> 1 import otbApplication > > ModuleNotFoundError: No module named 'otbApplication' > > > I Don't know what to do to fix it. > > Can someone help me or have an idea ? > > Thank you very much in advance !! > -- -- 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.
