<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" 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=utf-8">
<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:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Calibri",sans-serif;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:12.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Python -m pip install itk <o:p>
</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Python -m pip install itk-rtk<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I verified I could import both packages, and I then attempted to run FirstReconstruction.py, which is part of the RTK repo.
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I got a lazy loading error:<br>
```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">itkPointSetD3 not loaded from module ITKRegistrationCommon because of exception:<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">module 'itk.ITKRegistrationCommonPython' has no attribute 'itkPointSetD3'<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Traceback (most recent call last):<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "FirstReconstruction.py", line 19, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> geometry = rtk.ThreeDCircularProjectionGeometry.New()<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkLazy.py", line 52, in __getattribute__<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> itkBase.LoadModule(module, namespace)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkBase.py", line 99, in LoadModule<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> module = loader.load(swig_module_name)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itkBase.py", line 220, in load<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> module.__loader__.exec_module(module)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "<frozen importlib._bootstrap_external>", line 728, in exec_module<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\RTKPython.py", line 119, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from itkFixedArrayRTKPython import *<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\Configuration\..\itkFixedArrayRTKPython.py",<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">line 106, in <module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> import pyBasePython<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> File "C:\Users\amark\Miniconda3\envs\mi\lib\site-packages\itk\Configuration\..\pyBasePython.py", line 8, in<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><module><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> from . import _ITKPyBasePython<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">ImportError: attempted relative import with no known parent package<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">```<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Andrew<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>