Pergunta

I'm trying to use the graph-tool python module, which is really great by the way. To do so I have:

to compile the module I had to use this option: --with-sparsehash-prefix=google. Then after a quite long compilation time I have checked the compilation with make check and everything seems okay.

However when I try to do the Quick Start (http://graph-tool.skewed.de/static/doc/quickstart.html) I get this:

>>> from graph_tool.all import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/graph_tool/all.py", line 34, in <module>
    from graph_tool.draw import *
  File "/usr/lib/python2.7/dist-packages/graph_tool/draw/__init__.py", line 770, in <module>
    from .cairo_draw import graph_draw, cairo_draw, get_hierarchy_control_points
  File "/usr/lib/python2.7/dist-packages/graph_tool/draw/cairo_draw.py", line 51, in <module>
    except ImporError:
NameError: name 'ImporError' is not defined

Can you explain me what is the issue and how to fix it please ?

Foi útil?

Solução

It's a typo in the module. It was supposed to be ImportError, not ImporError. You can go to that particular line in the file and edit it.

Outras dicas

This issue has been fixed now in the new release.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top