New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ITK Python 3 compatibility issue? #428

Open
fbudin69500 opened this Issue Jan 17, 2019 · 2 comments

Comments

Projects
None yet
2 participants
@fbudin69500
Copy link
Contributor

fbudin69500 commented Jan 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.

@fbudin69500

This comment has been minimized.

Copy link
Contributor Author

fbudin69500 commented Jan 17, 2019

@thewtex Any idea how to call the code that should fail?

@thewtex

This comment has been minimized.

Copy link
Member

thewtex commented Jan 18, 2019

@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