PipelineFX

PipelineFX

About Me

Connect

LOCATION
Not Specified
ウェブサイト

Houdini Engine

Availability

Not Specified

Recent Forum Posts

Problem to load hou module in the standart OSX Python 2015年6月13日11:24

Getting this error again with Houdini 14.0.258 running on OS X 10.8.5. This used to work with Houdini 11 and 12.

The section mucking with DYLD_LIBARY_PATH is me trying to get it working with Houdini 14:


————————————————–
/bin/tcsh -c
setenv VERSIONER_PYTHON_VERSION 2.6
setenv VERSIONER_PYTHON_PREFER_32_BIT no
cd /Library/Frameworks/Houdini.framework/Versions/14.0.258/Resources
source houdini_setup
/usr/bin/python -u /Applications/pfx/qube/api/python/qb/backend/child_bootstrapper.py –port 62619 –kind houdini
————————————————–
houdiniPy> print

houdiniPy> import sys
houdiniPy> import os
houdiniPy> import time
houdiniPy> import sys, os
houdiniPy>
def enableHouModule():
import sys,os

if sys.platform == ‘linux2’ and hasattr(sys, “setdlopenflags”):
old_dlopen_flags = sys.getdlopenflags()
import DLFCN
sys.setdlopenflags(old_dlopen_flags | DLFCN.RTLD_GLOBAL)

try:
import hou
except ImportError:
# Add $HFS/houdini/python2.xlibs to sys.path so Python can find the
# hou module.
sys.path.append(os.environ + “/houdini/python%d.%dlibs” % sys.version_info)

if sys.platform == ‘darwin’:
lib_path = ‘%s/Libraries’ % os.environ.replace('/Resources', ‘')
if ’DYLD_LIBRARY_PATH' in os.environ:
os.environ = ‘%s:%s’ % (os.environ.get('DYLD_LIBRARY_PATH', ''), lib_path)
else:
os.environ = lib_path
print ‘DEBUG: DYLD_LIBRARY_PATH = %s’ % os.environ
print ‘DEBUG: dylib = %s’ % (os.path.join(lib_path, ‘libHoudiniOPZ.dylib’))
print ‘DEBUG: dylib libHoudiniOPZ.dylib exists: %s’ % os.path.exists(os.path.join(lib_path, ‘libHoudiniOPZ.dylib’))

import hou
finally:
if sys.platform == ‘linux2’ and hasattr(sys, “setdlopenflags”):
sys.setdlopenflags(old_dlopen_flags)

houdiniPy> enableHouModule()
DEBUG: DYLD_LIBRARY_PATH = /Library/Frameworks/Houdini.framework/Versions/14.0.258/Libraries
DEBUG: dylib = /Library/Frameworks/Houdini.framework/Versions/14.0.258/Libraries/libHoudiniOPZ.dylib
DEBUG: dylib libHoudiniOPZ.dylib exists: True
——————————————————————————–
houdiniPy> import hou
ERROR: enableHouModule()
——————————————————————————–
Traceback (most recent call last):
File “/Applications/pfx/qube/api/python/qb/backend/pythonChildHandler.py”, line 598, in mainloop
result = self.execute(cmd)
File “/Applications/pfx/qube/api/python/qb/backend/pythonChildHandler.py”, line 552, in execute
exec cmd in self.globals, self.locals
File “<string>”, line 1, in <module>
File “<string>”, line 27, in enableHouModule
File “/Library/Frameworks/Houdini.framework/Versions/14.0.258/Resources/houdini/python2.6libs/hou.py”, line 18, in <module>
import _hou
ImportError: dlopen(/Library/Frameworks/Houdini.framework/Versions/14.0.258/Resources/houdini/python2.6libs/_hou.so, 2): Library not loaded: @rpath/libHoudiniOPZ.dylib
Referenced from: /Library/Frameworks/Houdini.framework/Versions/14.0.258/Resources/houdini/python2.6libs/_hou.so
Reason: image not found
——————————————————————————–