classification
Title: tkinter: UnboundLocalError: local variable 'sys' referenced before assignment
Type: crash Stage:
Components: Tkinter Versions: Python 2.7
process
Status: closed Resolution: duplicate
Dependencies: Superseder: Security bug in tkinter allows for untrusted, arbitrary code execution.
View: 16248
Assigned To: Nosy List: Laurence.McGlashan
Priority: normal Keywords: patch

Created on 2013-09-13 12:04 by Laurence.McGlashan, last changed 2013-09-13 12:30 by Arfrever. This issue is now closed.

Files
File name Uploaded Description Edit
Tkinter.patch Laurence.McGlashan, 2013-09-13 12:04
Messages (1)
msg197563 - (view) Author: Laurence McGlashan (Laurence.McGlashan) Date: 2013-09-13 12:04
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/lib64/python2.7/site-packages/sk1/__init__.py", line 21, in <module>
    app.main.main()
  File "/usr/lib64/python2.7/site-packages/sk1/app/main.py", line 150, in main
    application = SketchApplication(filename, options.display, options.geometry, run_script = options.run_script)
  File "/usr/lib64/python2.7/site-packages/sk1/app/skapp.py", line 155, in __init__
    TkApplication.__init__(self, screen_name = screen_name, geometry = geometry)
  File "/usr/lib64/python2.7/site-packages/sk1/app/skapp.py", line 60, in __init__
    self.init_tk(screen_name, geometry)
  File "/usr/lib64/python2.7/site-packages/sk1/app/skapp.py", line 185, in init_tk
    TkApplication.init_tk(self, screen_name = screen_name, geometry = geometry)
  File "/usr/lib64/python2.7/site-packages/sk1/app/skapp.py", line 63, in init_tk
    self.root = Tk(screenName = screen_name, baseName = self.tk_basename, className = self.tk_class_name)
  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


Patch attached.
History
Date User Action Args
2013-09-13 12:30:46Arfreversetstatus: open -> closed
superseder: Security bug in tkinter allows for untrusted, arbitrary code execution.
resolution: duplicate
2013-09-13 12:21:43Laurence.McGlashansettype: crash
2013-09-13 12:04:45Laurence.McGlashancreate