You must be missing the OTB_APPLICATIONS_PATH environment variable. How
did you install OTB ?
Regards,
Julien
Le 04/04/2017 à 12:09, M E C a écrit :
Hi there,
So I am trying to use otb from Python in Windows 7 and I'm not able to
do it. I guess it must be an installation error.
I copied the example
from https://www.orfeo-toolbox.org/CookBook/OTB-Applications.html#using-the-python-interface,
that starts with the lines:
from sys import argv
import otbApplication
print "Available applications : "
print str( otbApplication.Registry.GetAvailableApplications() )
app = otbApplication.Registry.CreateApplication("Smoothing")
print app.GetParametersKeys()
It prints "Available applications :" but then only "()"
And I get the following error:
Traceback (most recent call last):
File "C:\Users\user\Desktop\Soils\Exampleotb.py", line 21, in
<module>
print app.GetParametersKeys()
AttributeError: 'NoneType' object has no attribute 'GetParametersKeys'
It must be something simple but I don't see it. Any clue, please?
I am using OTB 10.1 and Linux 2.7.13 for win64
Thank you!
--
--
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]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
Julien MICHEL
CNES - DSO/SI/2A
--
--
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.