library · inferred from evidence
networkx
A third-party package mentioned as a common carrier of the old import that can be upgraded to fix the issue.
- ImportError: cannot import name 'gcd' from 'fractions'
Third-person routing text. Fixes ImportError for gcd from fractions on Python 3.9+: fractions.gcd was removed, math.gcd is the replacement. Update the import or upgrade the dependent package. Use when an agent hits this on old code with new