turtle2

4063 days ago by calcpage123

import turtle help(turtle) 
       
Traceback (click to the left of this block for traceback)
...
ImportError: No module named _tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_2.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW1wb3J0IHR1cnRsZQpoZWxwKHR1cnRsZSk="),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpFeywHb/___code___.py", line 2, in <module>
    import turtle
  File "/home/medlock/sage-4.5.3/local/lib/python2.6/lib-tk/turtle.py", line 107, in <module>
    import Tkinter as TK
  File "/home/medlock/sage-4.5.3/local/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
import this 
       
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
The Zen of Python, by Tim Peters

Beautiful is better than ugly.
Explicit is better than implicit.
Simple is better than complex.
Complex is better than complicated.
Flat is better than nested.
Sparse is better than dense.
Readability counts.
Special cases aren't special enough to break the rules.
Although practicality beats purity.
Errors should never pass silently.
Unless explicitly silenced.
In the face of ambiguity, refuse the temptation to guess.
There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.
Now is better than never.
Although never is often better than *right* now.
If the implementation is hard to explain, it's a bad idea.
If the implementation is easy to explain, it may be a good idea.
Namespaces are one honking great idea -- let's do more of those!
import antigravity 
       
Traceback (click to the left of this block for traceback)
...
ImportError: No module named antigravity
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_4.py", line 10, in <module>
    exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("aW1wb3J0IGFudGlncmF2aXR5"),globals())+"\\n"); execfile(os.path.abspath("___code___.py"))
  File "", line 1, in <module>
    
  File "/tmp/tmpNdy05q/___code___.py", line 2, in <module>
    exec compile(u'import antigravity
  File "", line 1, in <module>
    
ImportError: No module named antigravity
from turtle import * t = Turtle() t.pd() t.fd(100) t.rt(90) t.fd(100) t.rt(90) t.fd(100) t.rt(90) t.fd(100) t.pu() 
       
Traceback (click to the left of this block for traceback)
...
ImportError: No module named _tkinter
Traceback (most recent call last):    t.rt(90)
  File "", line 1, in <module>
    
  File "/tmp/tmp4AFAdu/___code___.py", line 3, in <module>
    from turtle import *
  File "/home/medlock/sage-4.5.3/local/lib/python2.6/lib-tk/turtle.py", line 107, in <module>
    import Tkinter as TK
  File "/home/medlock/sage-4.5.3/local/lib/python2.6/lib-tk/Tkinter.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter