Jump to content
Sign in to follow this  
pelos

pycharm and hou

Recommended Posts

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 by pelos

Share this post


Link to post
Share on other sites

I believe you need to add $HFS/houdini/python2.7libs to system's PATH variable if you're on Windows.

Share this post


Link to post
Share on other sites
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.

 

Share this post


Link to post
Share on other sites

@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']
  • Like 1

Share this post


Link to post
Share on other sites

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 by kiryha

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×