Newbie: tkinter question

Isaac To kkto at csis.hku.hk
Mon Oct 15 10:31:26 EDT 2001


>>>>> "Cameron" == Cameron Laird <claird at starbase.neosoft.com> writes:

    Cameron> .  .  .  In the absence of explanation from a Debian
    Cameron> expert--and I do recognize there are a several nearby--my usual
    Cameron> ad- vice is to download Python 2.2 and re-build your own
    Cameron> installation.  Are you comfortable with such a generation?
    Cameron> It's quite straightforward.

This is a big mis-advice.  You'll definitely get a working Python by
compiling it yourselves.  But then the 100 packages depending on Python will
refuse to install because the Python dependency is not met.  In simple
words, don't compile your own Python, and even if you want to, you should
get the source from Debian and use the Debian way to compile it.

    Cameron> What you've done is absolutely right.  A correct 1.5.2 should
    Cameron> be able to import Tkinter.  --

No.  Debian break up Python into many packages.  Tkinter is in a package
called python-tk.  It does not contains the string "tkinter", so perhaps
this is why the original poster don't notice that he should install this
package to get Tkinter working.

Regards,
Isaac.



More information about the Python-list mailing list