Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old November 16th, 2006, 10:55 AM
Thomas Ploch
Guest
 
Posts: n/a
Default 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
Quote:
Quote:
Quote:
>>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)
Quote:
Quote:
Quote:
>>>
....this happens.

Why?

Tkinter worked perfectly with 2.3 and 2.4...

Cheers,
Thomas
  #2  
Old November 16th, 2006, 12:05 PM
martin.laloux@gmail.com
Guest
 
Posts: n/a
Default Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9

which distribution of python you use ?

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

withoutproblem

  #3  
Old November 16th, 2006, 12:55 PM
Kevin Walzer
Guest
 
Posts: n/a
Default Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9

Thomas Ploch wrote:
Quote:
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
>
Quote:
Quote:
>>>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)
>
Quote:
Quote:
>>>>
>
...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
  #4  
Old November 16th, 2006, 02:55 PM
Thomas Ploch
Guest
 
Posts: n/a
Default Re: Tkinter & Python 2.5 Problems on MAC OS 10.3.9


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

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles