472,993 Members | 3,218 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Tkinter & Python 2.5 Problems on MAC OS 10.3.9

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:

iPimpG4:~ profipimp$ tclsh
% info patchlevel
8.4.4
%

But when I try to import Tkinter
>>import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 38, in <module>
import _tkinter # If this fails your Python may not be configured for
Tk
ImportError: dlcompat: dyld:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
can't open library: /Library/Frameworks/Tk.framework/Versions/8.4/Tk (No
such file or directory, errno = 2)
>>>
....this happens.

Why?

Tkinter worked perfectly with 2.3 and 2.4...

Cheers,
Thomas
Nov 16 '06 #1
3 1950
which distribution of python you use ?

I use the one of
http://pythonmac.org/packages/py25-fat/index.html

withoutproblem

Nov 16 '06 #2
Thomas Ploch wrote:
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:

iPimpG4:~ profipimp$ tclsh
% info patchlevel
8.4.4
%

But when I try to import Tkinter
>>>import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 38, in <module>
import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
can't open library: /Library/Frameworks/Tk.framework/Versions/8.4/Tk
(No such file or directory, errno = 2)
>>>>

...this happens.

Why?

Tkinter worked perfectly with 2.3 and 2.4...

Cheers,
Thomas
Where is your installation of Tcl/Tk? It sounds like Python can't find it.

Were you using the standard MacPython builds previously, or Unix-based
builds from Fink or DarwinPorts?

--
Kevin Walzer
Code by Kevin
http://www.codebykevin.com
Nov 16 '06 #3

Kevin Walzer schrieb:
Thomas Ploch wrote:
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:

iPimpG4:~ profipimp$ tclsh
% info patchlevel
8.4.4
%

But when I try to import Tkinter
>>import Tkinter
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk/Tkinter.py",
line 38, in <module>
import _tkinter # If this fails your Python may not be configured
for Tk
ImportError: dlcompat: dyld:
/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python
can't open library: /Library/Frameworks/Tk.framework/Versions/8.4/Tk
(No such file or directory, errno = 2)
>>>
...this happens.

Why?

Tkinter worked perfectly with 2.3 and 2.4...

Cheers,
Thomas

Where is your installation of Tcl/Tk? It sounds like Python can't find it.

Were you using the standard MacPython builds previously, or Unix-based
builds from Fink or DarwinPorts?
I built python from source using gcc 4.0.1, but I have solved it by
installing a version of Tcl/TkAqua, now everything runs fine.

Still I dont know why that has happened. The fink directories are in
searchpath...

Thanks for your help,
Thomas

Nov 16 '06 #4

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

Similar topics

3
by: srijit | last post by:
Hello, Any idea - why the following code crashes on my Win 98 machine with Python 2.3? Everytime I run this code, I have to reboot my machine. I also have Win32all-157 installed. from Tkinter...
7
by: John Slimick | last post by:
I want to do a little Tkinter in my 1 credit python practicum, but I am having problems getting everything installed correctly. A sample of the problem is below: ------------------- The...
7
by: SeeBelow | last post by:
Do many people think that wxPython should replace Tkinter? Is this likely to happen? I ask because I have just started learning Tkinter, and I wonder if I should abandon it in favor of...
4
by: PGMoscatt | last post by:
Hi all, Have just installed Fedora 3 and wish also want to give programming with Python a go. I wish to develop GUI interfaces and believe that 'Tkinter' is the way to go. After installing...
1
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...
0
by: Thomas P. | last post by:
Hello folks, my name is Thomas, and I am new to this newsgroup. So first I want to say hello. :-) ....done! Now, I have a problem concerning my new python2.5 install. With python2.3 and...
0
by: wolfonenet | last post by:
Hi All, My setup is: WinXP Python 2.5.1 TKinter version: $Revision: 50704 $ Tcl: 8.4 Debugger: WinPdb
3
by: J-Burns | last post by:
Hello. Im a bit new to using Tkinter and im not a real pro in programming itself... :P. Need some help here. Problem 1: How do I make something appear on 2 separate windows using Tkinter? By...
0
by: Steve Holden | last post by:
Allen Taylor wrote: You can publish it in the Python package index - see http://pypi.python.org/pypi/ If you want to have it considered for inclusion into future versions of Python then you...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.