Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • graph-tool graph-tool
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 46
    • Issues 46
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Please use the issue tracker only to report bugs (i.e. errors in the library that need to be fixed) or feature requests.

For questions about how to compile, install or use the library, please use instead the mailing list at https://graph-tool.skewed.de/mailing
(If unsure, use the mailing list first.)



When opening new issues, please choose the BUG template from the drop-down menu, and fill out the required information.

  • Tiago Peixoto
  • graph-toolgraph-tool
  • Issues
  • #215

Closed
Open
Created Apr 12, 2015 by Xun Xiao@Dr.Mars

import graph_tool error

I re-install graph_tool, but just running "from graph_tool.all import *" shows the following errors:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/graph_tool/all.py", line 35, in <module>
    from graph_tool.draw import *
  File "/usr/lib/python2.7/dist-packages/graph_tool/draw/__init__.py", line 797, in <module>
    from .cairo_draw import graph_draw, cairo_draw, get_hierarchy_control_points, default_cm
  File "/usr/lib/python2.7/dist-packages/graph_tool/draw/cairo_draw.py", line 1855, in <module>
    from .. community import get_hierarchy_tree, NestedBlockState, BlockState, OverlapBlockState
  File "/usr/lib/python2.7/dist-packages/graph_tool/community/__init__.py", line 128, in <module>
    from . blockmodel import minimize_blockmodel_dl, BlockState, mcmc_sweep, \
  File "/usr/lib/python2.7/dist-packages/graph_tool/community/blockmodel.py", line 2832, in <module>
    from . covariate_blockmodel import *
  File "/usr/lib/python2.7/dist-packages/graph_tool/community/covariate_blockmodel.py", line 269
    def context_wrapper(*args, revert=False):
                                    ^
SyntaxError: invalid syntax

Thanks!

Assignee
Assign to
Time tracking