Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

TypeError : Object not iterable

I am facing a problem while doing following on terminal in Sage

sage: Fin_field = GF(49)

sage: Mult_grp = AbelianGroupWithValues([Fin_field.gen()], n =1 , gens_order = [48], values_group=Fin_field)

sage: phi = Mult_grp.convert_map_from(Fin_field)

Upto here, everything is fine.

Now there is an error in the next line -

sage: phi(Fin_field.gen())

TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

What does this mean?

TypeError : Object not iterable

I am facing a problem while doing following on terminal in Sage

sage: Fin_field = GF(49)

sage: Mult_grp = AbelianGroupWithValues([Fin_field.gen()], n =1 , gens_order = [48], values_group=Fin_field)

sage: phi = Mult_grp.convert_map_from(Fin_field)

Upto here, everything is fine.

Now there is an error in the next line -

sage: phi(Fin_field.gen())

TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

What does this mean?

TypeError : Object not iterable

I am facing a problem while doing following on terminal in Sage

sage: Fin_field = GF(49)

GF(49)

sage: Mult_grp = AbelianGroupWithValues([Fin_field.gen()], n =1 , gens_order = [48], values_group=Fin_field)

values_group=Fin_field)

sage: phi = Mult_grp.convert_map_from(Fin_field)

Mult_grp.convert_map_from(Fin_field)

Upto here, everything is fine.

Now there is an error in the next line -

sage: phi(Fin_field.gen())

phi(Fin_field.gen())

TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

iterable

What does this mean?

TypeError : Object not iterable

I am facing trying to build the multiplicative group of a problem while doing following on terminal in Sagefinite field.

I define a finite field, its multiplicative group, and a conversion map from the finite field to its multiplicative group as follows:

sage: Fin_field F.<a> = GF(49)

GF(7^2)
sage: Mult_grp G = AbelianGroupWithValues([Fin_field.gen()], n =1 , gens_order = [48], values_group=Fin_field)

AbelianGroupWithValues([a], n=1,
....:     gens_orders=[48], values_group=F)
sage: phi = Mult_grp.convert_map_from(Fin_field)
G.convert_map_from(F)

Upto Up to here, everything is fine.

Now there is an error in the next line - when trying to use phi:

sage: phi(Fin_field.gen())

phi(a)
Traceback (most recent call last)
...
TypeError: 'sage.rings.finite_rings.element_givaro.FiniteField_givaroElement' object is not iterable

What does this mean?