Page MenuHomePhabricator

Python wrapping does not work in MITK master
Closed, ResolvedPublic

Description

On Windows with the current MITK master, Python support is non-functional.

On Linux, Ubuntu 11.04, the Python superbuild support is not fully working.

The org.mitk.gui.qt.pythonconsole plug-in has several code issues.

Event Timeline

I pushed branch bug-10825-fix-python-wrapping with a first set of fixes.

@Michi: Could you please have a look at the "import vtk" and "import cv" problems on Linux? Also, the mitk::Image conversion does not work properly on Linux too.

jap, i`ll work on it friday.thx for the push

gccxml error on ubuntu 11.10. continue integration on windows machine

found a solution for failing cableswig build on ubuntu 11.10: the system cableswig seems to work fine

Current condition: CMake Configure works, but Generate throws following error:

CMake Error at Wrapping/CSwig/CMakeLists.txt:434 (add_library):

Cannot find source file:

  ~/MITK/Wrapping/CSwig/Core/wrap_MitkPython.cxx

Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
.hxx .in .txx

Call Stack (most recent call first):

Wrapping/CSwig/Core/CMakeLists.txt:10 (MITK_WRAP_LIBRARY)

New remote branch pushed: bug-10825-python-wrapping-rework

[61ce4f]: Merge branch 'bug-10825-python-wrapping-rework'

Merged commits:

2013-03-13 10:49:15 Michael Mueller [d3873c]
finally got most of the things working,ready to merge


2013-03-12 11:18:21 Michael Mueller [04ba14]
cleaned cmake code, fixed bug in var stack


2013-02-22 13:43:10 Michael Mueller [5d6d4f]
removed finding python libs in superbuild process


2013-02-20 13:51:55 Michael Mueller [aad011]
corrected initialization and deinitialization of python wrapping


2013-02-20 11:04:01 Michael Mueller [145a10]
added search of python libs directly in superbuild, passed to VTK ITK and OpenCv
removed some itk wrapping types (built took far too long)
in pythonservice: use only slashes as path separators


2013-02-18 17:00:39 Michael Mueller [c28ed1]
added script execute method in service, played around with paths etc


2013-02-14 11:16:21 Michael Mueller [ceb946]
removed typo


2013-02-13 23:24:04 Michael Mueller [e3ceee]
adapted python path for windows


2013-02-13 22:46:48 Michael Mueller [d5c9f7]
added pythonqt path to mitk_runtime


2013-02-13 22:24:54 Michael Mueller [341053]
added first python test case


2013-02-13 22:13:44 Michael Mueller [7eb1d8]
moved pythonservice to mitkext


2013-02-13 19:02:13 Michael Mueller [309b15]
added slides documentation


2013-02-13 19:01:04 Michael Mueller [f5b4d9]
further work, numpy error


2013-02-13 14:41:00 Michael Mueller [9020dd]
finished with snippets


2013-02-12 22:30:27 Michael Mueller [54df7a]
added vtk surface conversion


2013-02-12 17:24:50 Michael Mueller [615de9]
nearly finished with python snippets


2013-02-11 22:13:06 Michael Mueller [74713f]
worked on python snippets


2013-02-10 16:21:28 Michael Mueller [163581]
modified ctk args for superbuild


2013-02-09 22:27:37 Michael Mueller [e50e18]
added python check for corresponding module


2013-02-09 17:33:06 Michael Mueller [d51a48]
added cableswig again (necessary dependency)


2013-02-08 16:14:14 Michael Mueller [ec8d16]
added script editor and not working snippet tab


2013-02-08 11:27:35 Michael Mueller [ab630c]
added more wrapping cmake flags to itk wrapping


2013-02-07 09:09:12 Michael Mueller [0892d7]
added opencv conversion


2013-02-06 19:18:48 Michael Mueller [265e04]
removed cableswig from Cmake


2013-02-06 19:09:05 Michael Mueller [d88be3]
added unsigned char wrapping option to ITK wrapping


2013-02-06 19:06:38 Michael Mueller [4e5871]
cleaned CMAKE code, removed python console plugin and wrapping dir


2013-02-06 18:57:20 Michael Mueller [86fb26]
when dropping an image the image is always named with a fixed name


2013-02-06 18:33:53 Michael Mueller [e505d7]
crash ibn python service


2013-02-06 18:19:39 Michael Mueller [d69d2f]
created module, compiles


2013-02-06 15:57:30 Michael Mueller [35aff4]
created module and python service


2013-02-06 13:46:10 Michael Mueller [667ac2]
im- and export works, todo: rework


2013-02-05 18:47:52 Michael Mueller [1f535f]
import works for python console now


2013-02-05 16:58:16 Michael Mueller [019033]
made python variable stack work


2013-02-05 14:50:16 Michael Mueller [2abffd]
importin ITK works


2013-02-05 12:55:29 Michael Mueller [6456d0]
finished work package: create new python bundle, setup console to work with python


2013-01-18 13:03:49 Michael Mueller [1bc6a9]
python compiling again on ubuntu

New remote branch pushed: bug-10825-python-wrapping-rework-comp

[9f0c85]: Merge branch 'bug-10825-python-wrapping-rework-comp'

Merged commits:

2013-03-13 17:13:40 Michael Mueller [d80f21]
COMP: restored dicom resources file

closing super bug for feature development.
open bugs for issues