473,320 Members | 1,612 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,320 software developers and data experts.

Installing tcl/tk on Linux

Hi,I'm a newbie on python.

When I was trying to install python on Linux, I followed
these instructions:

1.Open the file Modules/Setup in the Python directory.
[Note: Do not alter the file Setup.in-only the file named
Setup should be modified.] Find the line that begins
# the _tkinter module

2. Several lines need to be uncommented in order to
install the module. Follow theplatform-specific
instructions in this section to comment and uncomment the
appropriatelines. Save the file and re-build Python.
Tkinter can now be accessed byimporting the Tkinter
module.
But when I finished those steps, i found following
problem:

[root@Linux9 Python-2.3.3c1]# python
Python 2.3.3c1 (#5, Dec 18 2003, 10:52:58)
[GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2
Type "help", "copyright", "credits" or "license" for more
information.
from Tkinter import * Traceback (most recent call last):
File "<stdin>", line 1, in ?
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


Would anyone tell me the exact steps to configure Tkinter
on Linux?


Thx a lot.
kongx

__________________________________________________
Do You Yahoo!?
Yahoo! BB is Broadband by Yahoo!
http://bb.yahoo.co.jp/
Jul 18 '05 #1
3 5137
I have been struggeling with this too for a long time.

But I see you use Red Hat, so why don't you just download the rpm packages,
http://www.python.org/2.3.2/rpms.html and install these. It worked for me.

Good luck,

Arjen

Jul 18 '05 #2
? ? <ko*******@yahoo.co.jp> wrote in message news:<ma*************************************@pyth on.org>...
Hi,I'm a newbie on python.

When I was trying to install python on Linux <snip>


Making Tkinter to work under Red Hat can be difficult (this is one
of the reason why I switched to Mandrake). Google for
"Tkinter Red Hat" on this newsgroup and you will find plenty
of advice.

Michele
Jul 18 '05 #3
Have you installed Tcl/Tk?

See: http://www.python.org/topics/tkinter/download.html

"For Unix, you must download, build and install both Tcl and Tk from
the source. Build Tcl first. Each source distribution contains a
README file explaining the process. It's about as simple as building
and installing Python. Tip for GCC users: you must pass "--enable-gcc"
to the configure script."
Jul 18 '05 #4

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

Similar topics

3
by: Jean-Christian Imbeault | last post by:
I have a user account on a RH Linux machine but no root access. I succesfully installed apache 1.3 under my /home/ account but can't get PHP to install properly. I have done the following...
7
by: Edward Diener | last post by:
I can install Python 2.4 on the Fedora 3 Linux system, but after I do a number of Linux utilities and commands, like yum, stop working because they were dependent on the Python 2.3 installation....
0
by: Darren L. Weber | last post by:
The following is a first attempt to almost create a shell script for installation of ATLAS and LAPACK. It does not work right now and it is specific to a particular platform. It is posted here to...
2
by: Hemant Shah | last post by:
Folks, I have installed DB2 UDB 8.1 FP4 on a RedHat 9.0 system. I am trying to install Net Search Extender 8.1 but I am having problem with the install. Here is the error I get: #...
0
by: bwhitehd | last post by:
I'm having a problem installing php. The compile seems to go fine, but when it gets to the install step I get the following errors. Does anyone have an idea of what might be the problem? We...
1
by: gmax2006 | last post by:
Hi, I am having hard time with installing MySQLdb on Linux. My Python version is 2.3. I have downloaded "MySQL-python-1.2.1_p2.tar.gz" from sourceforge. The README file asks for MySQL...
7
by: Yansky | last post by:
I asked my hosting company if they would upgrade Python on my server to the latest version. They responded with: "Sorry no. We tend to stick with what comes packaged with the unix distribution...
5
by: jgelfand | last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/ usr/local/yosi/ciao-4.0/ots" --enable-shared" appears to be fine, but I get the...
6
by: everlast | last post by:
I'm installing BLT module (among others) in my directories - not as a root user. The installation of Tcl and Tk went fine(that means that all of my system variables like PREFIX are set correctly),...
2
by: Ruslan A Dautkhanov | last post by:
Hello ! I'm about to install O9i on FreeBSD box. uname -a: FreeBSD stat2.scn.ru 5.2.1-RELEASE-p3 FreeBSD 5.2.1-RELEASE-p3 #2: Fri Apr 23 19:19:43 KRAST 2004...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.