'Zehui Ji' via otb-users
2018-06-23 14:48:08 UTC
Hi,
I just begin using OTB and may have some silly questions. I am using MacOS High Sierra version10.13.5 (17F77).
After I downloaded OTB-6.4.0-Darwin64.run and extracted it following instructions from OTB cookbook. I first got this error:
*****Error occurred during installation******
OTB python bindings requires python2.6 or python2.7 but current detected python version is 3.6.4
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
Then, I found a solution post in this group:
https://groups.google.com/forum/#!topic/otb-users/4XvK-29nE4o
"
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
"
I followed the solution and modified the otbenv.profile to bind OTB to python3. Then I added all paths in otbenv.profile to ~/.bash_profile and restart my mac.
Here, I thought I have finished the installation. So, I tried to write some python code in jupyter notebook to test. However, when I run the import otbApplication, it poped up an error as following:
ImportError: dlopen(/Users/jibusi/OTB-6.6.0-Darwin64/lib/python3/_otbApplication.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.5/Python
Referenced from: /Users/jibusi/OTB-6.6.0-Darwin64/lib/python3/_otbApplication.so
Reason: image not found
I thought it may be because I didn't install python3.5 in my mac. So, I install python3.5 via https://www.python.org/downloads/release/python-350/. But when I tried to run again, the kernel just died. I have no ideas.
Can someone help me out? I have spent half a day to install it.
Thanks.
--
--
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.
I just begin using OTB and may have some silly questions. I am using MacOS High Sierra version10.13.5 (17F77).
After I downloaded OTB-6.4.0-Darwin64.run and extracted it following instructions from OTB cookbook. I first got this error:
*****Error occurred during installation******
OTB python bindings requires python2.6 or python2.7 but current detected python version is 3.6.4
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
Then, I found a solution post in this group:
https://groups.google.com/forum/#!topic/otb-users/4XvK-29nE4o
"
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
"
I followed the solution and modified the otbenv.profile to bind OTB to python3. Then I added all paths in otbenv.profile to ~/.bash_profile and restart my mac.
Here, I thought I have finished the installation. So, I tried to write some python code in jupyter notebook to test. However, when I run the import otbApplication, it poped up an error as following:
ImportError: dlopen(/Users/jibusi/OTB-6.6.0-Darwin64/lib/python3/_otbApplication.so, 2): Library not loaded: /Library/Frameworks/Python.framework/Versions/3.5/Python
Referenced from: /Users/jibusi/OTB-6.6.0-Darwin64/lib/python3/_otbApplication.so
Reason: image not found
I thought it may be because I didn't install python3.5 in my mac. So, I install python3.5 via https://www.python.org/downloads/release/python-350/. But when I tried to run again, the kernel just died. I have no ideas.
Can someone help me out? I have spent half a day to install it.
Thanks.
--
--
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.