473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Python 2.5 Tkinter not configured

Jim
I compiled Python 2.5 from python.org and I get an error message when I try
to import the Tkinter module. Python reports that there is no such module.
It says my Python isn't configured for Tkinter. How do I configure it? I'm
using GCC 4.1.1 to compile the tarball. Thanks for any help with this.

Jim
Jan 30 '07 #1
2 1852
Jim schrieb:
I compiled Python 2.5 from python.org and I get an error message when I try
to import the Tkinter module. Python reports that there is no such module.
It says my Python isn't configured for Tkinter. How do I configure it? I'm
using GCC 4.1.1 to compile the tarball. Thanks for any help with this.
You need to have tcl/tk together with it's development-headers
installed. Python _should_ figure out where things are, and then be
configured to include tkinter.

Diez
Jan 30 '07 #2
Jim
Diez B. Roggisch wrote:
Jim schrieb:
>I compiled Python 2.5 from python.org and I get an error message when I
try to import the Tkinter module. Python reports that there is no such
module. It says my Python isn't configured for Tkinter. How do I
configure it? I'm using GCC 4.1.1 to compile the tarball. Thanks for any
help with this.

You need to have tcl/tk together with it's development-headers
installed. Python _should_ figure out where things are, and then be
configured to include tkinter.

Diez
That was the problem, I got it working after recompiling. Thanks.

Jim
Jan 31 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: gaool | last post by:
Hello, I try to launch a Python script on SunOS system but I have this error: """Traceback (most recent call last): File "ihm1_1.py", line 3, in ? from Tkinter import * File...
14
by: Jeffrey Barish | last post by:
Since upgrading to python 2.4 yesterday, I am no longer able to use Tkinter. From http://www.python.org/moin/TkInter I learned that I need to edit Modules/Setup to include Tkinter during the make....
5
by: Martyn Quick | last post by:
On my desk here at work I have a Mac G4 running Mac OS X v10.2.8. When I go into a terminal and type "python" up comes a nice python interface and all seems great. However when I type "import...
1
by: John Chambers | last post by:
Sp my latest adventure is attempting to use python's Tkinter module on a few machines. On my PB (OSX 10.3.9), I got the following confusing results: /Users/jc: python Python 2.3 (#1, Sep 13...
4
by: BinnyVA | last post by:
I am using Fedora Core 3 Linux and I have a problem with Tk in Python. Whenever I try to run a tk script, I get the error... --------------- Traceback (most recent call last): File "Tk.py",...
3
by: Thomas Ploch | last post by:
Hello folks, Since this is my first post on the list, a brief introduction of myself. My name is Thomas, I am 26 years old, I am a student of Computational Linguistics and I am a python...
2
by: Ralph1 | last post by:
I am running Mac osx 10.4 on a Pentium iMac. I have downloaded, unpacked and installed Tcl 8.5a5, Tk 8.5a5, and then Python 2.5. When I attempt to import Tkinter from a Python shell, I get the...
11
by: MartinRinehart | last post by:
I went to Python.org, DL'd Python 2.5 source code per the usual inadequate instructions and ran the make files successfully (sort of). Python 2.5 works fine. But "from Tkinter import *" gets a...
1
by: Dogzilla1000 | last post by:
I just installed Python 2.5.2 on UBUNTU Linux. It seems to work, however I don't seem to have access Tkinter. This is the result of "import Tkinter": Python 2.5.2 (r252:60911, Jul 7 2008,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.