luogu-dev / cyaron

CYaRon: Yet Another Random Olympic-iNformatics test data generator
GNU Lesser General Public License v3.0
1.31k stars 164 forks source link

Python3.9 `gcd` no longer in module `fractions` #90

Closed Ahacad closed 3 years ago

Ahacad commented 3 years ago

ImportError: cannot import name 'gcd' from 'fractions' (/usr/lib/python3.9/fractions.py)

official document here: 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.

william-song-shy commented 3 years ago

It has been fixed in #84 .

Ahacad commented 3 years ago

OK, then it should be the version problem. Pypi still only has the cyaron v0.4.2, and the last GitHub release was in 2019, will another release be considered?

william-song-shy commented 3 years ago

You could remind the manager to release a new version

Ahacad commented 3 years ago

I'm not sure who to go to, maybe @lin714093880 could you make a new release?

lin-toto commented 3 years ago

Published 0.4.3