Are any of your studios prepping or moving to python 3? Would you be ready is maya went to py3? What is holding you back?
we are not, we have been sticking with whatever version maya is using. when maya moves to 3, weâll move to 3.
Same here. Besides the fact that Maya is the anchor, thereâs also the ongoing issue with 3 not providing enough tangible benefits over 3 to justify the costs involved in switching
Weâd do it if maya switched, which as far as I know isnât even on their roadmap for the next couple of years
What they all saidâŚ
We ran through this question earlier this year, Iâd love to move forward because 2.7 is in security fix mode only. But Mayaâs on 2.7 so weâre still anchoring around that.
Staying on what ever maya is on, and even if maya did move, it will be a while till all the pipeline scripts are ported over.
Weâre in the process of moving from 2.6.4 to 3.4. I decided weâd finally crossed some ethereal line where Python 3-specific features in some third-party stuff was looking appealing. We also had a window of opportunity approaching where we could get the work done/tested. So off we went.
We have an embedded interpreter used by most of our large tools plus a standalone Python distribution we also build on-site. They are separate but share our internal libraries and most of the third-party ones we use, so they have to upgrade together. Itâs a slow process mainly because me and the other guy are often putting it on hold for other things.
Actually changing Python code for 3 isnât a big deal, even mountains of it. The 2to3 tool is pretty solid, and has literally saved me days. It was easy to write a couple custom âfixersâ for it as well. If youâre on 2.6 or 2.7 you can generally write very Python 3-compatible code anyway, which has reduced the changes necessary, for sure. The time has gone into upgrading/building/integrating the new releases of 40 or so third-party extensions we use. The big one for us has been wxPython. They rewrote a lot of it for Python 3 and itâs only mostly finished. The incomplete bits havenât actually been an issue, itâs the completed-but-with-rare-bugs parts. When we can focus on it weâve been able to deal with the bugs, but due to competing priorities itâs gone in fits and starts.
Our Maya Python tools are at 2.7.something and have their own build. Itâs insulated from the rest and Iâm not touching that until we have to.
I think at this point, py3 is now standard and writing 2.7 is not as common. Most of the compiled libs have all been migrated up to 3 from what i can tell. As adam said, 2-3 isnât that bad.
We are currently running tools outside of maya on py3 and inside max/maya on 2.7. I have been enforcing the use of some of the future things so folks get in the habit of writing py3 compliant stuff. there is a -3 flag you can add to maya.exe that will print out py3 incompatibilities in your scripts too.
I canât see Ad holding on to 2.7 past 2017. they say 2.7 will be in bug fix mode till 2020, but iâm sure it will be even more stale in a year or so.
I agree with theodox though, itâs a tough sell for little gain.
Any thoughts on this now? I saw this post on the VFX Platform Twitter page:
Python 2.7 support ends in 2020 so we are giving advance notice that the VFX Reference Platform will specify Python 3 for CY2019.
I see them âendingâ support for 2.7 every couple of years, pushed back nearly every time. Could 2020 finally be it? ÂŻ\(ă)/ÂŻ
Weâre also staying in parity with whatever version is bundled with Maya. I also do not know when Autodesk plans on switching, but I actually think itâs not even on their radar.
But if enough devs want Python 3 and voice that to Autodesk, maybe theyâll consider it? Again, ÂŻ\(ă)/ÂŻ.
Edit: itâs hard to do the âshrugâ on here, apparently
2020 is the end of support from python-dev, and they very much seem to be sticking to this timeline.
Paid support will still exist from various vendors, for instance RedHat will continue itâs system python, which is a python2.x on some of their LTS versions.
Autodesk does tend to pay attention to the VFX reference platform, so this will be a strong indication that at least one large block of their customers would like the upgrade.
Itâs hilarious to me I made that reply up there in 2015. Weâre literally just now throwing the switch on our Python 3 upgrade this week.
âŚinstitutional inertia FTWâŚ
oh and shipping
I donât fully understand this question, as far as Python goes I can only see people using it because itâs embedded as a scripting language in popular programs [Maya, Houdini, Nuke, etc] as long as they donât update to 3 then thereâs nothing much we can do.
We code for Python 3.3.5 (Autodesk has FBX Python plugin that is not available any higher â at least the last time I checked) as well as the different point versions of the internal Python that ships with Maya/Max/MB.
There are a lot of tools we develop that artists will call, but donât require interaction with the main program â and we often do calls out to the system Python. PyCharm makes it easy to switch between the Python interpreter. I can dev using MayaPy.exe or the system Python fairly quickly and while there are some differences between versions, PyCharm will lint against 2.7 and 3.3 if that is an issue.
I would like to move forward to an even more recent Python (3.6+) â but my one dependency is that FBX plugin. Also â we donât roll our own Python, but do a pip install of some libraries â like P4, lxml, pillow, Qt, etc.