Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488208 - dev-lang/python: Backport patch fixing TKinter problems
Summary: dev-lang/python: Backport patch fixing TKinter problems
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2013-10-16 10:57 UTC by Justin Lecher (RETIRED)
Modified: 2013-10-16 23:44 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Lecher (RETIRED) gentoo-dev 2013-10-16 10:57:05 UTC
Please backport http://hg.python.org/cpython/rev/84f40562669f

which fixes problems with the first fix for

http://bugs.python.org/issue19008

like

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/sparky/python/sparky/__init__.py", line 51, in start_session
    tk = tkutil.initialize_tk(argv)
  File "/usr/lib64/sparky/python/sparky/tkutil.py", line 924, in initialize_tk
    tk = Tkinter.Tk(display, program_name, program_class)
  File "/usr/lib64/python2.7/lib-tk/Tkinter.py", line 1748, in __init__
    if not sys.flags.ignore_environment:
UnboundLocalError: local variable 'sys' referenced before assignment
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2013-10-16 12:34:19 UTC
Probably the code needs to be correctly like this:

        self.tk = None
        import sys
        if baseName is None:
            import os
Comment 2 Mike Gilbert gentoo-dev 2013-10-16 15:23:15 UTC
Working on it.
Comment 3 Mike Gilbert gentoo-dev 2013-10-16 23:44:39 UTC
+*python-2.7.5-r3 (16 Oct 2013)
+*python-3.2.5-r3 (16 Oct 2013)
+
+  16 Oct 2013; Mike Gilbert <floppym@gentoo.org>
+  +files/python-2.7-issue16248.patch, +files/python-3.2-issue16248.patch,
+  +python-2.7.5-r3.ebuild, +python-3.2.5-r3.ebuild, -python-2.7.5-r2.ebuild,
+  -python-3.2.5-r2.ebuild:
+  Apply upstream fix for regression in Tkinter, bug 488208 by jlec.
+