Python Error <No module named Tkinter>

HackCandy hackhell.candy at gmail.com
Sat Jan 24 20:07:19 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...
Downloading
http://downloads.openmoko.org/repository/Om2008.8/armv4t/python-tkinter_2.5.2-ml0_armv4t.opk
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

ImportError: libtk8.4.so: cannot open shared object file: No such file or
directory

Please help.
- HC.


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.
> 
> <snip>
> 
>  > 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
> running:
> 
> opkg install python-tkinter.
> 
>   Unlike desktop distributions of Python most of the core python modules 
> are packaged separately to reduce space usage.
> 
> Cheers,
>   Mike.
> 
> _______________________________________________
> devel mailing list
> devel at lists.openmoko.org
> https://lists.openmoko.org/mailman/listinfo/devel
> 
> 

-- 
View this message in context: http://n2.nabble.com/Python-Error-%3CNo-module-named-Tkinter%3E-tp2209650p2210070.html
Sent from the Openmoko Devel mailing list archive at Nabble.com.




More information about the devel mailing list