Wie versprochen, die exception. Das man die main.py nicht aufrufen ausser man steht im Verzeichnis in dem sie liegt ist sicher gewollt?
Code: Alles auswählen
dir@client2087 /tmp $ python3.5 python-gui-messaging/GuiDesigner/main.py
Couldn't open file: guidesigner/Guidesigner.py
^CTraceback (most recent call last):
File "python-gui-messaging/GuiDesigner/main.py", line 2, in <module>
tk.Tk().mainloop('guidesigner/Guidesigner.py')
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 901, in mainloop
StatTkInter.Tk.mainloop(self)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1131, in mainloop
self.tk.mainloop(n)
KeyboardInterrupt
dir@client2087 /tmp $ cd python-gui-messaging/GuiDesigner/
dir@client2087 /tmp/python-gui-messaging/GuiDesigner (master =) $ python3.5 main.py
Exception in Tkinter callback
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1550, in __call__
return self.func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 596, in callit
func(*args)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 2601, in DynLoad
exec(evcode)
File "guidesigner/Guidesigner.py", line 1, in <module>
Toplevel("DynTkInterGuiDesigner",title="DynTkInter GuiDesigner",geometry='+30+20',link="guidesigner/Modules.py")
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 926, in __init__
master = _initGuiContainer(kwargs,StatTkInter.Toplevel,self,myname,"toplevel",True,True,None,_TopLevelRoot._container)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 827, in _initGuiContainer
GuiContainer.__init__(element,myname,select,mayhave_grid,isMainWindow,tkmaster,**kwargs)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 604, in __init__
FileImportContainer(self) # if link != ""
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 788, in FileImportContainer
DynLoad(container.link)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 2601, in DynLoad
exec(evcode)
File "guidesigner/Modules.py", line 57, in <module>
LabelFrame('BaseLayout',text="""Layout""",link="guidesigner/BaseLayout.py")
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 1102, in __init__
_initGuiContainer(kwargs,StatTkInter.LabelFrame,self,myname,"labelframe",True)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 827, in _initGuiContainer
GuiContainer.__init__(element,myname,select,mayhave_grid,isMainWindow,tkmaster,**kwargs)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 604, in __init__
FileImportContainer(self) # if link != ""
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 788, in FileImportContainer
DynLoad(container.link)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 2601, in DynLoad
exec(evcode)
File "guidesigner/BaseLayout.py", line 7, in <module>
LabelFrame('GridLayout',link="guidesigner/GridLayout.py")
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 1102, in __init__
_initGuiContainer(kwargs,StatTkInter.LabelFrame,self,myname,"labelframe",True)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 827, in _initGuiContainer
GuiContainer.__init__(element,myname,select,mayhave_grid,isMainWindow,tkmaster,**kwargs)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 604, in __init__
FileImportContainer(self) # if link != ""
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 788, in FileImportContainer
DynLoad(container.link)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 2599, in DynLoad
code = handle.read()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/encodings/ascii.py", line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 20599: ordinal not in range(128)
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1550, in __call__
return self.func(*args)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 933, in destroy
GuiElement.destroy(self)
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 298, in destroy
if widget_exists(self): self.tkClass.destroy(self)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 2146, in destroy
if self._name in self.master.children:
AttributeError: '_CreateTopLevelRoot' object has no attribute 'children'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "main.py", line 2, in <module>
tk.Tk().mainloop('guidesigner/Guidesigner.py')
File "/private/tmp/python-gui-messaging/GuiDesigner/DynTkInter.py", line 901, in mainloop
StatTkInter.Tk.mainloop(self)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1131, in mainloop
self.tk.mainloop(n)
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1554, in __call__
self.widget._report_exception()
File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/tkinter/__init__.py", line 1297, in _report_exception
root.report_callback_exception(exc, val, tb)
AttributeError: '_CreateTopLevelRoot' object has no attribute 'report_callback_exception'
dir@client2087 /tmp/python-gui-messaging/GuiDesigner (master =) $0