Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upITK Python 3 compatibility issue? #428
Comments
fbudin69500
added
the
area:Python wrapping
label
Jan 17, 2019
This comment has been minimized.
This comment has been minimized.
@thewtex Any idea how to call the code that should fail? |
This comment has been minimized.
This comment has been minimized.
@fbudin69500 not sure offhand how to invoke it. But, we should be should be using the standard library module import functions. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
fbudin69500 commentedJan 17, 2019
Description
itk Python calls
execfile
in itkBase.py even if ITK is run with Python 3. This should fail as this function does not exist with Python 3, but I haven't found an case in which the piece of code that would create the issue is called.https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itkBase.py#L94-L98
The issue would be simple to solve as it has already been solve in other locations in the same file:
https://github.com/InsightSoftwareConsortium/ITK/blob/master/Wrapping/Generators/Python/itkBase.py#L282-L286
Maybe the section of the code calling
execfile
with Python 3 has previously been overlooked.