<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=us-ascii">
<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;
        mso-ligatures:standardcontextual;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        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="#0563C1" vlink="#954F72" 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 am facing some problems to run rtk with python (both cpu and gpu version) on windows.<o:p></o:p></p>
<p class="MsoNormal">Using a new conda environment:<o:p></o:p></p>
<p class="MsoNormal">                conda create --name test_rtk_cpu python=3.9 #installs python3.9.16<o:p></o:p></p>
<p class="MsoNormal">                conda activate test_rtk_cpu<o:p></o:p></p>
<p class="MsoNormal">                pip install itk-rtk<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When I try to run a few lines from a python terminal, e.g.:<o:p></o:p></p>
<p class="MsoNormal">>>> import itk<o:p></o:p></p>
<p class="MsoNormal">>>> from itk import RTK as rtk<o:p></o:p></p>
<p class="MsoNormal">>>> CPUImageType = rtk.Image[itk.F,3]<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">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">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">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"><o:p> </o:p></p>
<p class="MsoNormal">Any idea why and how to solve this? <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>
</div>
</body>
</html>