Hi,
I opened a discussion on the PythonQt forum:
https://sourceforge.net/p/pythonqt/discussion/631392/thread/8b6e2e4a/
They agreed to integrate part of my patch, but that will not happen soon.
For the time being, you can pass down the PythonQt_URL parameter to CTK
that points to a tarball from my patched version. (See my previous e-mail.)
The other possible solution would be change the MitkPythonService module in
a way that it does not call PythonQt functions from statically initialised
code. I guess, the module activator Load function is called while the
module is being loaded and not right after that. I do not know if this is
feasible.
A third solution could be to pre-load the PythonQt library what I have not
tried.
MITK 2015.05.2 is not affected, because the MitkPythonService module was
separated out to to an autoload module after the release. See this MITK bug:
http://bugs.mitk.org/show_bug.cgi?id=19066
So, it is very likely broken in your master.
Regards,
Miklos
On 9 February 2016 at 18:28, Miklos Espak <[email protected]> wrote:
> It is a bug in PythonQt. I sent a pull request:
>
> https://github.com/commontk/PythonQt/pull/35
>
> You might want to follow this issue.
>
> JC asks for a sample app to reproduce the bug.
>
> I am surprised that this did not happen for you recently. Maybe you use a
> different VS version? We tried VS2012. Did you test it on Windows?
>
> Miklos
>
>
>
>
> On 2 February 2016 at 15:42, Goch, Caspar Jonas <[email protected]
> > wrote:
>
>> Hi Matt,
>>
>>
>>
>> I had a similar issue when building the installer back in December
>> (without the python plugin though). I “solved” it by switching the
>> MITK_BUILD_CONFIGURATION to WorkbenchRelease, afterwards it worked fine,
>> even if I changed it back to Custom. Presumably we are missing a dependency
>> somewhere.
>>
>>
>>
>> It is on my should-take-a-look-at-it-list, but I do not know how soon I
>> will have the time to do so.
>>
>>
>>
>> Best,
>>
>> Caspar
>>
>>
>>
>> *Von:* Clarkson, Matt [mailto:[email protected]]
>> *Gesendet:* Montag, 1. Februar 2016 08:58
>> *An:* MITK
>> *Betreff:* [mitk-users] Can't run Python plugin
>>
>>
>>
>> Hi there,
>>
>>
>>
>> we build and package the MITK Python plugin (thanks!) in our app.
>> However, on Windows, I'm seeing the error message below. It looks to me
>> like all libraries are packaged correctly and are in the correct location.
>> Does anyone else see this? From my preliminary googling, it could be
>> a static-initialiser problem. Various posts suggest turning Windows DEP
>> off, and i just checked on this machine, and it is already off.
>>
>>
>>
>> Please can anyone help?
>>
>>
>>
>> Thanks
>>
>>
>>
>> Matt
>>
>>
>>
>>
>>
>> 202352574/data/9/mitk-0.log
>>
>> 0.59 BlueBerry: BlueBerry Workbench ready
>>
>> 7.21 core.mod.core.act WARNING: In `anonymous-namespace'::load_impl at
>> C:\matt\r
>>
>> 16.1.0\MITK\src\Modules\CppMicroServices\core\src\util\usUtils.cpp:90 :
>> Invalid
>>
>> access to memory location.
>>
>> 7.23 core.mod.core.act WARNING: In us::AutoLoadModulesFromPath at
>> C:\matt\r16.1.
>>
>> 0\MITK\src\Modules\CppMicroServices\core\src\util\usUtils.cpp:176 :
>> Auto-loading
>>
>> of module C:\Program Files\NifTK
>> 16.1.0\bin\MitkPython\MitkPythonService.dll fa
>>
>> iled.
>>
>> 7.25 BlueBerry: LOG: Unable to create view ID org.mitk.views.python: Part
>> initia
>>
>> lization error: Default constructed ServiceReference is not a valid input
>> to Get
>>
>> Service()
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
>> _______________________________________________
>> mitk-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/mitk-users
>>
>>
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users