473,714 Members | 2,381 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems installing Python 2.3 with Tkinter linked to Tcl/Tk 8.4

I have just installed Python 2.3.3, after first installing Tcl/Tk
8.4.6.

After successful installation of Tcl/Tk (including passing configure
the '--enable-shared' option), and testing both Tcl and Tk, I
unpacked Python2.3 and began a frustrating installation. After
standard configuration, make told me it was renaming module _tkinter
because the module was not found (sorry I am omitting the exact
warning message) - I don't understand that completely, but that was
what it said. So I then edited the Setup file in Python2.3/Modules/
so that it would 1) include _tkinter, 2) look for tkinter in
/usr/local/lib, 3) look for tk.h in /usr/local/include, 4) find X11,
and 5) look for libtk8.4 and libtcl8.4.

So I went through make and it told me that libtk8.4.so could not be
opened. The file existed with read and execute privileges for all in
/usr/local/lib, so I was perplexed.

I then found a single helpful explanation (among many completely
misleading ones) at
http://www.talkaboutprogramming.com/...es/290343.html
(which is for Fedora, but works well with RH 8.0.

However, upon having written the script that it suggests, and
deleting the /usr/local/bin/python, I realized that idle was broken.
Also, scripts could not be executed with the sh-bang line at top if
written for Python 2.3. So I moved python2.3 over to python again,
and realized that idle still wouldn't work because Python will not
look for Tcl/Tk where it installs by default.

Is there a better solution than the one I followed? If not, is there
a plan for generalizing the Python Tkinter installation so that it
will look for Tcl/Tk instead of assuming that it knows where it is? I
found it messy enough having to deal with multiple Python
installations due to RedHat's reliance on old versions, and this is
simply a show-stopper when it comes to recommending Python to others.

I have to wonder if I am doing something very wrong, but I have no
idea where my mistake would be. If nothing else, others with this
problem may see this post and at least have a temporary fix.

- Jeremy


_______________ _______________ ____
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
http://hotjobs.sweepstakes.yahoo.com/careermakeover

Jul 18 '05 #1
0 1503

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

Similar topics

0
1407
by: jose flanigan | last post by:
I don't have root access, but managed to install Tcl/Tk in my local directory. I've also managed to install python 2.2 in my local directory. The problem is that for some reason Tkinter isn't working. I've looked through the various messages in the python installation and it seems like part of the installation is trying to write something to a directory that I don't have write-permission to I think this might be causing the problem. Is...
0
1512
by: Dean N. Williams | last post by:
Dear Python Help, I am trying to install Python with Tkinter on my Mac OS X PowerBook G4 platform, but having some difficulties apparently with missing directories and files. I can build Python without Tkinter okay, but when I try to build with Tkinter it doesn't seem to build the appropriate directories or files. For example, in version Python 2.3b1, I have the directory build/lib.darwin-6.6-Power_Macintosh-2.3, which contains...
3
5152
by: 孔 翔 | last post by:
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. Find the line that begins # the _tkinter module 2. Several lines need to be uncommented in order to
1
1532
by: Robert | last post by:
I am trying to use tkinter on macos 10.2.6. I am not having any luck. I have tried this. python python2.4 after downloading downloaded TclTkAquaBI-8.4.6.1-Jaguar.dmg and installed python2.4 could not find tkiniter downloaded macpython 2.3.3 macphyton find tkinter but got an application
1
3598
by: Michael Yanowitz | last post by:
Hello: Below I have included a stripped down version of the GUI I am working on. It contains 2 dialog boxes - one main and one settings. It has the following problems, probably all related, that I am hoping someone knows what I am doing wrong: 1) Pressing the Settings.. Button multiple times, brings up many instances of the Settings Panel. I just want it to bring up one. Is there an easy way to do that?
28
2630
by: H J van Rooyen | last post by:
Hi, I want to write a small system that is transaction based. I want to split the GUI front end data entry away from the file handling and record keeping. Now it seems almost trivially easy using the sockets module to communicate between machines on the same LAN, so that I want to do the record keeping on one machine.
3
1977
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 user. :-) Now my problem: I have Tcl/Tk 8.4.4 installed:
1
2194
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, 12:39:49) on linux2 Type "help", "copyright", "credits" or "license" for more information. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python2.5/lib-tk/Tkinter.py", line 38, in
4
4989
by: njwilson23 | last post by:
I'm having trouble with tkinter on a new installation of Python (2.6), built with the framework option from source that was downloaded from python.org. I'm running OS 10.4 on a PowerPC G4. The problem first arose when I tried to run matplotlib - it couldn't find tcl/tk because it was searching for 8.5, and I had 8.4. I found and built tcl/tk 8.5, which led to a new error, reproduced below: Traceback (most recent call last): File...
0
8808
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, well explore What is ONU, What Is Router, ONU & Routers main usage, and What is the difference between ONU and Router. Lets take a closer look ! Part I. Meaning of...
0
9316
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9177
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7954
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing, and deploymentwithout human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4465
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4727
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2524
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2113
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.