You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your traceback says Python 3.9 and since this version the GCD function has been moved to the math package. I will try to adapt it to this new behaviour.
Changed in version 3.9: The math.gcd() function is now used to normalize the numerator and denominator. math.gcd() always return a int type. Previously, the GCD type depended on numerator and denominator.
When running irankfinder.py
I get the exception:
....
from fractions import Fraction, gcd
ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)
This might be an exception from https://github.com/jesusjda/pyLPi though.
The text was updated successfully, but these errors were encountered: