-
Notifications
You must be signed in to change notification settings - Fork 634
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
Make PyIlmBase compatible with Python 3.x #224
Comments
kdt3rd
added a commit
to kdt3rd/openexr
that referenced
this issue
Jul 22, 2019
…pass under python3 Previously had fixed print functions, this pass converts the following: - integer division changed in python3 3/2 -> 1.5, have to use 3//2 to get an int - xrange is no more, just use range - integer type coersion for division not working, force type constructor Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
DominicJacksonBFX
pushed a commit
to boris-fx/mocha-openexr
that referenced
this issue
Jun 22, 2022
…pass under python3 Previously had fixed print functions, this pass converts the following: - integer division changed in python3 3/2 -> 1.5, have to use 3//2 to get an int - xrange is no more, just use range - integer type coersion for division not working, force type constructor Signed-off-by: Kimball Thurston <kdt3rd@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With Python 2 being phased out in the near future (within 3 years), it doesn't make sense for current software to be aiming only at Python 2. PyIlmBase should build on Python 3.x.
PYTHON=/usr/bin/python3.5 ./configure --with-boost-python-libname=libboost_python-py35
doesn't work on Ubuntu 16.10, and fails with this error:Using
print
statements is not supported in Python 3 any more. Python 2 (2.6+) can even be told to useprint()
functions by includingfrom __future__ import print_function
at the top of the Python file.The text was updated successfully, but these errors were encountered: