Hello,
I am new to ITK and RTK and I'm trying to use the itk-rtk python package. I set
up a new environment with python 3.7 (with Conda) on Windows 10 and ran:
Pip install itk-rtk
I could import both packages, but I got the following error when I ran the
example FirstReconstruction.py:
''
Traceback (most recent call last):
File "D:\Program
files\RTK-master\examples\FirstReconstruction\FirstReconstruction.py", line 14,
in <module>
geometry = rtk.ThreeDCircularProjectionGeometry.New()
File "D:\Python\envs\CBreconstruct\lib\site-packages\itkLazy.py", line 52, in
__getattribute__
itkBase.LoadModule(module, namespace)
File "D:\Python\envs\CBreconstruct\lib\site-packages\itkBase.py", line 99, in
LoadModule
module = loader.load(swig_module_name)
File "D:\Python\envs\CBreconstruct\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 "D:\Python\envs\CBreconstruct\lib\site-packages\itk\RTKPython.py", line
119, in <module>
from itkFixedArrayRTKPython import *
File
"D:\Python\envs\CBreconstruct\lib\site-packages\itk\Configuration\..\itkFixedArrayRTKPython.py",
line 106, in <module>
import pyBasePython
File
"D:\Python\envs\CBreconstruct\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 know how to solve this issue?
Thanks
Sincerely,
Margot Bleeker
[cid:[email protected]]
Margot Bleeker, MSc.| PhD student (OiO)
Afdeling Radiotherapie
Locatie AMC | Z1-217 | Meibergdreef 9, 1105 AZ Amsterdam
T: +31 20 566 7974| E: [email protected]
www.amsterdamumc.nl<http://www.amsterdamumc.nl/> |
www.vumc.nl<http://www.vumc.nl/> / www.amc.nl<http://www.amc.nl/>
______________________________________________________
VUmc disclaimer : www.vumc.nl/disclaimer
AMC disclaimer : www.amc.nl/disclaimer
_______________________________________________
Rtk-users mailing list
[email protected]
https://public.kitware.com/mailman/listinfo/rtk-users