Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

'module' object has no attribute 'graphics_filename'

Hello everybody! I typed at Sage Notebook:

a = animate([circle((i,i), 1-1/(i+1), hue=i/10) for i in srange(0,2,0.2)], min=0,ymin=0,xmax=2,ymax=2,figsize=[2,2])
a.show()

I got the message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_9.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSA9IGFuaW1hdGUoW2NpcmNsZSgoaSxpKSwgMS0xLyhpKzEpLCBodWU9aS8xMCkgZm9yIGkgaW4gc3JhbmdlKDAsMiwwLjIpXSwgeG1pbj0wLHltaW49MCx4bWF4PTIseW1heD0yLGZpZ3NpemU9WzIsMl0pCmEuc2hvdygp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>

File "/tmp/tmpWYgSDe/___code___.py", line 4, in <module>
    exec compile(u'a.show()
File "", line 1, in <module>

File "/home/andrei/sage-5.4/local/lib/python2.7/site-packages/sage/plot/animate.py", line 458, in show
    self.gif(delay = delay, iterations = iterations)
 File "/home/andrei/sage-5.4/local/lib/python2.7/site-packages/sage/plot/animate.py", line 381, in gif
    savefile = sage.misc.misc.graphics_filename(ext='gif')
AttributeError: 'module' object has no attribute 'graphics_filename'

Please help me to understand what went wrong. What is missing? Thanks.

click to hide/show revision 2
No.2 Revision

updated 2012-12-07 01:02:35 -0500

kcrisman gravatar image

'module' object has no attribute 'graphics_filename'

Hello everybody! I typed at Sage Notebook:

a = animate([circle((i,i), 1-1/(i+1), hue=i/10) for i in srange(0,2,0.2)], min=0,ymin=0,xmax=2,ymax=2,figsize=[2,2])
xmin=0,ymin=0,xmax=2,ymax=2,figsize=[2,2])
a.show()

I got the message:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "_sage_input_9.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("YSA9IGFuaW1hdGUoW2NpcmNsZSgoaSxpKSwgMS0xLyhpKzEpLCBodWU9aS8xMCkgZm9yIGkgaW4gc3JhbmdlKDAsMiwwLjIpXSwgeG1pbj0wLHltaW49MCx4bWF4PTIseW1heD0yLGZpZ3NpemU9WzIsMl0pCmEuc2hvdygp"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
File "", line 1, in <module>

File "/tmp/tmpWYgSDe/___code___.py", line 4, in <module>
    exec compile(u'a.show()
File "", line 1, in <module>

File "/home/andrei/sage-5.4/local/lib/python2.7/site-packages/sage/plot/animate.py", line 458, in show
    self.gif(delay = delay, iterations = iterations)
 File "/home/andrei/sage-5.4/local/lib/python2.7/site-packages/sage/plot/animate.py", line 381, in gif
    savefile = sage.misc.misc.graphics_filename(ext='gif')
AttributeError: 'module' object has no attribute 'graphics_filename'

Please help me to understand what went wrong. What is missing? Thanks.