[New-bugs-announce] [issue19008] tkinter: UnboundLocalError: local variable 'sys' referenced before assignment
Laurence McGlashan
report at bugs.python.org
Fri Sep 13 14:04:45 CEST 2013
New submission from Laurence McGlashan:
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.
----------
components: Tkinter
files: Tkinter.patch
keywords: patch
messages: 197563
nosy: Laurence.McGlashan
priority: normal
severity: normal
status: open
title: tkinter: UnboundLocalError: local variable 'sys' referenced before assignment
versions: Python 2.7
Added file: http://bugs.python.org/file31738/Tkinter.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19008>
_______________________________________
More information about the New-bugs-announce
mailing list