Jump to content
art3mis

Adding Python paths to Houdini on launch [Ubuntu]

Recommended Posts

Hi

Trying to install and use Ytini

http://www.ytini.com/getstarted.html

Ytini is installed and my PATH variable has been edited to point to this install.

Where I am stumbling is how to get Houdini to recognize this path

ie if I open a new Python Shell in Houdini I should be able to do

>>>import yt

 

and not get an error.

 

Can anyone help?

 

Share this post


Link to post
Share on other sites
Posted (edited)

Hi there!

You need to add the ytini install path to the PYTHONPATH variable instead so that houdini recognizes and loads them. 

Cheers

-J

 

Edited by animknight

Share this post


Link to post
Share on other sites
Posted (edited)

Thanks!

Still no luck however.

Would I need to add the ytini PYTHONPATH to my houdini.env or my global variables in /etc/environment ?

ie

Quote

/usr/bin/sudo -H gedit /etc/environment

 

I tried both options yet still no luck when I open a Python shell and do an import yt.

Is the issue perhaps that I have to launch houdini from the command line and pass appropriate path values?

http://www.ytini.com/getstarted.html

The instructions are for Mac OSX so unclear how to make this work in linux.  Any feedback appreciated, as have spent several hours now trying to get this to work!

 

 

In order to make yt available I have to always manually enter the following in a Python Shell

 

>>> import sys
>>> sys.path.append("/home/jim/ytini/yt-conda/bin/yt")

 

Edited by art3mis

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

×