[Rtk-users] Itk and rtk python install issues

Andrew Mark amark at magneticinsight.com
Wed Jul 15 17:00:55 EDT 2020


Your direct link to the wheel worked. Thanks very much. The build artifacts page did not have links for me. Perhaps it is a permissions issue. The pre-compiled binaries are very convenient. To include CUDA support, is building from source the only option?

Andrew

From: Simon Rit <simon.rit at creatis.insa-lyon.fr>
Date: Tuesday, July 14, 2020 at 1:05 PM
To: Andrew Mark <amark at magneticinsight.com>
Cc: "rtk-users at public.kitware.com" <rtk-users at public.kitware.com>
Subject: Re: [Rtk-users] Itk and rtk python install issues

I'm not sure I understand what you mean because I can see them. Python 3.7 for windows is here<https://artprodsu6weu.artifacts.visualstudio.com/A7d2c7669-352e-47e7-8df9-5d603d550ccd/1dc6139f-9415-4c33-9ea8-e8992a5f62d3/_apis/artifact/cGlwZWxpbmVhcnRpZmFjdDovL3NpbW9ucml0L3Byb2plY3RJZC8xZGM2MTM5Zi05NDE1LTRjMzMtOWVhOC1lODk5MmE1ZjYyZDMvYnVpbGRJZC82MjEvYXJ0aWZhY3ROYW1lL1dpbmRvd3NXaGVlbHNfMzcteDY00/content?format=file&subPath=%2Fitk_rtk-2.1.0-cp37-cp37m-win_amd64.whl>.

On Tue, Jul 14, 2020 at 9:01 PM Andrew Mark <amark at magneticinsight.com<mailto:amark at magneticinsight.com>> wrote:
Thanks for the quick reply. I unfortunately see no link to download the build artifacts.

Andrew

From: Simon Rit <simon.rit at creatis.insa-lyon.fr<mailto:simon.rit at creatis.insa-lyon.fr>>
Date: Tuesday, July 14, 2020 at 12:16 PM
To: Andrew Mark <amark at magneticinsight.com<mailto:amark at magneticinsight.com>>
Cc: "rtk-users at public.kitware.com<mailto:rtk-users at public.kitware.com>" <rtk-users at public.kitware.com<mailto:rtk-users at public.kitware.com>>
Subject: Re: [Rtk-users] Itk and rtk python install issues

Hi,
I think the current RTK package on pypi is outdated wrt to ITK's. Either you use ITK v5.0.1 or you use the RTK package compiled by the CI. I think this one<https://dev.azure.com/simonrit/RTK/_build/results?buildId=621&view=artifacts&type=publishedArtifacts> for example works. We will upload a new version after the ITK v5.1.1 release planned for the end of this week.
Simon

On Tue, Jul 14, 2020 at 5:49 PM Andrew Mark <amark at magneticinsight.com<mailto:amark at magneticinsight.com>> wrote:
Hello,

I am an ITK and RTK beginner. I am trying to use itk-rtk (Python). Before attempting to build from source, I decided to try the precompiled binaries. I set up a clean environment with python3.7 installed (via Miniconda) on Windows 10 and ran the following:

Python -m pip install itk
Python -m pip install itk-rtk

I verified I could import both packages, and I then attempted to run FirstReconstruction.py, which is part of the RTK repo.

I got a lazy loading error:
```
itkPointSetD3 not loaded from module ITKRegistrationCommon because of exception:
module 'itk.ITKRegistrationCommonPython' has no attribute 'itkPointSetD3'
Traceback (most recent call last):
  File "FirstReconstruction.py", line 19, in <module>
    geometry = rtk.ThreeDCircularProjectionGeometry.New()
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkLazy.py", line 52, in __getattribute__
    itkBase.LoadModule(module, namespace)
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkBase.py", line 99, in LoadModule
    module = loader.load(swig_module_name)
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkBase.py", line 220, in load
    module.__loader__.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\RTKPython.py", line 119, in <module>
    from itkFixedArrayRTKPython import *
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\Configuration\..\itkFixedArrayRTKPython.py",
line 106, in <module>
    import pyBasePython
  File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\Configuration\..\pyBasePython.py", line 8, in
<module>
    from . import _ITKPyBasePython
ImportError: attempted relative import with no known parent package
```

Does anyone have any insight? Once I get this working, could I expect the precompiled binaries to allow me to run the CUDA accelerated version of this example?

Thanks!

Andrew

_______________________________________________
Rtk-users mailing list
Rtk-users at public.kitware.com<mailto:Rtk-users at public.kitware.com>
https://public.kitware.com/mailman/listinfo/rtk-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/rtk-users/attachments/20200715/e365e9a2/attachment-0001.htm>


More information about the Rtk-users mailing list