Import Hou in External Python Process

   4118   4   2
User Avatar
Member
37 posts
Joined: Dec. 2016
Offline
Hey everyone,

I'm getting this error when I'm trying to import hou in an external Python process. I've tried setting the windows path variables to no avail. There are a few other forum posts on this but no real solutions. Any ideas?

Traceback (most recent call last):
File “C:/Users/ryan/AppData/Local/Temp/houdini_temp/ML_PDG_v006/pdgtemp/26912/pythonscript2_3.py”, line 9, in <module>
import hou
File “C:\Users\ryan\AppData\Local\Programs\Python\Python37\lib\hou.py”, line 28, in <module>
import _hou
ImportError: DLL load failed: The specified procedure could not be found.
User Avatar
Member
196 posts
Joined: Aug. 2011
Offline
Hi,


Same questions... input would be most welcome.


This is just for 2.7 - I need 3.x:
https://www.sidefx.com/docs/houdini/hom/commandline.html [www.sidefx.com]

Cheers,
m.
User Avatar
Member
151 posts
Joined: Feb. 2009
Offline
I've encountered this issue too using python 2.7 in Windows.
https://openfirehawk.com/ [openfirehawk.com]
Support Open Firehawk - An open source cloud rendering project for Houdini on Patreon.
This project's goal is to provide an open source framework for cloud computing for heavy FX based workflows and allows end users to pay the lowest possible price for cloud resources.
User Avatar
Staff
411 posts
Joined: Feb. 2008
Offline
Are you using hython or python when you get the error?
User Avatar
Member
151 posts
Joined: Feb. 2009
Offline
Python. Interestingly it works fine on my workstation, I just can't identify the cause for why it occurs in some other systems.
https://openfirehawk.com/ [openfirehawk.com]
Support Open Firehawk - An open source cloud rendering project for Houdini on Patreon.
This project's goal is to provide an open source framework for cloud computing for heavy FX based workflows and allows end users to pay the lowest possible price for cloud resources.
  • Quick Links