Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S Slicer
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 40
    • Merge requests 40
  • 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
  • Sam Horvath
  • Slicer
  • Merge requests
  • !945

ENH: skip PythonQt imports in non-embedded Python interpreter

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Isaiah requested to merge github/fork/ihnorton/safe_import_realpython into master May 10, 2018
  • Overview 6
  • Commits 1
  • Pipelines 0
  • Changes 2

This allows to import slicer when running Slicer's python as a stand-alone executable, by avoiding the segfault while attempting to initialize PythonQt (during Qt library self-registration).

concretely:

$ source /tmp/s5env # from launcher-dump-env... $ /opt/bld/s5nj/python-install/bin/python

In [1]: import slicer Detected non-embedded Python interpreter. Skipping module 'qMRMLWidgetsPythonQt' Detected non-embedded Python interpreter. Skipping module 'qSlicerBaseQTCorePythonQt' Detected non-embedded Python interpreter. Skipping module 'qSlicerBaseQTGUIPythonQt' Detected non-embedded Python interpreter. Skipping module 'qSlicerBaseQTAppPythonQt' Detected non-embedded Python interpreter. Skipping module 'qSlicerBaseQTCLIPythonQt'

In [2]:

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/ihnorton/safe_import_realpython