using anaconda python environments with Houdini 17

   4198   3   1
User Avatar
Member
178 posts
Joined: 1月 2013
Offline
Is there a good solution to using Python virtual environments now with Houdini? We are using conda (anaconda.com), which is a great way to manage custom environments.

HOUDINI_PYTHON_BIN and HOUDINI_PYTHON_LIB are no longer used… according to the help, the new solution is to use PYTHONHOME/LD_LIBRARY_PATH. But these are discouraged by the conda documentation itself. (And LD_LIBRARY_PATH is also discouraged, in general…)

First pass at this gives me the following error:
jparker@oxygen:[~]$ export PYTHONHOME=/usr/local/anaconda2-5.1.0
jparker@oxygen:[~]$ export LD_LIBRARY_PATH=/usr/local/anaconda2-5.1.0/lib
jparker@oxygen:[~]$ cd /opt/hfs17.0
jparker@oxygen:[/opt/hfs17.0]$ source houdini_setup
The Houdini 17.0.352 environment has been initialized.
jparker@oxygen:[/opt/hfs17.0]$ houdini
/opt/hfs17.0/bin/houdini-bin: /opt/hfs17.0/dsolib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/local/anaconda2-5.1.0/lib/./libpng16.so.16)
jparker@oxygen:[/opt/hfs17.0]$ 

I've filed a bug already…
User Avatar
Member
178 posts
Joined: 1月 2013
Offline
After some gnashing of teeth, the solution is simple…. so far. Not everything is tested yet… Ignore the other variables above and set LD_PRELOAD:

export LD_PRELOAD=/usr/local/anaconda2-5.1.0/lib/libpython2.7.so.1.0
User Avatar
Member
58 posts
Joined: 7月 2013
Offline
Any idea how to do this on Mac?
User Avatar
Member
30 posts
Joined: 4月 2015
Offline
nope - still dont get it working on macos
  • Quick Links