[Rtk-users] Python terminal closes unexpectedly when calling rtk functions

Simon Rit simon.rit at creatis.insa-lyon.fr
Thu Nov 2 17:20:41 CET 2023


Hi,
Can you list your itk packages with the corresponding versions (pip list |
grep itk)? 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.
Thanks for the report,
Simon

On Thu, Nov 2, 2023 at 3:41 PM Valentin Hamaide <
Valentin.Hamaide at iba-group.com> wrote:

> Hello,
>
>
>
> I am facing some problems to run rtk with python (both cpu and gpu
> version) on windows.
>
> Using a new conda environment:
>
>                 conda create --name test_rtk_cpu python=3.9 #installs
> python3.9.16
>
>                 conda activate test_rtk_cpu
>
>                 pip install itk-rtk
>
>
>
> When I try to run a few lines from a python terminal, e.g.:
>
> >>> import itk
>
> >>> from itk import RTK as rtk
>
> >>> CPUImageType = rtk.Image[itk.F,3]
>
>
>
> 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).
>
> I have similar issues with the GPU version (pip install itk-rtk-cuda116),
> i.e. sometimes it works sometimes it does not.
>
> 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.
>
>
>
> Any idea why and how to solve this?
>
>
>
> Best,
>
> Valentin
> _______________________________________________
> Rtk-users mailing list
> rtk-users at openrtk.org
> https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20231102/7a0aebb6/attachment.htm>


More information about the Rtk-users mailing list