Hi Alexander,

When editing otbenv you need to set the path to the right bindings.
Do not mind the error as it will always occur if you are not using Python 2.
In short you should have :
PYTHONPATH=/Users/myuseraccount/anaconda3/python.app/Contents/MacOS/python:/path/to/OTB/lib/python3/ (path to python executable then path to bindings)
Then you will be able to import OTB in your Python code.
Hope this will work.

Antoine
On 11/05/2018 04:12, Alexander T wrote:
I just decided to give orfeo a try through Python 3. So I downloaded OTB-6.4.0-Darwin64.run as per instructions. However, I get:

*****Error occurred during installation******
OTB python bindings requires python2.6 or python2.7 but current detected python version is 3.6.3
If you have python2.6 or Python2.7 installed in your system
You should set OTB_PYTHON_EXE and re-run this installation script.
eg: OTB_PYTHON_EXE=/path/to/python2.7 ./OTB-X.Y-Linux64.run

I edited otbenv.profile in OTB-6.4.0-Darwin64 and changed "PYTHONPATH" to "/Users/myuseraccount/anaconda3/python.app/Contents/MacOS/python" and saved the file, but still getting this same error. Does anyone know how to install these bindings?
--
--
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 <mailto:otb-users+unsubscr...@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.

Reply via email to