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

Valentin Hamaide Valentin.Hamaide at iba-group.com
Thu Nov 2 15:35:40 CET 2023


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.creatis.insa-lyon.fr/pipermail/rtk-users/attachments/20231102/d212fc56/attachment.htm>


More information about the Rtk-users mailing list