Again: Python Error <No module named Tkinter>

Martin Jansa martin.jansa at gmail.com
Tue May 18 11:25:25 CEST 2010


On Mon, May 17, 2010 at 07:28:11AM -0700, sferic wrote:
> 
> Hello to all,
> 
> I try straight to start python idle. I get the following messages:
> 
> root at om-gta02 ~ $ idle
> Traceback (most recent call last):
>   File "/usr/bin/idle", line 3, in <module>
>     from idlelib.PyShell import main
>   File "/usr/lib/python2.6/idlelib/PyShell.py", line 14, in <module>
>     import macosxSupport
>   File "/usr/lib/python2.6/idlelib/macosxSupport.py", line 6, in <module>
>     import Tkinter
>   File "/usr/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
> 
> On my Freerunner the following modules are installed:
> 
> python-idle  - 2.6.4-ml8.1.4
> python-tkinter - 2.6.4-ml8.1.4
> libtcl8.4-0 - 8.4.19-r4.4
> libtk8.4-0 - 8.4.19-r0.4 (manually downloaded by
> http://build.shr-project.org/shr-testing/ipk-pre-gcc-4.4.3/armv4t/ and
> installed because it's not (more?) contained in
> http://build.shr-project.org/shr-testing/ipk/armv4t/)

Please don't use ipk-pre-gcc-4.4.3, it's only temporary dir crated
before syncing new feed built from scratch with newer gcc and can be
removed soon.

And libtk8.4-0/python-tkinter is built properly only when there is tk
built before python recipe (which is ensured by tk in DISTRO_FEATURES
which we're not using). Even when I rebuild it now, package version 
won't be changed and you will have to -force-reinstall it.

Regards,

-- 
uin:136542059                jid:Martin.Jansa at gmail.com
Jansa Martin                 sip:jamasip at voip.wengo.fr 
JaMa                         



More information about the community mailing list