Package: python2.7 Version: 2.7.12-1 Severity: normal
Hello, there is a corner in the idle module with a special affiliation with the MacOS, which is truly irrelevant for Debian. However, if starting the PyShell from within Python, the init routine "initializeTkVariantTests" that would be called from the command line is not called and an exception is raised. The Python community is also not overly happy with this situation from what I understand, see https://bugs.python.org/issue27239 However, the issue prohibits to start the autodocktools which starts a shell itself sudo apt-get install autodocktools runAdt With all the confidence that eventually the Python community will fix their behaviour towards something that works like a couple of releases back, I propose to help the Debian community with the knowledge that none of the typical MacOS Tk styles ever apply and initialise the _tk_type with "other" rather than "None". The following works for me $ cat debian/patches/circumventMacOSXconfig.patch Index: python2.7-2.7.12/Lib/idlelib/macosxSupport.py =================================================================== --- python2.7-2.7.12.orig/Lib/idlelib/macosxSupport.py +++ python2.7-2.7.12/Lib/idlelib/macosxSupport.py @@ -18,7 +18,7 @@ def isCarbonAquaTk(root): DeprecationWarning, stacklevel=2) return isCarbonTk() -_tk_type = None +_tk_type = "other" def _initializeTkVariantTests(root): """ Cheers, Steffen