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
from cypari2.pari_instance import Pari
pari = Pari()
M = pari('nfinit(x^2 + 1)')
P = M.idealfactor(7)[0, 0]
G = M.galoisinit()
print(G[5]) # error does not arise without this line
print(M.idealfrobenius(G, P))
raises SystemError: new_gen() argument not on PARI stack, not on PARI heap and not a universal constant