Tkinter python module

Marc Lanskey yellowdog-general@lists.terrasoftsolutions.com
Thu Mar 25 21:27:02 2004


You were right. I did not have tkinter properly installed even
though it appeared that I did. So I used yum to install tkinter
and all appears to work fine now. Thanks alot.



---- On Wed, 24 Mar 2004, Greg Hamilton
(gregh@object-craft.com.au) wrote:

> Do you have the file
/usr/lib/python2.2/lib-dynload/_tkinter.so and the 
> directory /usr/lib/python2.2/lib-tk (should contain lots of Tk
related 
> Python source and byte-code files)?
> 
> If not then you have a build of Python without Tk, which is
unlikely 
> because it's a standard module. If so try using yum to remove
and 
> re-install Python.
> 
> If the files are present then Python has a problem resolving
modules. 
> Check the value of sys.path.
> 
> $ python
> Python 2.2.2 (#1, Mar  5 2003, 20:26:26)
> [GCC 3.2.2 20030217 (Yellow Dog Linux 3.0 3.2.2-2a)] on linux2
> Type "help", "copyright", "credits" or "license" for more
information.
>  >>> import sys
>  >>> sys.path
> ['', '/usr/lib/python2.2', '/usr/lib/python2.2/plat-linux2', 
> '/usr/lib/python2.2/lib-tk', '/usr/lib/python2.2/lib-dynload',

> '/usr/lib/python2.2/site-packages',
> '/usr/lib/python2.2/site-packages/PIL', 
> '/usr/lib/python2.2/site-packages/gtk-2.0']
> 
> Python will search the current directory and then each of the
dirs in 
> the sys.path list trying to find the module you're trying to
import. 
> You should see the path to lib-tk included there.
> 
> 
> On 24/03/2004, at 12:48 PM, Marc Lanskey wrote:
> 
> > Both tk and tkinter RPM's appear to be installed according
to
> > the yum listing.
> >
> > tk                                       ppc        8.3.3-74
> > tkinter                                  ppc       
2.2.2-21a
> >
> >
> > ---- On Tue, 23 Mar 2004, Greg Hamilton
> > (gregh@object-craft.com.au) wrote:
> >
> >> That's weird. Works for me.
> >>
> >> Do you have tk and tkinter RPMs installed?
> >>
> >> Greg
> >>
> >> On 23/03/2004, at 3:58 PM, Marc Lanskey wrote:
> >>
> >>> I have installed Yellow Dog 3.0 from a set of distribution
> > CDs
> >>> and have not compiled a newer version of Python. YUM shows
> > that
> >>> I have python 2.2.2-21a installed.
> >>>
> >>> Looking in Installed Packages:
> >>> Name                                     Arch      
Version
> >>>
> >
-----------------------------------------------------------------------
> >
> >>> ---------
> >>> python                                   ppc
> > 2.2.2-21a
> >>>
> >>>
> >>>
> >>>
> >>> ---- On Tue, 23 Mar 2004, Greg Hamilton
> >>> (gregh@object-craft.com.au) wrote:
> >>>
> >>>> According to the Python website the Tkinter module is a
> >>> standard module.
> >>>> http://www.python.org/topics/tkinter/download.html
> >>>>
> >>>> The module is present in the Python 2.2.2 binary
installed
> >>> with YDL >=
> >>>> 3.0
> >>>>
> >>>> Have you compiled a more recent version of Python and
> > perhaps
> >>>> inadvertently buggered something up?
> >>>>
> >>>> On 23/03/2004, at 2:51 PM, Marc Lanskey wrote:
> >>>>
> >>>>> In the process of checking Tkinter support under python,
> >>> iwsa
> >>>>> following the procedure in step 1 on the web page
> >>>>>
> > http://www.python.org/topics/tkinter/trouble.html#checking.
> >>>>> Since I got the message "No module name _tkinter", I was
> >>>>> directed to edit modules/setup. What is this file and
> > where
> >>> can
> >>>>> it be found?
> >>>>>
> >>>>>
> >>>>>
> >>>>> ________________________________________________
> >>>>> Get your own "800" number
> >>>>> Voicemail, fax, email, and a lot more
> >>>>> http://www.ureach.com/reg/tag
> >>>>> _______________________________________________
> >>>>> yellowdog-general mailing list
> >>>>> yellowdog-general@lists.terrasoftsolutions.com
> >>>>>
> >>>
> >
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> >>>>> HINT: to Google archives, try  '<keywords>
> >>> site:terrasoftsolutions.com'
> >>>>>
> >>>>
> >>>> _______________________________________________
> >>>> yellowdog-general mailing list
> >>>> yellowdog-general@lists.terrasoftsolutions.com
> >>>>
> >>>
> >
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> >>>> HINT: to Google archives, try  '<keywords>
> >>> site:terrasoftsolutions.com'
> >>>>
> >>>>
> >>>
> >>>
> >>> ________________________________________________
> >>> Get your own "800" number
> >>> Voicemail, fax, email, and a lot more
> >>> http://www.ureach.com/reg/tag
> >>> _______________________________________________
> >>> yellowdog-general mailing list
> >>> yellowdog-general@lists.terrasoftsolutions.com
> >>>
> >
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> >>> HINT: to Google archives, try  '<keywords>
> > site:terrasoftsolutions.com'
> >>>
> >>
> >> _______________________________________________
> >> yellowdog-general mailing list
> >> yellowdog-general@lists.terrasoftsolutions.com
> >>
> >
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> >> HINT: to Google archives, try  '<keywords>
> > site:terrasoftsolutions.com'
> >>
> >>
> >
> >
> > ________________________________________________
> > Get your own "800" number
> > Voicemail, fax, email, and a lot more
> > http://www.ureach.com/reg/tag
> > _______________________________________________
> > yellowdog-general mailing list
> > yellowdog-general@lists.terrasoftsolutions.com
> >
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> > HINT: to Google archives, try  '<keywords>
site:terrasoftsolutions.com'
> >
> 
> _______________________________________________
> yellowdog-general mailing list
> yellowdog-general@lists.terrasoftsolutions.com
>
http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-general
> HINT: to Google archives, try  '<keywords>
site:terrasoftsolutions.com'
> 
> 


________________________________________________
Get your own "800" number
Voicemail, fax, email, and a lot more
http://www.ureach.com/reg/tag