New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import error on Ubuntu 15.04 #72

Qwlouse opened this Issue Sep 10, 2015 · 2 comments


None yet
2 participants
Copy link

Qwlouse commented Sep 10, 2015

I've installed pygraphviz 1.3.1 with pip on Ubuntu 15.04, and when I try to import I get the following error:

ImportError                               Traceback (most recent call last)
<ipython-input-1-99ed911275c0> in <module>()
----> 1 import pygraphviz

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/ in <module>()
     56 __license__  = release.license
---> 58 from .agraph import AGraph, Node, Edge, Attribute, ItemAttribute, DotError
     60 __all__=[

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/ in <module>()
     24     from collections import MutableMapping as DictMixin
---> 26 from . import graphviz as gv

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/ in <module>()
     26                 fp.close()
     27             return _mod
---> 28     _graphviz = swig_import_helper()
     29     del swig_import_helper
     30 else:

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/ in swig_import_helper()
     22         if fp is not None:
     23             try:
---> 24                 _mod = imp.load_module('_graphviz', fp, pathname, description)
     25             finally:
     26                 fp.close()

ImportError: /home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/ undefined symbol: Agundirected

Any ideas?


This comment has been minimized.

Copy link

mmarkov commented Sep 10, 2015

It looks like same as #71. Try installing with direct path to graphviz

pip install pygraphviz --install-option="--include-path=/usr/include/graphviz" --install-option="--library-path=/usr/lib/graphviz/"

This comment has been minimized.

Copy link

Qwlouse commented Sep 10, 2015

That did the trick. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment