[ITK] [ITK-users] Itk, python and pyinstaller

michkapopoff at gmail.com michkapopoff at gmail.com
Thu Feb 26 16:26:39 EST 2015


Hi 

I tried to use pyinstaller 1 or 2 years ago to install ITK with one of my apps, but it never worked.
Pyinstaller has a hook system to add dependencies, so you can update the itk hook to make it work.
Still, I did not find enough documentation or examples to make it work and did not invest more time
to read pyinstaller’s source code. It’s maybe complicated because it implies moving libs and stuff around …

But it would be very nice if it worked. Maybe somebody here could give a try.

Michka

> On 26 Feb 2015, at 15:59, PmB <peter.bloomfield at camhpet.ca> wrote:
> 
> Hi,
> 
> I have tried this to the pyinstaller list, and it was suggested I tried here.
> 
> I am working on a linux box using ITK V4.7.1 within a python script, which executes without error.
> However, when I build an executable with pyinstaller, on execution I get the following error
> 
>     Information
>         Filename : junk.img
>     Traceback (most recent call last):
>       File "Segment_Image.py", line 97, in <module>
>         image_type = itk.Image[itk.F, 3]
>     NameError: name 'itk' is not defined
> 
> I tried
>     python pyinstaller.py --hidden-import=itk Segment_Image.py
> but during the build I get the message
>     52820 INFO: Hidden import 'itk' has been found otherwise
> 
> Can anyone point me in the direction to resolve this. 
> 
> Thanks
> 
> Peter
> _____________________________________
> Powered by www.kitware.com
> 
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> 
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.php
> 
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
> 
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/insight-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150226/5b9c8c3b/attachment.html>


More information about the Community mailing list