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

nodebox-qt AppKit Linux (or win)

Posted by dz0 on Mar 13, 2009

Hello,

I try to run http://nodebox.net/code/index.php/Evolution

but I get error

File "/home/tmp/nodebox-qt/nodebox/graphics/cocoa.py", line 4, in
from AppKit import *


it seems to be Mac specific, or is it possilbe to run AppKit (or Evolution example) on nix/win?

as I found some remarks
http://en.wikipedia.org/wiki/Cocoa_(API)#Implementations


 
Posted by Stefan on Mar 15, 2009

No AppKit is indeed Mac-specific. But I updated the DrawingPrimitives file to import from the qt library instead of cocoa. So you might want to perform an 'svn update'. Evolution will probably generate a few warnings but normally it should work.

Kind regards,
Stefan



Posted by dz0 on Mar 19, 2009

Thanks, now it works :)

just bundled PIL complained
evolution/pyimaging/PIL/Image.py", line 35, in __getattr__
raise ImportError("The _imaging C module is not installed")

I just imported standart PIL instead of bundled one:
in photobot.py
#~ from pyimaging.PIL import ...
from PIL import ...

and some missing font error -- which dissapeared after I changed in factory.py line ~412
#~ _ctx.font("Helvetica-Bold", 10)
_ctx.font("DejaVu Sans-Bold", 10)