Skip to content
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

Strict networkx=2.3 dependency makes it difficult to use with python 3.9+ #20

Open
wintergnut opened this issue Oct 25, 2022 · 0 comments

Comments

@wintergnut
Copy link

As of python 3.9, fractions.gcd(a, b) method has been removed and replaced by math.gcd(*integers). networkx==2.3 still uses fractions.gcd(a, b) and as such will throw an "ImportError: cannot import name 'gcd' from 'fractions'" error at runtime
https://stackoverflow.com/questions/66174862/import-error-cant-import-name-gcd-from-fractions

The workaround is to manually install a later version of networkx and ignore pip warnings, but ideally version requirements should be relaxed to somthing like networkx>=2.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant