[Tutor] python3.0 and tkinter on ubuntu 8.10

Emad Nawfal (عماد نوفل) emadnawfal at gmail.com
Tue Jan 13 22:32:38 CET 2009


On Tue, Jan 13, 2009 at 4:02 PM, Vern Ceder <vceder at canterburyschool.org>wrote:

> Hi,
>
> I have Python 3.0/Tkinter/IDLE working fine on Ubuntu 8.10, but it takes a
> certain amount of fiddling.
>
> 1. Make sure the stock Ubuntu Python 3.0 package is not installed
>
> 2. download the Python 3.0 source from python.org
>
> 3. install the following packages: build-essential libsqlite3-dev
> libreadline5-dev libncurses5-dev zlib1g-dev libbz2-dev libssl-dev
> libgdbm-dev tk-dev
>
> 4. unpack the Python source and switch to that folder
>
> 5. build Python using the standard ./configure, make, make install sequence
> - if you want more detail/help on that process, just ask...
>
> I'd be happy to explain this process in more detail if anyone wants...
>
> Cheers,
> Vern
>
Yes Vern, it works. Thank you so much.
I installed the missing packages and downloaded and installed the Python3.0
source and it's now perfect.
Thanks again

>
>  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
>>
>
>
> --
> This time for sure!
>   -Bullwinkle J. Moose
> -----------------------------
> Vern Ceder, Director of Technology
> Canterbury School, 3210 Smith Road, Ft Wayne, IN 46804
> vceder at canterburyschool.org; 260-436-0746; FAX: 260-436-5137
>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor
>



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

Emad Soliman Nawfal
Indiana University, Bloomington
http://emnawfal.googlepages.com
--------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090113/6cb5bd23/attachment-0001.htm>


More information about the Tutor mailing list