473,324 Members | 2,400 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,324 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 1963
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
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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.