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

Problems Importing decimal Module

Posted by Clay Wiedemann on Mar 16, 2007

I can import math, and random. But I cannot import decimal. I get this message:

ImportError: No module named decimal

I do not have trouble importing decimal outside of NodeBox. I have tried ximport and import __ from to no avail.

Does NodeBox need some configuration?
I am running OSX 10.4 with Python 2.5



Posted by Mark on Mar 17, 2007

Are you sure nodebox is using 2.5?

Try this to test:

import sys
print sys.version


I was having a similar problem and found that node box was using still using the 2.3 default even though I was using 2.5 for everything else. I ended up building nodebox from source which was pretty easy and linking it to my 2.5 install (there is a thread a few down concerning compatibility with other python versions) . Everything now works as expected.



Posted by Clay Wiedemann on Mar 17, 2007

Thanks, that was it.