【发布时间】:2011-06-24 17:07:50
【问题描述】:
我在图形库上做了 Nodebox 教程:
http://nodebox.net/code/index.php/Graph#loading_the_library
我在应用程序支持中安装了该库 我粘贴了以下代码:
graph = ximport("graph")
create(iterations=1000, distance=1.0, layout="spring", depth=True)
我收到了这个错误信息:
Traceback (most recent call last):
File "nodebox/gui/mac/__init__.pyo", line 358, in _execScript
File "mypath", line 2, in <module>
NameError: name 'create' is not defined
在此之前我得到了这个:
NameError: name 'ximport' is not defined
如果我关闭文件并重新打开并说 graph = ximport("graph")
什么都没有发生(它似乎工作)。
我认为这将是一个非常酷的库。
任何帮助都会很棒。
【问题讨论】: