classification
Title: Idle + tcl 8.6.0 Can't convert '_tkinter.Tcl_Obj' object to str implicitly
Type: behavior Stage: resolved
Components: IDLE, Tkinter Versions: Python 3.3, Python 3.4
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)
View: 16809
Assigned To: Nosy List: HJarausch, serhiy.storchaka
Priority: normal Keywords:

Created on 2013-02-21 11:11 by HJarausch, last changed 2013-02-21 11:51 by serhiy.storchaka. This issue is now closed.

Messages (2)
msg182587 - (view) Author: Helmut Jarausch (HJarausch) Date: 2013-02-21 11:11
I have tcl/tk 8.6.0 installed here. Both Python versions below
are build from source.

I'm using LANG=en_US.iso88591 here if that matters.

When opening a file in Idle with 
python-3.3.1 revision: c08bcf5302ec

or

python-3.4.0a0 (default:3a110a506d35) (HG version)

I get
Failed to load extension 'CodeContext'
Traceback (most recent call last):
  File "/home/jarausch/GenToo/LOC/TEST/Python/cpython/Lib/idlelib/EditorWindow.py", line 1034, in load_standard_extensions
    self.load_extension(name)
  File "/home/jarausch/GenToo/LOC/TEST/Python/cpython/Lib/idlelib/EditorWindow.py", line 1055, in load_extension
    ins = cls(self)
  File "/home/jarausch/GenToo/LOC/TEST/Python/cpython/Lib/idlelib/CodeContext.py", line 49, in __init__
    self.toggle_code_context_event()
  File "/home/jarausch/GenToo/LOC/TEST/Python/cpython/Lib/idlelib/CodeContext.py", line 66, in toggle_code_context_event
    padx += int(str( widget.pack_info()['padx'] ))
  File "/home/jarausch/GenToo/LOC/TEST/Python/cpython/Lib/tkinter/__init__.py", line 1919, in pack_info
    self.tk.call('pack', 'info', self._w))
TypeError: Can't convert '_tkinter.Tcl_Obj' object to str implicitly
msg182588 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2013-02-21 11:51
Python is not ready for Tcl/Tk 8.6 yet.
History
Date User Action Args
2013-02-21 11:51:03serhiy.storchakasetstatus: open -> closed

superseder: Tk 8.6.0 introduces TypeError. (Tk 8.5.13 works)
nosy: + serhiy.storchaka
components: + Tkinter

messages: + msg182588
type: behavior
resolution: duplicate
stage: resolved
2013-02-21 11:11:30HJarauschcreate