Hello,
Some modules visible to python are not visible to hython. Where can I set up paths for that?
thanks
kuba
hython modules paths
4701 3 0- kuba
- Member
- 345 posts
- Joined:
- Offline
- graham
- Member
- 1909 posts
- Joined: Nov. 2006
- Online
I believe that all modules available to python should all be available in hython. Are they available in Houdini? Any modules in particular? Which build and platform are you running? There was a bug that got fixed on linux for 745 that was causing Houdini to not detect a valid system version of python and thus use its own version.
Graham Thompson, Technical Artist @ Rockstar Games
- kuba
- Member
- 345 posts
- Joined:
- Offline
I am on XP H 9.0.725 python2.5 and I am trying to start pyro name server (http://pyro.sourceforge.net/ [pyro.sourceforge.net] ) within my HDA and I am getting import error. Everything works fine under python. But all of the additional pyro modules I have in a different location than C:\Python25\Lib
thanks
kuba
thanks
kuba
- rvinluan
- Staff
- 1256 posts
- Joined: July 2005
- Offline
I've posted some info in this thread that may be useful:
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=9847 [sidefx.com]
Anyway, you can add the path of the pyro modules to the HOUDINI_SCRIPT_PATH environment variable.. So if your pyro modules are in “Cmy_pyro_path/python”, then add “Cmy_pyro_path” to HOUDINI_SCRIPT_PATH.
If your modules are not in a ‘python’ directory, then you can try creating a symlink/shortcut named ‘python’ pointing to the pyro folder and add the shortcut's parent directory to HOUDINI_SCRIPT_PATH.
I hope this helps.
–Rob
http://www.sidefx.com/index.php?option=com_forum&Itemid=172&page=viewtopic&t=9847 [sidefx.com]
Anyway, you can add the path of the pyro modules to the HOUDINI_SCRIPT_PATH environment variable.. So if your pyro modules are in “Cmy_pyro_path/python”, then add “Cmy_pyro_path” to HOUDINI_SCRIPT_PATH.
If your modules are not in a ‘python’ directory, then you can try creating a symlink/shortcut named ‘python’ pointing to the pyro folder and add the shortcut's parent directory to HOUDINI_SCRIPT_PATH.
I hope this helps.
–Rob
-
- Quick Links