[Pythonmac-SIG] IDLE on Python-2.6 release version
Rajanikanth Jammalamadaka
rajanikanth at gmail.com
Thu Oct 2 19:59:12 CEST 2008
Thanks for your reply Kevin. I installed Tk 8.5 but now I get this error:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/Current/bin/idle",
line 5, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/idlelib/PyShell.py",
line 1382, in main
root = Tk(className="Idle")
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
line 1645, in __init__
self._loadtk()
File "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
line 1659, in _loadtk
% (_tkinter.TK_VERSION, tk_version)
RuntimeError: tk.h version (8.4) doesn't match libtk.a version (8.5)
Also, when I try to build python 2.6 from source, I get this error:
Objects/longobject.c: In function 'PyLong_FromLong':
Objects/longobject.c:101: error: non-trivial conversion at assignment
abs_ival
ival
abs_ival = -ival;
Objects/longobject.c:101: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [Objects/longobject.o] Error 1
Thanks,
Rajanikanth
On Thu, Oct 2, 2008 at 10:32 AM, Kevin Walzer <kw at codebykevin.com> wrote:
> Rajanikanth Jammalamadaka wrote:
>>
>> Any idea how this problem may be fixed?
>>
>> This what I get when I type idle at the command prompt:
>>
>> Traceback (most recent call last):
>> File "/Library/Frameworks/Python.framework/Versions/Current/bin/idle",
>> line 3, in <module>
>> from idlelib.PyShell import main
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/idlelib/PyShell.py",
>> line 14, in <module>
>> import macosxSupport
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/idlelib/macosxSupport.py",
>> line 6, in <module>
>> import Tkinter
>> File
>> "/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-tk/Tkinter.py",
>> line 39, in <module>
>> import _tkinter # If this fails your Python may not be configured for
>> Tk
>> ImportError:
>> dlopen(/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so,
>> 2): Library not loaded:
>> /Library/Frameworks/Tcl.framework/Versions/8.5/Tcl
>> Referenced from:
>>
>> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/lib-dynload/_tkinter.so
>> Reason: image not found
>
> Just a guess, but it appears that Python 2.6 is looking for an installation
> of Tk 8.5 in /Library/Frameworks. I'd suggest installing ActiveTcl
> (http://www.activestate.com). Both Leopard and Tiger come with Tk 8.4
> installed in /System/Library, but that version is now obsolete.
>
> --
> Kevin Walzer
> Code by Kevin
> http://www.codebykevin.com
>
--
Rajanikanth
More information about the Pythonmac-SIG
mailing list