1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Troubles importing external libraries

Posted by Dave on May 08, 2010

Hello all!
I'm having issue trying to import into the Nodebox environment some external libraries I'd like to use, especially the nice python-twitter library. I successfully installed the lib, and I have it perfectly working from the python shell. But from Nodebox I keep on getting the error "ImportError: No module named twitter". I've tried to import the library using

ximport("twitter")
or python-style
import twitter
, without any luck in both cases.
I'm using Nodebox under Snow Leopard 10.6.3.
Can you give me a hint?

Thanks!


 
Posted by Sebastian Oliva on May 10, 2010

Hello, I had the same problem, and there is a really easy fix,
just execute

mkdir /Applications/NodeBox/NodeBox.app/Contents/Resources/Python
ln -s /Library/Python/2.5/site-packages /Applications/NodeBox/NodeBox.app/Contents/Resources/Python
in your terminal
to create a link from your Mac's Python Packages to Nodebox Libs, then you'll have access to all your Python libs on Nodebox.



Posted by Meh.K on Apr 14, 2012

I have the same problem on ubuntu with nodebox2. I can not import any library



Posted by jack on Apr 26, 2012

This has been an ongoing issue for a while. I have been waiting for a fix for this for a while. I hope to see other options for this. Blinds in Toronto