Hi Victor,
Thank you very much for your reply,
You are right, I haven't got the OTB installation path when I type :
print(sys.path).
So, I do :
sys.path.append('C:\\Users\\asi\\Downloads\\OTB-6.4.0-Win64\\lib')
sys.path.append('C:\\Users\\asi\\Downloads\\OTB-6.4.0-Win64\\bin')
sys.path.append(
'C:\\Users\\asi\\Downloads\\OTB-6.4.0-Win64\\lib\\otb\\applications')
sys.path.append('C:\\Users\\asi\\Downloads\\OTB-6.4.0-Win64\\lib\\python3')
I Don't know if it is the correct way to add these paths..
Then, when I want to import the otbApplication, I got the same error as
Brandon Moore :
ImportError: DLL load failed: Le module spécifié est introuvable.
How can I make sure that the env (the otb env?) is carried over to the
ipython kernel
Thank you,
Akila
Le vendredi 25 mai 2018 17:35:10 UTC+2, Poughon Victor a écrit :
>
> Hi and sorry for the late reply,
>
>
>
> This error is typically a problem of PYTHONPATH. Can you type:
>
>
>
> print(sys.path)
>
>
>
> in your notebook and check that the OTB installation path is there? If
> not, make sure that you are setting it correctly when launching the
> notebook. Just having the export line in otbenv file is not sufficient. You
> need to make sure that the env is carried over to the ipython kernel.
>
>
>
> Victor Poughon
>
>
>
> *De :* otb-...@googlegroups.com [mailto:
> otb-...@googlegroups.com ] *De la part de* swiky aquilla
> *Envoyé :* mercredi 23 mai 2018 11:21
> *À :* otb-users <otb-...@googlegroups.com >
> *Objet :* [otb-users] Windows : install OTB with Python
>
>
>
> 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 *()*
> *>* *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 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.
>
--
--
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.