<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi <div class=""><br class=""></div><div class="">I tried to use pyinstaller 1 or 2 years ago to install ITK with one of my apps, but it never worked.</div><div class="">Pyinstaller has a hook system to add dependencies, so you can update the itk hook to make it work.</div><div class="">Still, I did not find enough documentation or examples to make it work and did not invest more time</div><div class="">to read pyinstaller’s source code. It’s maybe complicated because it implies moving libs and stuff around …</div><div class=""><br class=""></div><div class="">But it would be very nice if it worked. Maybe somebody here could give a try.</div><div class=""><br class=""></div><div class="">Michka</div><div class=""><br class=""><div class=""><div><blockquote type="cite" class=""><div class="">On 26 Feb 2015, at 15:59, PmB <<a href="mailto:peter.bloomfield@camhpet.ca" class="">peter.bloomfield@camhpet.ca</a>> wrote:</div><br class="Apple-interchange-newline"><div class="">
<meta http-equiv="content-type" content="text/html; charset=utf-8" class="">
<div bgcolor="#FFFFFF" text="#000000" class="">
<font size="-1" class="">Hi,<br class="">
<br class="">
</font>I have tried this to the pyinstaller list, and it was
suggested I tried here.<br class="">
<br class="">
I am working on a linux box using ITK V4.7.1 within a python script,
which executes without error.<br class="">
However, when I build an executable with pyinstaller, on execution I
get the following error<br class="">
<br class="">
Information<br class="">
Filename : junk.img<br class="">
Traceback (most recent call last):<br class="">
File "Segment_Image.py", line 97, in <module><br class="">
image_type = itk.Image[itk.F, 3]<br class="">
NameError: name 'itk' is not defined<br class="">
<br class="">
I tried<br class="">
python pyinstaller.py --hidden-import=itk Segment_Image.py<br class="">
but during the build I get the message<br class="">
52820 INFO: Hidden import 'itk' has been found otherwise<br class="">
<br class="">
Can anyone point me in the direction to resolve this. <br class="">
<br class="">
Thanks<br class="">
<br class="">
Peter<br class="">
</div>
_____________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at<br class=""><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Kitware offers ITK Training Courses, for more information visit:<br class="">http://www.kitware.com/products/protraining.php<br class=""><br class="">Please keep messages on-topic and check the ITK FAQ at:<br class="">http://www.itk.org/Wiki/ITK_FAQ<br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class="">http://public.kitware.com/mailman/listinfo/insight-users<br class=""></div></blockquote></div><br class=""></div></div></body></html>