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

Valentin Hamaide Valentin.Hamaide at iba-group.com
Thu Nov 2 22:09:01 CET 2023


Hello,

I was indeed in 5.4rc2:
itk              5.4rc2
itk-core         5.4rc2
itk-filtering    5.4rc2
itk-io           5.4rc2
itk-numerics     5.4rc2
itk-registration 5.4rc2
itk-rtk          2.5.0
itk-segmentation 5.4rc2

Changing to 5.4rc1 seems to solve the issue, thanks!

Best,
Valentin

From: Simon Rit <simon.rit at creatis.insa-lyon.fr>
Sent: Thursday, November 2, 2023 5:21 PM
To: Valentin Hamaide <Valentin.Hamaide at iba-group.com>
Cc: rtk-users at openrtk.org
Subject: Re: [Rtk-users] Python terminal closes unexpectedly when calling rtk functions

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<mailto: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<mailto:rtk-users at openrtk.org>
https://www.creatis.insa-lyon.fr/mailman/listinfo/rtk-users<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=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20231102/80c981ec/attachment-0001.htm>


More information about the Rtk-users mailing list