Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • otb otb
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 206
    • Issues 206
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Main Repositories
  • otbotb
  • Issues
  • #1540
Closed
Open
Issue created Mar 23, 2018 by Manuel Grizonnet@mgrizonnetDeveloper

Python3 OTB application bindings available in the OTB package don't work on Linux

Description

Error with the OTB Python3 bindings using the OTB standalone installer

Steps to reproduce

Python3 bindings are not working on my Linux system using the OTB standalone package. There is an error in load_dynamic method when I try to import otbApplication. Note that it works with Python 2.7 (in my case 2.7.12)

Step to reproduce and error message:

source otbenv.profile python3

import otbApplication Traceback (most recent call last): File "", line 1, in File "/home/grizonnetm/software/OTB-6.4.0-Linux64/lib/python/otbApplication.py", line 28, in _otbApplication = swig_import_helper() File "/home/grizonnetm/software/OTB-6.4.0-Linux64/lib/python/otbApplication.py", line 24, in swig_import_helper _mod = imp.load_module('_otbApplication', fp, pathname, description) File "/usr/lib/python3.5/imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "/usr/lib/python3.5/imp.py", line 342, in load_dynamic return _load(spec) ImportError: dynamic module does not define module export function (PyInit__otbApplication)

Configuration information

Ubuntu 14.04 OTB 6.4.0 (binary package 64b) Python 3.5.2 (default, Nov 23 2017, 16:37:01) [GCC 5.4.0 20160609] on linux

Edited Mar 23, 2018 by Manuel Grizonnet
Assignee
Assign to
Time tracking