<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I was indeed in 5.4rc2:<o:p></o:p></p>
<p class="MsoNormal">itk 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-core 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-filtering 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-io 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-numerics 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-registration 5.4rc2<o:p></o:p></p>
<p class="MsoNormal">itk-rtk 2.5.0<o:p></o:p></p>
<p class="MsoNormal">itk-segmentation 5.4rc2<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Changing to 5.4rc1 seems to solve the issue, thanks!<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Best,<o:p></o:p></p>
<p class="MsoNormal">Valentin<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b>From:</b> Simon Rit <simon.rit@creatis.insa-lyon.fr> <br>
<b>Sent:</b> Thursday, November 2, 2023 5:21 PM<br>
<b>To:</b> Valentin Hamaide <Valentin.Hamaide@iba-group.com><br>
<b>Cc:</b> rtk-users@openrtk.org<br>
<b>Subject:</b> Re: [Rtk-users] Python terminal closes unexpectedly when calling rtk functions<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Hi,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Can you list your itk packages with the corresponding versions (<span style="font-family:"Courier New"">pip list | grep itk</span>)? ITK has recently released new packages and the "old" RTK packages might be incompatible... To avoid this,
you can specify that the previous RC version of ITK should be used, i.e. 5.4rc1. Can you confirm that this is the problem? In which case, I'll quickly work on new RTK packages.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Thanks for the report,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Simon<o:p></o:p></p>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal">On Thu, Nov 2, 2023 at 3:41 PM Valentin Hamaide <<a href="mailto:Valentin.Hamaide@iba-group.com">Valentin.Hamaide@iba-group.com</a>> wrote:<o:p></o:p></p>
</div>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm">
<div>
<div>
<div>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Hello,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I am facing some problems to run rtk with python (both cpu and gpu version) on windows.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Using a new conda environment:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> conda create --name test_rtk_cpu python=3.9 #installs python3.9.16<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> conda activate test_rtk_cpu<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> pip install itk-rtk<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">When I try to run a few lines from a python terminal, e.g.:<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">>>> import itk<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">>>> from itk import RTK as rtk<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">>>> CPUImageType = rtk.Image[itk.F,3]<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The third line runs for about 10 seconds and then my python terminal closes unexpectedly without any error message. What is even weirder, is that sometimes it works, sometimes it
doesn’t (most of the time does not work).<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">I have similar issues with the GPU version (pip install itk-rtk-cuda116), i.e. sometimes it works sometimes it does not.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">The problem is not strictly related to the 3rd line, any function which calls rtk (e.g. rtk.ThreeDCircularProjectionGeometry.New(), rtk.CudaImage, etc.) causes the same issue.<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Any idea why and how to solve this?
<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Best,<o:p></o:p></p>
<p class="MsoNormal" style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto">Valentin<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
Rtk-users mailing list<br>
<a href="mailto:rtk-users@openrtk.org" target="_blank">rtk-users@openrtk.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__www.creatis.insa-2Dlyon.fr_mailman_listinfo_rtk-2Dusers&d=DwMFaQ&c=thdlSQUKcAunxaltNxOnpA&r=QBZMRacy5xgIfg8qNKXRk63XP4TjIZcbF_0IESYIH4U&m=N1XIMOloz-sIMeX2BqO3gRaKu-0v4GYdgFH6FsiH56zn4RRzOF_7pDGMNhikhjhv&s=fl1giprh2EIgV3heUce7dPDFntszFxSYu4sHeqwLue8&e=" target="_blank">https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users</a><o:p></o:p></p>
</div>
</blockquote>
</div>
</div>
</body>
</html>