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

coreimage does not recognize canvas?!?

Posted by Mark Grimes on Apr 07, 2007

Odd.

ci = ximport("coreimage") # coreimage.py -> ~/Library/Application Support/NodeBox
c = ci.canvas(400,400)

generates the following error...

Traceback (most recent call last):
File "/Applications/NodeBox.app/Contents/Resources/NodeBox.py", line 338, in _execScript
File "/Users/mark/Desktop/test/test.py", line 2, in ?
AttributeError: 'module' object has no attribute 'canvas'



Posted by Tom De Smedt on Apr 12, 2007

Hi Mark,

That's odd. I can't reproduce the bug. Does it work when you put coreimage.py in the same folder as your script instead of in Application Support? Have you tried just quitting and restarting NodeBox?