2021-06-15 07:37:27 UTC, John Cremona:
>
> Thanks, William. So I don't have to rebuild Sage on the machine this
> is running on, what I will do instead is to replace the call to
> E.isogeny_class() with what that method actually does behind the
> scenes, namely
>
> from sage.schemes.elliptic_curves.isogeny_class import
> IsogenyClass_EC_NumberField
> self._isoclass = IsogenyClass_EC_NumberField(self,
> reducible_primes=reducible_primes, algorithm=algorithm,
> minimal_models=minimal_models)
>
> since I know that I will only call this once for each curve anyway.
>
> In case anyone is interested, this is happening while preparing data
> for the LMFDB for elliptic curves over Q(sqrt(-19)).
>
> John
Getting a reproducible example to trigger the bug would be nice.
Could this help give one?
```
try:
E.isogeny_class()
except AttributeError, KeyError:
# Print out the example
print(f"\nError calling isogeny_class on:\n{E}\n")
# Work around the bug
from sage.schemes.elliptic_curves.isogeny_class import (
IsogenyClass_EC_NumberField)
self._isoclass = IsogenyClass_EC_NumberField(self,
reducible_primes=reducible_primes,
algorithm=algorithm,
minimal_models=minimal_models)
```
Of course, the import could be done once for all
at the start of your code:
```
from sage.schemes.elliptic_curves.isogeny_class import (
IsogenyClass_EC_NumberField)
```
and the computation of isogeny class in your loop could skip it:
```
try:
E.isogeny_class()
except AttributeError, KeyError:
# Print out the example
print(f"\nError calling isogeny_class on:\n{E}\n")
# Work around the bug
```