Jump to content

Houdini python


Hello world

Recommended Posts

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')
 &gt;&gt;&gt; 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

Link to comment
Share on other sites

  • 3 years later...

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 by NSDesign
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...