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

Build Python 2.5 against Tk 8.5

I'd like to experiment with Tk 8.5 (now in beta) in my Python
application, but Python 2.5 requires Tk 8.4.x. What would I need to
patch in the Python sources or build scripts to get it built against Tk
8.5?
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #1
4 1026
I'd like to experiment with Tk 8.5 (now in beta) in my Python
application, but Python 2.5 requires Tk 8.4.x.
Why do you say that? AFAIK, that's not the case.

Regards,
Martin
Oct 16 '07 #2
Martin v. Löwis wrote:
>I'd like to experiment with Tk 8.5 (now in beta) in my Python
application, but Python 2.5 requires Tk 8.4.x.

Why do you say that? AFAIK, that's not the case.
It's been a while, but when I've tried to run my Tkinter app against Tk
8.5 with a stock Python installation, I get an error message saying that
Tk 8.4.x is required. It's probably tkinter.so that hard-codes the
Tcl/Tk version, not Python itself--I should have been clearer on that.
However, I still need to know what to patch...

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #3
It's been a while, but when I've tried to run my Tkinter app against Tk
8.5 with a stock Python installation, I get an error message saying that
Tk 8.4.x is required.
Can you please clarify what you mean by "stock Python installation"?
I just built Python 2.5.1 with Tk 8.5 on Debian unstable, and it works
fine.
It's probably tkinter.so that hard-codes the
Tcl/Tk version, not Python itself--I should have been clearer on that.
It's still not clear. I'm the current maintainer of the _tkinter module,
and I can assert that _tkinter.c does *not* hard-code Tk 8.4. As you
refer to _tkinter.so, it appears you are talking about a precompiled
version - did you try to build Python yourself?

Regards,
Martin
Oct 16 '07 #4
Martin v. Löwis wrote:
>
Can you please clarify what you mean by "stock Python installation"?
I just built Python 2.5.1 with Tk 8.5 on Debian unstable, and it works
fine.
OK, that's good to know. I'm using the precompiled Mac OS X build of
2.5.1 from python.org.
>
It's still not clear. I'm the current maintainer of the _tkinter module,
and I can assert that _tkinter.c does *not* hard-code Tk 8.4. As you
refer to _tkinter.so, it appears you are talking about a precompiled
version - did you try to build Python yourself?
I'll try to build Python from source and link it against Tk 8.5.
--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Oct 16 '07 #5

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

Similar topics

2
by: Skip Montanaro | last post by:
I'm trying to build the released version of Python 2.3 on Solaris 8 for the first time. It has problems when building _ssl.so. The command generated is gcc -shared...
0
by: matt okeson-harlow | last post by:
i am getting errors trying to build MySQLdb on solaris 8, i have tried changing the libs, no joy, anyone have any ideas? Python 2.3.4 gcc -v Reading specs from...
4
by: Torsten Mohr | last post by:
Hi, i'd like to build an executable file that is linked with a python library and executes a script via PyRun_SimpleString or similar functions. Is there a static library of python available,...
12
by: David Murmann | last post by:
hi all! i just built revision 41809 under winxp using a rather uncommon setup (at least i think so). since i have no visual studio here, i only used freely available tools: cygwin to get the...
26
by: Kevin D. Smith | last post by:
I've written a simple Python extension for UNIX, but I need to get it working on Windows now. I'm having some difficulties figuring out how to do this. I've seen web pages that say that MS Visual...
0
by: Russell E. Owen | last post by:
I'm trying to build a non-framework python on MacOS X 10.5 using a custom tcl/tk that lives in an arbitrary directory. (For complicated reasons we don't want the system tcl/tk). It is easy to build...
1
by: Owen Zhang | last post by:
I am trying to build lxml package in SunOS 5.10. I got the following errors. Does anybody know why? $ python setup.py build Building lxml version 2.1. NOTE: Trying to build without Cython,...
2
by: Robin Becker | last post by:
I'm trying to build Python from the unix sources on an OS 10.5 machine. This is because we're getting strange faults when using the built in python 2.5 together with some precompiled versions of...
4
by: M.-A. Lemburg | last post by:
Hi Robin, On 2008-10-23 17:55, Robin Becker wrote: That looks like a classical name clash between C header files. It also suggests that you have 64-bit client libs of MySQL installed. As...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: Aftab Ahmad | last post by:
Hello Experts! I have written a code in MS Access for a cmd called "WhatsApp Message" to open WhatsApp using that very code but the problem is that it gives a popup message everytime I clicked on...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
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: 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...

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.