Hello world Posted November 9, 2011 Share Posted November 9, 2011 Came up with a question. I want to access hou modules from a regular python shell http://www.sidefx.com/docs/houdini11.1/hom/commandline and after this when i test if the code snippet whether worked import hou >>> import hou Traceback (most recent call last): File "<stdin>", line 1, in <module> File "c:\Program Files\Side Effects Software\Houdini 11.0.547/houdini/python2. 6libs\hou.py", line 18, in <module> import _hou ImportError: DLL load failed: %1 is not a valid Win32 application. I have also followed the code snippet given below import os import sys from os import environ as env env.has_key('HFS') >>> True sys.path.append(os.environ['HFS'] + '/houdini/scripts') sys.path.append(os.environ['HFS'] + '/houdini/python2.6libs') import hou Traceback (most recent call last): File "<stdin>", line 1, in <module> File "c:\Program Files\Side Effects Software\Houdini 11.0.547/houdini/python2. 6libs\hou.py", line 18, in <module> import _hou ImportError: DLL load failed: %1 is not a valid Win32 application. It would be really great if any one can help me out. thanks Quote Link to comment Share on other sites More sharing options...
edward Posted November 9, 2011 Share Posted November 9, 2011 On Windows, you must use a Python distribution that is compiled with the same compiler as Houdini (ie. VC8 for H11) Quote Link to comment Share on other sites More sharing options...
NSDesign Posted July 15, 2015 Share Posted July 15, 2015 (edited) Hi Guys I realise this is an old post, but it seems the closest to my own issue. File "C:\Program Files\Side Effects Software\Houdini 14.0.361\houdini\python2.7libs\hou.py", line 18, in <module> import _hou ImportError: DLL load failed: The specified procedure could not be found. I found that _hou is effectively a python dll, so if I understand correctly that is the dll causing the error. From what Edward says above I think the problem maybe the compiler version used to create _hou? I did go down a track and found there are mismatch dlls : Houdini's - msvcr110.dll and Pycharms msvcr100.dll I have no idea how to resolve that if it is in fact the problem. Any help would be greatly appreciated. Thanks Windows 7 Pro 64 Python 2.7.5 PyCharm 4.5 Community Houdini 14.0.361 Apprentice Edited July 15, 2015 by NSDesign 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.