[Tutor] python3.0 and tkinter on ubuntu 8.10

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Tue Jan 13 21:14:09 CET 2009


Hi Tutors,I have downloaded Python3.0 and started playing with it. I like it
because of the utf-8 default encoding, but I'm having trouble importing
tkinter. I get the following:
>>> import turtle
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/turtle.py", line 107, in <module>
    import tkinter as TK
  File "/usr/local/lib/python3.0/tkinter/__init__.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>> import tkinter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.0/tkinter/__init__.py", line 39, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>>

Any idea how this can be solved on Ubuntu 8.10. I don't have this problem
with the default Python installation (2.5.2)
Thank you


-- 
لا أعرف مظلوما تواطأ الناس علي هضمه ولا زهدوا في إنصافه كالحقيقة.....محمد
الغزالي
"No victim has ever been more repressed and alienated than the truth"

Emad Soliman Nawfal
Indiana University, Bloomington

--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090113/2b76763a/attachment.htm>


More information about the Tutor mailing list