Python Error <No module named Tkinter>
mike at mikeasoft.com
Sat Jan 24 20:16:27 CET 2009
> Hi Mike,
> Thank you for the reply.
> I installed the Module TkInter
> and tried running the Python script and getting
> the following error:
> root at om-gta02:~# opkg install python-tkinter
> Installing python-tkinter (2.5.2-ml0) to root...
> Configuring python-tkinter
> root at om-gta02:~# cd /home/root/bin/
> root at om-gta02:~/bin# gui.py
> Traceback (most recent call last):
> File "gui.py", line 34, in <module>
> from Tkinter import *
> File "/usr/lib/python2.5/lib-tk/Tkinter.py", line 38, in <module>
> import _tkinter # If this fails your Python may not be configured for Tk
It looks like the python-tkinter package should depend on tk, you
should probably file a bug about that with open embedded.
So you'll need to install the tk package yourself for now (opkg
Also this sort of thing is probably better suited to the community
mailing list, rather than devel; you're likely to find a lot more people
able to help you that way in future.
> Michael Sheldon wrote:
>> HackCandy wrote:
>> > Hello All,
>> > I am pretty much new to Python. I tried running a script and it
>> > breaks at the first line itself.
>> > ERROR:
>> > -----------------------------------------------------
>> > Traceback (most recent call last):
>> > File "/home/root/bin/test.py", line 34, in <module>
>> > from Tkinter import *
>> > ImportError: No module named Tkinter
>> You need to install the python tkinter module, you can do this by
>> opkg install python-tkinter.
>> Unlike desktop distributions of Python most of the core python modules
>> are packaged separately to reduce space usage.
>> devel mailing list
>> devel at lists.openmoko.org
More information about the devel