By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,223 Members | 1,371 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,223 IT Pros & Developers. It's quick & easy.

Get error "ImportError: No module named _tkinter"

P: n/a
Hi,

I'am a beginner in Python and I have got a problem with
the TKInter module.
When I want to start e.g. pysol, I get following output:
[output]
Traceback (most recent call last):
File "/usr/share/games/pysol/src/pysol.py", line 47, in ?
from main import main
File "/usr/share/games/pysol/src/main.py", line 48, in ?
from app import Application
File "/usr/share/games/pysol/src/app.py", line 54, in ?
from images import Images, SubsampledImages
File "/usr/share/games/pysol/src/images.py", line 47, in ?
from pysoltk import tkversion, loadImage, copyImage, createImage
File "/usr/share/games/pysol/src/pysoltk.py", line 81, in ?
exec "from " + m + " import *"
File "<string>", line 1, in ?
File "/usr/share/games/pysol/src/tk/tkconst.py", line 39, in ?
import Tkinter
File "/usr/local/lib/python2.3/lib-tk/Tkinter.py", line 38, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
[/output]

I'am using Suse Linux 9.0 with Python 2.3.3.
Can anybody help me?
cu

Jul 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
In article <bv*************@news.t-online.com>,
Sebastian Stelzer <de********@web.de> wrote:

import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter

I'am using Suse Linux 9.0 with Python 2.3.3.


You need to install Tck/Tk devel package, then rebuild Python.
--
Aahz (aa**@pythoncraft.com) <*> http://www.pythoncraft.com/

"The joy of coding Python should be in seeing short, concise, readable
classes that express a lot of action in a small amount of clear code --
not in reams of trivial code that bores the reader to death." --GvR
Jul 18 '05 #2

P: n/a
Aahz wrote:
In article <bv*************@news.t-online.com>,
Sebastian Stelzer <de********@web.de> wrote:

import _tkinter # If this fails your Python may not be configured for
Tk
ImportError: No module named _tkinter

I'am using Suse Linux 9.0 with Python 2.3.3.


You need to install Tck/Tk devel package, then rebuild Python.

I did it and I' got the same error.
Can you tell it more exactly please?
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.