On Sat, 7 Nov 2015, Nathann Cohen wrote:
PackageNotFoundError: the package 'my_package' was not found. You
can install it by running 'sage -i my_package' in a shell
About this special case: Interactive loop should catch these and output
some common help text. Maybe even customizable "Install with sage
-i ..." or "Ask your system administrator...".
Another instance, which may be more appealing to you:
sage: {Graph():1}
TypeError: This graph is mutable, and thus not hashable. Create an
immutable copy by `g.copy(immutable=True)`
True, that will help user.
OTOH {[1,2]:1} will give basically same error message without further
help.
(In ideal world interactive loop would of course detect also this... And
give again some good help text. But that won't happen, I guess.)
--
Jori Mäntysalo