If you email me your sandpile.sage file I could try to figure it out.
I made a file with a class definition inheriting from DiGraph and
everything tested OK, so I can't reproduce this. The only thing I can
think of is that perhaps your command "sage" is calling an older
version of sage that doesn
Same problem:
sage -t "sandpile.py"
Traceback (most recent call last):
File "./sandpile.py", line 18, in
from sandpile import *
File "/home/davidp/math/sandpile/sage/sage-sandpile1.4/sandpile.py",
line 167, in
class Sandpile(DiGraph):
NameError: name 'DiGraph' is not defined
What happens if you rename it "sandpile.py"? I'm not sure that will
help but there are some funny differences between running .py
and .sage files.
-Marshall
On Jun 2, 8:35 pm, davidp wrote:
> I would like to run the doctests in my file, "sandpile.sage", but get
> the following error message:
>