ggventurini / python-deltasigma

A port of the MATLAB Delta Sigma Toolbox based on free software and very little sleep
python-deltasigma.io
Other
86 stars 54 forks source link

AttributeError: module 'fractions' has no attribute 'gcd' #81

Open nishanchettri opened 1 year ago

nishanchettri commented 1 year ago

Please solve this error

lswang2 commented 1 year ago

I fixed by replacing with math.gcd

from math import gcd

gcd = fractions.gcd

ljmatkins commented 11 months ago

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