Python 3 Support

   6260   7   0
User Avatar
Member
82 posts
Joined: March 2017
Offline
Is there any approximate date when Python 3 is expected to arrive?

Also for windows will it ever come with pip (or reliable support for other packages)?
Edited by dankray - May 9, 2019 12:57:45
User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
what is the thing you required with python3 that you cant do with python2? if is any library, you can just import it to your python script, beside print() using parenthesis everything else is an internal change, (mostly working range that will become generators instead lists)

when you install python already comes with pip / easy install,
User Avatar
Member
82 posts
Joined: March 2017
Offline
tensorflow for windows - it only works with python3

by the way is it possible to add pip to future releases of houdini? Wouldn't it make senese to setup a separate repo only for versions of modules compatible with that houdini release?
User Avatar
Member
621 posts
Joined: Aug. 2008
Offline
you can install python 3 in the pc,
use houdini python2 to run a python3 as a subprocess,
the python 3 can do the tensorflow and the python2 is just a runner

os.popen.subprocess(“python3 file.py -args….”)

or a vm with linux and put houdini, python, tensorflow etc… all the stuff you need, not something that i think is a great idea since the VM use a lot of Ram, that you might end up needing for houdini process.

this are just quick ideas that came to my mind.
User Avatar
Member
32 posts
Joined: Nov. 2017
Offline
I'm building a fairly large server-side app in python, and creating and updating Houdini files will be a (pretty major) part of that. Since python2 is being completely end-of-lifed in around 7 months from now (1/1/2020, https://pythonclock.org/), it doesn't make much sense to write loads of new python code in python2. There's no async, Unicode support is questionable, the print function, no typing, iterables… at this point python2 is pretty archaic. Even a basic `2to3` conversion as an optional (even if semi-unsupported for now) interface to Houdini would be super helpful.
User Avatar
Member
82 posts
Joined: March 2017
Offline
thanks for the reply. I received a messsage from sesi that the next major houdini release will include python 3 support.

Hopefully it will be built, so that we can include other compiled modules in it.
User Avatar
Member
644 posts
Joined: June 2006
Offline
for the roadmap of all VFX tools: https://vfxplatform.com/ [vfxplatform.com]

you can also see that the delayed python 3 release is because of the studios they need more time to port there code and test it.
User Avatar
Member
1 posts
Joined: June 2014
Offline
hi, I would suggest you run a flask python server with your tensorflow code and access data from houdini python 2 via http request.
The exchanged data can be any text, as json for example
  • Quick Links