pelos Posted March 14, 2017 Share Posted March 14, 2017 (edited) i am trying to set up the hou module in pycharm, so i added to the path of python2.7libs project structure and this is what i get. import _hou ImportError: DLL load failed: The specified module could not be found. i am trying to find the _hou any one got something similar? Edited March 14, 2017 by pelos Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted March 14, 2017 Share Posted March 14, 2017 I believe you need to add $HFS/houdini/python2.7libs to system's PATH variable if you're on Windows. Quote Link to comment Share on other sites More sharing options...
kiryha Posted October 4, 2018 Share Posted October 4, 2018 import sys sys.path.append('C:/Program Files/Side Effects Software/Houdini 16.5.536/houdini/python2.7libs/') import hou This does not work for me: File "C:\Program Files\Side Effects Software\Houdini 16.5.536\houdini\python2.7libs\hou.py", line 19, in <module> import _hou ImportError: DLL load failed: The specified module could not be found. Quote Link to comment Share on other sites More sharing options...
cakesson Posted October 30, 2018 Share Posted October 30, 2018 @kiryha Try this: import os os.environ['HFS'] = 'C:/PROGRA~1/SIDEEF~1/HOUDIN~1.536' os.environ['PATH'] = 'C:/PROGRA~1/SIDEEF~1/HOUDIN~1.536/bin;%s' % os.environ['PATH'] 1 Quote Link to comment Share on other sites More sharing options...
kiryha Posted October 30, 2018 Share Posted October 30, 2018 (edited) Thanks, @cakesson! This is working: os.environ['PATH'] = 'C:/PROGRA~1/SIDEEF~1/HOUDIN~1.536/bin;&' import hou This is not: os.environ['PATH'] = 'C:/Program Files/Side Effects Software/Houdini 16.5.536/houdini/bin;&' import hou It`s because of spaces in the path? How can I build such string (path to Houdini bin with "~")? Edited October 30, 2018 by kiryha Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.