Jump to content

Import python libraries (matplotlib) on Houdini


kayk5654

Recommended Posts

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!

Link to comment
Share on other sites

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 

 

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