python-deltasigma
python-deltasigma copied to clipboard
AttributeError: module 'fractions' has no attribute 'gcd'
Please solve this error
I fixed by replacing with math.gcd
from math import gcd
#gcd = fractions.gcd
In case anyone is looking for a quick workaround, I monkeypatched the import like:
import fractions, math
fractions.gcd = math.gcd # hack to fix deltasigma import
import deltasigma