I'm trying to write a program to calculate a generator point of an elliptic curve in sage.
The function to do this is is:
E.gen(0)
Where E is some Elliptic Curve.
If I do this on the online version of Sage it works without issue:
sage: E = EllipticCurve(GF(73),[6,0])
sage: E.gen(0)
(18 : 10 : 1)
However, if I try it locally:
sage: E = EllipticCurve(GF(73),[6,0])
sage: E.gen(0)
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-3-cfa3068996f9> in <module>()
----> 1 E.gen(Integer(0))
/usr/lib/python2.7/site-packages/sage/schemes/elliptic_curves/ell_generic.pyc in gen(self, i)
1309 NotImplementedError: not implemented.
1310 """
-> 1311 return self.gens()[i]
1312
1313 def rst_transform(self, r, s, t):
TypeError: 'NoneType' object has no attribute '__getitem__'
I'm on Sage version 6.6, and all the documentation that I've seen so far says this should work, and does in the online version of sage. Can anyone shed some light on this?