Jump to content
kayk5654

Import python libraries (matplotlib) on Houdini

Recommended Posts

kayk5654    0

Hello, I'm trying to import an external python library “matplotlib” on Python SOP with a code below;

frommatplotlib.colors import to_hex

I downloaded matplotlib 2.0.2 and extracted under User/username/MyDocuments/houdini16.0/python2.7libs, while referring some previous threads and this video tutorial; https://www.youtube.com/watch?v=xoVORgBT190
The last folder (python2.7libs) is what I created.

However, the python SOP seems not to find matplotlib. The error message is below;

Error 
Python error: Traceback (most recent call last):
File “”, line 4, in 
ImportError: No module named matplotlib.colors

Is there anything else I can try to import it?
My working environment is;
Windows 7 professional
Houdini Indie 16.0.632
matplotlib 2.0.2

Thanks a lot!

Share this post


Link to post
Share on other sites
i73    0

It can't find the module "ImportError: No module named matplotlib.colors" Pass me your import code 'how you're trying to include the module' also try this and tell me what it says: 

import sys
sys.path.append('File Path to a matplotlib module') 
import matplotlib as mat 
#mat.colors 

 

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

×