DLL load error in Python SOP (but works in hython shell)

   612   0   0
User Avatar
Member
4 posts
Joined: 9月 2018
オフライン
Hello,

I installed bpy into hython by doing the following from the shell (Windows > Shell):
hython -m pip install bpy

In the hython shell, import bpyworks correctly.

After restarting Houdini, I added the following code to a Python SOP:
import bpy

I get the following error:
ImportError: DLL load failed while importing bpy: The specified procedure could not be found.

Additionally, I tried using dlltracer [github.com] and confirmed that I am seeing different DLLs get loaded in each scenario. I have attached the results to this post. However, I don't know why these differ or how I should fix the discrepancy.

Thank you!
Edited by Futzer - 2025年6月4日 18:59:55

Attachments:
hython_shell.txt (5.0 KB)
python_sop.txt (5.6 KB)

  • Quick Links