Jump to content

import hrpyc in python IDLE?


faxingberlin

Recommended Posts

I find some examples how to implement houdini's python moudles to general python IDLE.. 

but hrpyc moudle doesn't work.. 

but hython works! 

I want to implement hrpyc modle to python IDLE 

Importing hou works, but hrpyc doesn't work 




I try to like this examples 

link: 
http://www.sidefx.com/docs/houdini15.0/hom/commandline 

http://nullege.com/codes/show/src%40h%40o%40HoudiniSublime-HEAD%40HoudiniSublime.py/28/hrpyc/python 

https://github.com/larsbijl/HoudiniSublime 

error info: 
import rpyc.servers.classic_server 
ImportError: No module named servers.classic_server 


I try very many times... 

Changing the paths, and find servers.classic_server ... it doesn't work.. Help me.. please icon_rolleyes.gif

Edited by faxingberlin
Link to comment
Share on other sites

On 2016. 4. 15. at 7:21 PM, Stalkerx777 said:

Because houdini uses a little bit different version of rpyc, in order to use hrpyc you need to add to sys.path (or PYTHONPATH) the following folders:

(On windows)

$HFS/python27/lib/site-packages and $HFS/houdini/python2.7libs

it works! thank you!..

 

it doesn't work because I didn't put (import hrpyc) in the  enableModule() func... 

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...