Install & Compatibility
Where this runs
tested against v10.6.48 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.022s · 24.9MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.4s · import 0.018s · 23MB
22MB installed
● package 22MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
bliss
✓ from sage.graphs.bliss import *
✗ import bliss
bliss is accessed through sage.graphs, not as a top-level module.
canonical_form
✓ from sage.graphs.bliss import canonical_form
Compute canonical form and automorphism group of a graph using bliss.
from sage.graphs.bliss import canonical_form, automorphism_group
g = graphs.PetersenGraph()
canon, relabel = canonical_form(g, return_relabeling=True)
print(canon.edges()[:2])
aut = automorphism_group(g)
print(aut.order())
Errors
Common errors & fixes
ImportError: cannot import name 'bliss' from 'sage.graphs'
Using wrong import path or missing passagemath packages.
fixInstall passagemath-sage and use `from sage.graphs.bliss import canonical_form`.
ValueError: graph must be simple (no loops or multiple edges)
Bliss only supports simple graphs.
fixUse `G.to_simple()` before passing to bliss functions.
Upgrade
Version history
10.8.4latest on PyPI · released Apr 20, 2026
Audit
Dependencies
passagemath-sagerequiredBase package for core functionality; bliss may require it for integration.