Community
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Upgrade to Python 3.X

Upgrade to Python 3.X

(Copied from original User Voice forum)

 

"Legacy Python 2.7 is starting to cause us issues in our pipeline. PySide2 is the most recent headache but many other distributions are also an issue. Additionally I would also petition Autodesk to compile Maya Python using the same MSC as the standalone Python distribution. This also causes many a headache by preventing version dependent Python modules from being used in Maya without having to recompile them."

16 Comments
Boon_in_Oz
Participant


Additionally I would also petition Autodesk to compile Maya Python using the same MSC as the standalone Python distribution. This also causes many a headache by preventing version dependent Python modules from being used in Maya without having to recompile them."

^ This!

thomas.mansencal
Community Visitor

While I'm very eager to see Python 2.x die and have 3.x in Maya, Autodesk needs (and will probably) do that in accordance with the VFX Platform: https://www.vfxplatform.com/

I have good hope to see Windows added to it which would standardise which MSVC version should be used.


Cheers,

Thomas

alvaro.francisco.fleith
Community Visitor

Python 2.x will be discontinued in 2020. -> https://pythonclock.org/

tj.galda
Alumni

We are indeed working with the VFX Reference Platform and have been for some time.  Python 3 is on our radar for sure and we're working out the timing of that as well as the technical approach.  The trick for us is we don't want to build a version of Maya that people don't want to buy, so need to figure out the best way to bridge across the versions.

 

We're listening, your input on how you'd like to see that work out is valuable.  Every time I visit a studio, we check to see how ready people are for Python 3 & what timing would work well for teams.

tj.galda
Alumni
Status changed to: Under Review
 
Mike_Rochefort
Collaborator

@tj.galda

 

Thanks for the reply! As the CY2019 draft has just been published, do you think we will get to see a tech preview API sometime in the 2020 series? Even in one of the 2019 releases would be nice, but I wouldn’t push you guys too hard for that.

chris.spears
Contributor

This might be premature, but any thoughts on what version of Python 3 Autodesk is planning to support?

Mike_Rochefort
Collaborator

@chris.spears:

 

If you go to http://vfxplatform.com you’ll see that 3.6.x is the target for API previews in CY2019. If you want a more in-depth read, I suggest this thread on the Platform Google group:

 

https://groups.google.com/forum/m/#!topic/vfx-platform-discuss/Nfsl8Uf-dpU

 

It will be interesting to see how this pans out in Maya 2020.

 

Cheers,

Mike

chris.spears
Contributor
Thanks Mike! I guess the question now is which version of Python 3.6 my studio should target. We have been trying to convert code to Python or at least make it compatible with 2 and 3. I have been doing some initial tests with 3.6.2 but I know they are up to 3.6.6. now.


Alex.Morano
Explorer

Hey Chris!

 

Everything past 3.4 is pretty much the same. I know since I wrote the basecode you to which you refer and did an up convert of it two years ago to 3.x.

 

Your 3.6.2 code will work fine in 3.6.6. The biggest changes since 3.4 are the async contexts and expansion of such. 

 

=D

 

Cheers

chris.spears
Contributor

Oh hey Alex!  Good to hear from you.  Awesome!  Thanks for the reply.

Narann
Participant

> The trick for us is we don't want to build a version of Maya that people don't want to buy, so need to figure out the best way to bridge across the versions.

 

What about using an environment variable to start Python 3 interpreter:

 

MAYA_USE_PYTHON3

 

If this variable is sets, Maya would run the Python 3 interpreter instead of the default one (2.7) and we will be able to convert our tools to be both Python 2.7 and Python 3 without blocking Maya version to still works with current pipeline.

tj.galda
Alumni
Status changed to: Accepted
 
328665042
Contributor

My biggest wish for Maya Python is that: we can use 3rd party packages by pip install without building for Maya or 3Ds Max since 2020. It will be so difficult for someone to build a 3rd package.

pat.corwin
Observer

I wanted to echo how great it would be to compile Maya with the same version as Python.  I have yet to get scipy to compile on windows so resort to a bunch of goofy work arounds, as well as simply not being able to do some things I would like to do.

TMC27
Participant

Thanks @tj.galda ! Do you have any updates on when the change will take place? http://vfxplatform.com/ has this listed as happening sometime this year.

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report