在Mac OSX Lion上使用pygraphviz时出错

时间:2011-12-17 08:32:00

标签: osx-lion graphviz pygraphviz

经过一番努力在Mac OSX Lion上安装pygraphviz ([sudo] easy_install pygraphviz)我试图使用它,但是当我导入它时它会崩溃。在这里你可以看到错误。

有什么想法解决它吗?我应该安装另一个辅助库吗??

>>> import pygraphviz
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pygraphviz/__init__.py", line 54, in <module>
    from agraph import AGraph, Node, Edge, Attribute, ItemAttribute
  File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pygraphviz/agraph.py", line 19, in <module>
    import graphviz as gv
  File "/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pygraphviz/graphviz.py", line 7, in <module>
    import _graphviz
ImportError: dlopen(/Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pygraphviz/_graphviz.so, 2): Symbol not found: _Agundirected
  Referenced from: /Library/Frameworks/Python.framework/Versions/7.1/lib/python2.7/site-packages/pygraphviz/_graphviz.so
  Expected in: dynamic lookup

0 个答案:

没有答案