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

Closed
Qwlouse opened this Issue Sep 10, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@Qwlouse
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/__init__.py in <module>()
     56 __license__  = release.license
     57 
---> 58 from .agraph import AGraph, Node, Edge, Attribute, ItemAttribute, DotError
     59 
     60 __all__=[

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/agraph.py in <module>()
     24     from collections import MutableMapping as DictMixin
     25 
---> 26 from . import graphviz as gv
     27 
     28 _DEFAULT_ENCODING = 'UTF-8'

/home/greff/venv/py2/local/lib/python2.7/site-packages/pygraphviz/graphviz.py 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/graphviz.py 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/_graphviz.so: undefined symbol: Agundirected

Any ideas?

@mmarkov

This comment has been minimized.

Copy link
Contributor

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/"
@Qwlouse

This comment has been minimized.

Copy link
Author

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