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

Graph problem

Posted by dbs on Jul 19, 2007

I am having trouble getting the graph module to work. Trying to run the graph_test.py program from the graph folder, I get this error. Any idea what is going on?

Traceback (most recent call last):
File "/Applications/NodeBox.app/Contents/Resources/NodeBox.py", line 338, in _execScript
File "/Users/dbs/Library/Application Support/NodeBox/graph/graph_test.py", line 29, in ?
File "/Users/dbs/Library/Application Support/NodeBox/graph/graph.py", line 163, in solve
AttributeError: 'module' object has no attribute 'Graph'


 
Posted by Tom De Smedt on Jul 20, 2007

No idea, could you tell me which version of Mac OS X you're running, which version of NodeBox and if you're using the Intel or PPC version of the graph library?



Posted by dbs on Jul 20, 2007

OS 10.4.9 on an Intel macbook
Nodebox 1.8.5

Thank you for helping with this question and creating such great software!



Posted by Tom De Smedt on Jul 24, 2007

Hm, that should be okay.
Are you using another Python version than the 2.3 that came with your Mac? In that case you may need to compile libboost_python.dylib in the graph folder from scratch, according to these instructions:

http://dev.nodebox.net/wiki/BuildingBoost