Opened 11 years ago

Closed 13 months ago

#39671 closed enhancement (fixed)

orfeotoolbox : update python variant

Reported by: julien.malik@… Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: orfeotoolbox

Description (last modified by larryv (Lawrence Velázquez))

The python variant compiles and install a new module called "otbApplication".

The module "otbApplication" loads plugins currently located in /usr/lib/otb/applications. They are named 'otbapp_Something.dylib'.

For them to be properly detected and loaded, the env var ITK_AUTOLOAD_PATH must be set to /usr/lib/otb/applications before loading python. Not convenient at all. To ease the process, I updated the debian package recently to :

  • install in a subdir of "site-package" with OTB_INSTALL_PYTHON_DIR, and not in site-package directly
  • create an __init__.py at install time which import the right thing and then set up the env var.

Something similar shall be done in the Portfile.

The __init__.py file content can be found here: http://hg.orfeo-toolbox.org/OTB-DevUtils/file/tip/Packaging/ubuntu/OTB/debian/python-otb.postinst

Change History (3)

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to stromnov@…
Version: 2.1.3

comment:2 Changed 11 years ago by julien.malik@…

To test the fix, this :

python -c "import otbApplication;print otbApplication.Registry.GetAvailableApplications()"

should output a non-empty list of strings.

Last edited 9 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:3 Changed 13 months ago by nilason (Nicklas Larsson)

Resolution: fixed
Status: newclosed

In d5ca15d0e3220efedc80e7e35d9b72fac114b7f6/macports-ports (master):

orfeotoolbox: update to version 8.2.1 and general overhaul

The qt4 variant is not upgraded and removed. The project aims to
remove qt as gui for version 9, replaced by QGIS.

Closes #39671
Closes #43410
Closes #45918
Closes #47523
Closes #51435
Closes #62754

Note: See TracTickets for help on using tickets.