victorlei / smop

Small Matlab to Python compiler
MIT License
1.08k stars 409 forks source link

Does'nt run with Python 3.9.5 cannot import name 'gcd' from 'fractions' #182

Open raulrfa opened 2 years ago

raulrfa commented 2 years ago

I t always give me this error. It seems in 3.9 gcd is in math not in fractions

Cecilevdstappen commented 1 year ago

You have to change "from fractions import gcd" to "from math import gcd" in the dag.py file in the networkx package