For few days now, I have tried to setup the python interface for OTB. Every time I try to run “import otbApplication” from my python shell, I get the error “No module named ‘otbApplication’”.
I have successfully built and compiled the otb from the repo as seen below:
[ 98%] Performing install_copyright step for ‘OTB’
[ 98%] Completed ‘OTB’
[100%] Built target OTB
I have also made sure to set the right environment variables according to this link by putting the following in my .profile
I also tried another alternative of setting the OTB_APPLICATION_PATH and PYTHONPATH in the “/home/otb/Packaging/Files/otbenv.profile” file after which I source it but it’s same error still.
I have been on this for days and it’s getting quite frustrating, not sure what to do anymore or figure out what I’m missing, searched online and couldn’t find anything useful that can help. I’ll really appreciate any insights on what else I can try. Thanks