From: Kevin A. <al...@se...> - 2005-08-24 01:28:54
|
On Aug 23, 2005, at 5:02 PM, bra...@om... wrote: > > Alex Tweedly wrote on 08/23/2005 04:07:27 PM: > > > Could you possibly try running it with the logging option ("-l" =20 > appended) also ? > > Ok, here it is: > > > oms-ballen:/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor =20 > ballen$ pythonw2.4 resourceEditor.py -l > wx.PlatformInfo: ('__WXMAC__', 'wxMac', 'unicode', 'wx-assertions-on') > wx.VERSION: (2, 6, 0, 0, '') > DEBUG: : Tue Aug 23 18:59:18 2005: default: (None, 'mac-roman') > DEBUG: : Tue Aug 23 18:59:18 2005: ['resourceEditor.mac.rsrc.py', =20 > 'resourceEditor.rsrc.py'] > DEBUG: : Tue Aug 23 18:59:18 2005: Initializing Background... > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: = on_bottomLeft_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_bottomMiddle_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_bottomRight_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_close > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: = on_componentAdd_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentBringFront_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentDelete_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentDuplicate_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentMoveBack_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentMoveForward_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_componentSendBack_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_displayAttributes_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_doHelpAboutPythonCard_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_editBackgroundInfo_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_editDialogInfo_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_editMenubar_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_editStackInfo_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_editStrings_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_exit_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_filePreviewDialog_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_fileRunOptions_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_fileRunWithInterpreter_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_fileRun_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_initialize > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_keyPress > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuEditCopy_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuEditCut_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: = on_menuEditPaste_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuFileNewDialog_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuFileNew_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuFileOpen_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuFileRevert_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuFileSaveAs_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuFileSave_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: = on_menuHelpAbout_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuOptionsAlignToGrid_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuOptionsShowGridLines_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_menuViewPropertyEditor_select > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: = on_middleLeft_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_middleRight_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_minimize > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseDoubleClick > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseDown > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseEnter > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseLeave > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_mouseUp > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_optionGridSize_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_showPythonCardDocumentation_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: =20 > on_showResourceEditorDocumentation_command > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_size > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_topLeft_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_topMiddle_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_topRight_mouseDrag > DEBUG: : Tue Aug 23 18:59:18 2005: imported component bitmapcanvas > DEBUG: : Tue Aug 23 18:59:18 2005: imported component button > DEBUG: : Tue Aug 23 18:59:18 2005: imported component calendar > DEBUG: : Tue Aug 23 18:59:18 2005: imported component checkbox > DEBUG: : Tue Aug 23 18:59:18 2005: imported component choice > DEBUG: : Tue Aug 23 18:59:18 2005: imported component codeeditor > DEBUG: : Tue Aug 23 18:59:18 2005: imported component combobox > DEBUG: : Tue Aug 23 18:59:18 2005: imported component floatcanvas > DEBUG: : Tue Aug 23 18:59:18 2005: imported component gauge > DEBUG: : Tue Aug 23 18:59:18 2005: imported component htmlwindow > DEBUG: : Tue Aug 23 18:59:18 2005: imported component image > DEBUG: : Tue Aug 23 18:59:18 2005: imported component imagebutton > DEBUG: : Tue Aug 23 18:59:18 2005: imported component list > DEBUG: : Tue Aug 23 18:59:18 2005: imported component multicolumnlist > DEBUG: : Tue Aug 23 18:59:18 2005: imported component notebook > DEBUG: : Tue Aug 23 18:59:18 2005: imported component passwordfield > DEBUG: : Tue Aug 23 18:59:18 2005: imported component radiogroup > DEBUG: : Tue Aug 23 18:59:19 2005: imported component slider > DEBUG: : Tue Aug 23 18:59:19 2005: imported component spinner > DEBUG: : Tue Aug 23 18:59:19 2005: imported component staticbox > DEBUG: : Tue Aug 23 18:59:19 2005: imported component staticline > DEBUG: : Tue Aug 23 18:59:19 2005: imported component statictext > DEBUG: : Tue Aug 23 18:59:19 2005: imported component textarea > DEBUG: : Tue Aug 23 18:59:19 2005: imported component textfield > DEBUG: : Tue Aug 23 18:59:19 2005: imported component togglebutton > DEBUG: : Tue Aug 23 18:59:19 2005: imported component tree > DEBUG: : Tue Aug 23 18:59:19 2005: default: (None, 'mac-roman') > DEBUG: : Tue Aug 23 18:59:19 2005: =20 > ['/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/=20 > propertyEditor.mac.rsrc.py', =20 > '/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/=20 > propertyEditor.rsrc.py'] > no resource file for =20 > /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/propertyEditor > Traceback (most recent call last): > =A0 File =20 > "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/=20 > site-packages/wx-2.6-mac-unicode/wx/_core.py", line 11904, in <lambda> > =A0 =A0 lambda event: event.callable(*event.args, **event.kw) ) > =A0 File "resourceEditor.py", line 138, in on_initialize > =A0 =A0 self.propertyEditorWindow =3D model.childWindow(self, = PropertyEditor) > =A0 File "/OMS/dev/pythonPackages/PythonCard/model.py", line 220, in =20= > childWindow > =A0 =A0 rsrc =3D resource.ResourceFile(filename).getResource() > =A0 File "/OMS/dev/pythonPackages/PythonCard/resource.py", line 45, in = =20 > __init__ > =A0 =A0 self.dictionary =3D util.readAndEvalFile(rsrcFileName) > =A0 File "/OMS/dev/pythonPackages/PythonCard/util.py", line 37, in =20 > readAndEvalFile > =A0 =A0 f =3D open(filename) > TypeError: coercing to Unicode: need string or buffer, NoneType found > ^C Well this is quite annoying, either a path bug with the pythonw2.4 on =20= the Mac (seems most likely) or the way the paths are manipulated in =20 model.py is causing a problem. Anyway, I assume this is happening in =20 resourceEditor.py due to this line from modules.propertyEditor import PropertyEditor which is different from the other imports where we have stuff coming =20 from the modules directory. I'm not even sure why this was done, but =20 normally that kind of import is not a problem. Anyway, change it to from modules import propertyEditor and then change the following line so that the propertyEditor module is =20= prefixed before the class (roughly line 138). self.propertyEditorWindow =3D model.childWindow(self, =20 PropertyEditor) becomes self.propertyEditorWindow =3D model.childWindow(self, =20 propertyEditor.PropertyEditor) Then try running it again with -l to get the log and see if it bugs out =20= again or manages to open up. ka |