3rd-party python libraries as part of vfx platform

124 views
Skip to first unread message

Chad Dombrova

unread,
Jul 18, 2019, 6:06:49 PM7/18/19
to vfx-platfo...@googlegroups.com
Hi all,
Applications often require 3rd-party libraries, which they include in the site-packages of their bundled python directory.  Problems can arise if those library versions are in conflict with the versions required by our pipeline code.  Usually, the application's site-packages comes before paths added via PYTHONPATH, but even if we put ours first by monkeying with sys.path after the application starts, it could have adverse affects.   This sounds like exactly the kind of problem VFX Reference Platform was created to solve!

The libraries that we've had problems with are `six` in Houdini, and `pkg_resources` (setuptools) in Nuke.  The issue is primarily that the bundled versions are quite out of date (I think Nuke's is about 10 years old), so this would be another scenario where the platform is leveraged to keep applications relatively up-to-date.

Has anyone had similar problems?  Is this an issue worth addressing via The Platform?

-chad

Robert Vinluan

unread,
Jul 19, 2019, 1:13:26 PM7/19/19
to Chad Dombrova, vfx-platfo...@googlegroups.com
Hi Chad,

Those sound like application-specific issues and not really widespread versionitis.  It might be worth contacting the vendor (if you haven't already) to help resolve the problems.

In the case of Houdini, the help system has a dependency on the six module and therefore restricts itself to using the six module that ships with Houdini.  However, this restriction may not be necessary.  I might be able to eliminate that restriction in the next Houdini release.  In the meantime, as a workaround, you could try moving the six* files out of $HFS/python/lib/python2.7/site-packages-forced and into $HFS/python/lib/python2.7/site-packages.  That would enable you to introduce a newer six module via PYTHONPATH.  Though if you do use a newer version of six, then best to open Houdini's help to see if it still works.

I hope this helps.

Cheers,
Rob

--
You received this message because you are subscribed to the Google Groups "vfx-platform-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vfx-platform-dis...@googlegroups.com.
To post to this group, send email to vfx-platfo...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vfx-platform-discuss/CAGq9Q7HE9c_MV75wWZAPWH6u_rN-2%3D5qhxifAZEBai6GBmX%2BwA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages