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

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

Open
nishanchettri opened this issue May 30, 2023 · 2 comments
Open

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

nishanchettri opened this issue May 30, 2023 · 2 comments

Comments

@nishanchettri
Copy link

Please solve this error

@lswang2
Copy link

lswang2 commented Aug 4, 2023

I fixed by replacing with math.gcd

from math import gcd

#gcd = fractions.gcd

@ljmatkins
Copy link

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

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

3 participants