From: catonano\@inwind\.it <cat...@in...> - 2005-08-23 19:05:40
|
Hello listers, I reply to myself ;-) I have to apologize, I signa= led a bug but my signaling was not correct. The proper way to signal t= his bug is as follows: I'm on MacOs X 10.4.1 with python 2.4.1 and wxP= ython 2.6.1.0 and PythonCard 0.8.1 When, in a terminal session, I typ= e pythonw blah/blah/resourceEditor.py it doesn't open correctly and= the output in the terminal is: Traceback (most recent call last): = File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/si= te-packages/wx-2.6-mac-unicode/wx/_core.py", line 13262, in <lambda> = lambda event: event.callable(*event.args, **event.kw) ) File "/Librar= y/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Py= thonCard/tools/resourceEditor/resourceEditor.py", line 138, in on_initial= ize self.propertyEditorWindow =3D model.childWindow(self, PropertyEd= itor) File "/Library/Frameworks/Python.framework/Versions/2.4/lib/pyth= on2.4/site-packages/PythonCard/model.py", line 184, in childWindow r= src =3D resource.ResourceFile(filename).getResource() File "/Library/F= rameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/Pytho= nCard/resource.py", line 45, in __init__ self.dictionary =3D util.re= adAndEvalFile(rsrcFileName) File "/Library/Frameworks/Python.framework= /Versions/2.4/lib/python2.4/site-packages/PythonCard/util.py", line 37, i= n readAndEvalFile f =3D open(filename) IOError: [Errno 2] No such f= ile or directory: '/Library/Frameworks/Python.framework/Versions/2.4/lib/= python2.4/site-packages/PythonCard/tools/resourceEditor/propertyEditor.rs= rc.py' Now, the "propertyEditor.py" file it claims about is NOT in t= ools/resourceEditor/ BUT it is in tools/resourceEditor/modules/ = !! This is why, I think, when I try to open a source file, a error me= ssage claims that AttributeError: 'ResourceEditor' object has no attr= ibute 'propertyEditorWindow' So, I hope this is clearer thanks anyh= ow for any help Bye Adriano > Alex, > > > cat...@in... wr= ote: > > > > >Hello listers, > > > > > >I'm following the tutorial f= or Pythoncard and this is the process that led me to this bug. > > > > = > >My configuration is MacOs X 10.4.1, python 2.4.1, wxPython 2.6.1.0 and= PythonCard 0.8 > > > > > > This should be > > .... open counter= /counter.rsrc.py (since you renamed it from > > counter/minimal.rsrc.= py to this in step 2) > > > > yes, of course, it was a typo ! > =0D = > > >here's the bug. It's not a crash but nothing happens and in the term= inal session from which I launched ResourceEditor I read: > > > I don'= t know about this one. > > But I would generally recommend using 0.8.1 = instead of 0.8 (0.8.1 has > > been out since October, and has at least = a couple of changes worth > > having on Mac). I doubt that it will fix = this problem - but it might be > > worth a try .... > > Yes, I am us= ing 0.8.1, that was another typo , sorry. > > One more thing: in order= to start the codeEditor I had to copy the file "stc-styles.cfg" to the r= ight position, because, after running "python setup.py install" it was NO= T copied to the position where codeEditor expected to find it, so it did= n't start. > > the file was in PythonCard > > It had to be in Pytho= nCard/tools/codeEditor/ in order for the things to work > > This is a = small bug but it's something ;-) > > Thanks anyhow > Bye > Adriano=0D = > > > > ___________________________________________________________= _ > Libero Flat, sempre a 4 Mega a 19,95 euro al mese! > Abbonati subi= to su http://www.libero.it > > > > > > -----------------------= -------------------------------- > SF.Net email is Sponsored by the Bett= er Software Conference & EXPO > September 19-22, 2005 * San Francisco, C= A * Development Lifecycle Practices > Agile & Plan-Driven Development * = Managing Projects & Teams * Testing & QA > Security * Process Improvemen= t & Measurement * http://www.sqe.com/bsce5sf > _________________________= ______________________ > Pythoncard-users mailing list > Pythoncard-use= rs...@li... > https://lists.sourceforge.net/lists/listinfo/= pythoncard-users > =0A=0A=0A=0A_________________________________________= ___________________=0ALibero Flat, sempre a 4 Mega a 19,95 euro al mese! = =0AAbbonati subito su http://www.libero.it=0A=0A |
From: <bra...@om...> - 2005-08-23 20:00:16
|
I get a very similar error traceback when trying to launch Resource Editor with Python 2.4.x on Mac OS 10.4. As a result, I've had to stick with using Python 2.3.5 with PythonCard. I'm using a modified version of PythonCard .82 from CVS. The only modification is that it prints wx.VERSION and wx.PlatformInfo. Here is the traceback I get when using Python 2.4. oms-ballen:/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor ballen$ pythonw2.4 resourceEditor.py wx.PlatformInfo: ('__WXMAC__', 'wxMac', 'unicode', 'wx-assertions-on') wx.VERSION: (2, 6, 0, 0, '') no resource file for /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/propertyEditor Traceback (most recent call last): File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 11904, in <lambda> lambda event: event.callable(*event.args, **event.kw) ) File "resourceEditor.py", line 138, in on_initialize self.propertyEditorWindow = model.childWindow(self, PropertyEditor) File "/OMS/dev/pythonPackages/PythonCard/model.py", line 220, in childWindow rsrc = resource.ResourceFile(filename).getResource() File "/OMS/dev/pythonPackages/PythonCard/resource.py", line 45, in __init__ self.dictionary = util.readAndEvalFile(rsrcFileName) File "/OMS/dev/pythonPackages/PythonCard/util.py", line 37, in readAndEvalFile f = open(filename) TypeError: coercing to Unicode: need string or buffer, NoneType found cat...@in... wrote on 08/23/2005 02:05:26 PM: > Hello listers, > > I reply to myself ;-) > > > I have to apologize, I signaled a bug but my signaling was not correct. > > The proper way to signal this bug is as follows: > > I'm on MacOs X 10.4.1 with python 2.4.1 and wxPython 2.6.1.0 and > PythonCard 0.8.1 > > When, in a terminal session, I type > > pythonw blah/blah/resourceEditor.py > > it doesn't open correctly and the output in the terminal is: > > Traceback (most recent call last): > File "//Library/Frameworks/Python.framework/Versions/2. > 4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line > 13262, in <lambda> > lambda event: event.callable(*event.args, **event.kw) ) > File "/Library/Frameworks/Python.framework/Versions/2. > 4/lib/python2.4/site- > packages/PythonCard/tools/resourceEditor/resourceEditor.py", line > 138, in on_initialize > self.propertyEditorWindow = model.childWindow(self, PropertyEditor) > File "/Library/Frameworks/Python.framework/Versions/2. > 4/lib/python2.4/site-packages/PythonCard/model.py", line 184, in childWindow > rsrc = resource.ResourceFile(filename).getResource() > File "/Library/Frameworks/Python.framework/Versions/2. > 4/lib/python2.4/site-packages/PythonCard/resource.py", line 45, in __init__ > self.dictionary = util.readAndEvalFile(rsrcFileName) > File "/Library/Frameworks/Python.framework/Versions/2. > 4/lib/python2.4/site-packages/PythonCard/util.py", line 37, in readAndEvalFile > f = open(filename) > IOError: [Errno 2] No such file or directory: > '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2. > 4/site-packages/PythonCard/tools/resourceEditor/propertyEditor.rsrc.py' > > > Now, the "propertyEditor.py" file it claims about is NOT in > tools/resourceEditor/ > > BUT > > it is in tools/resourceEditor/modules/ !! > > This is why, I think, when I try to open a source file, a error > message claims that > > AttributeError: 'ResourceEditor' object has no attribute > 'propertyEditorWindow' > > So, I hope this is clearer > > thanks anyhow for any help > Bye > Adriano > > > > Alex, > > > > > cat...@in... wrote: > > > > > > >Hello listers, > > > > > > > >I'm following the tutorial for Pythoncard and this is the > process that led me to this bug. > > > > > > > >My configuration is MacOs X 10.4.1, python 2.4.1, wxPython 2.6. > 1.0 and PythonCard 0.8 > > > > > > > > > This should be > > > .... open counter/counter.rsrc.py (since you renamed it from > > > counter/minimal.rsrc.py to this in step 2) > > > > > > > yes, of course, it was a typo ! > > > > > > >here's the bug. It's not a crash but nothing happens and in the > terminal session from which I launched ResourceEditor I read: > > > > > I don't know about this one. > > > But I would generally recommend using 0.8.1 instead of 0.8 (0.8.1 has > > > been out since October, and has at least a couple of changes worth > > > having on Mac). I doubt that it will fix this problem - but it might be > > > worth a try .... > > > > Yes, I am using 0.8.1, that was another typo , sorry. > > > > One more thing: in order to start the codeEditor I had to copy the > file "stc-styles.cfg" to the right position, because, after running > "python setup.py install" it was NOT copied to the position where > codeEditor expected to find it, so it didn't start. > > > > the file was in PythonCard > > > > It had to be in PythonCard/tools/codeEditor/ in order for the things to work > > > > This is a small bug but it's something ;-) > > > > Thanks anyhow > > Bye > > Adriano > > > > > > > > > ____________________________________________________________ > > Libero Flat, sempre a 4 Mega a 19,95 euro al mese! > > Abbonati subito su http://www.libero.it > > > > > > > > > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Pythoncard-users mailing list > > Pyt...@li... > > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > > > > > > ____________________________________________________________ > Libero Flat, sempre a 4 Mega a 19,95 euro al mese! > Abbonati subito su http://www.libero.it > > > > > > ------------------------------------------------------- > SF.Net email is Sponsored by the Better Software Conference & EXPO > September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > _______________________________________________ > Pythoncard-users mailing list > Pyt...@li... > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > |
From: Alex T. <al...@tw...> - 2005-08-23 21:07:30
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 22/08/2005 |
From: <bra...@om...> - 2005-08-24 00:03:58
|
Alex Tweedly wrote on 08/23/2005 04:07:27 PM: > Could you possibly try running it with the logging option ("-l" appended) also ? Ok, here it is: oms-ballen:/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor 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', '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: on_bottomMiddle_mouseDrag DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: on_componentBringFront_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_componentDelete_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_componentDuplicate_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_componentMoveBack_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_componentMoveForward_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_componentSendBack_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_displayAttributes_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_doHelpAboutPythonCard_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_editBackgroundInfo_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_editDialogInfo_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_editMenubar_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: on_filePreviewDialog_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_fileRunOptions_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: 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: on_menuFileRevert_select DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: on_menuOptionsAlignToGrid_select DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuOptionsShowGridLines_select DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_menuViewPropertyEditor_select DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_middleLeft_mouseDrag DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: on_optionGridSize_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: on_showPythonCardDocumentation_command DEBUG: : Tue Aug 23 18:59:18 2005: _addHandler: 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: ['/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/propertyEditor.mac.rsrc.py', '/OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/propertyEditor.rsrc.py'] no resource file for /OMS/dev/pythonPackages/PythonCard/tools/resourceEditor/propertyEditor Traceback (most recent call last): File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 11904, in <lambda> lambda event: event.callable(*event.args, **event.kw) ) File "resourceEditor.py", line 138, in on_initialize self.propertyEditorWindow = model.childWindow(self, PropertyEditor) File "/OMS/dev/pythonPackages/PythonCard/model.py", line 220, in childWindow rsrc = resource.ResourceFile(filename).getResource() File "/OMS/dev/pythonPackages/PythonCard/resource.py", line 45, in __init__ self.dictionary = util.readAndEvalFile(rsrcFileName) File "/OMS/dev/pythonPackages/PythonCard/util.py", line 37, in readAndEvalFile f = open(filename) TypeError: coercing to Unicode: need string or buffer, NoneType found ^C |
From: Alex T. <al...@tw...> - 2005-08-24 01:03:25
|
No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 22/08/2005 |
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 |
From: <bra...@om...> - 2005-08-25 16:35:25
|
Kevin Altis wrote on 08/23/2005 08:28:42 PM: > Well this is quite annoying, either a path bug with the pythonw2.4 on > the Mac (seems most likely) or the way the paths are manipulated in > model.py is causing a problem. Anyway, I assume this is happening in > resourceEditor.py due to this line > > from modules.propertyEditor import PropertyEditor > > which is different from the other imports where we have stuff coming > from the modules directory. I'm not even sure why this was done, but > 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 > prefixed before the class (roughly line 138). > > self.propertyEditorWindow = model.childWindow(self, > PropertyEditor) > > becomes > > self.propertyEditorWindow = model.childWindow(self, > propertyEditor.PropertyEditor) > > Then try running it again with -l to get the log and see if it bugs out > again or manages to open up. No luck. I made the two changes you suggested and get the exact same result. |
From: Alex T. <al...@tw...> - 2005-08-23 20:13:52
|
cat...@in... wrote: >Hello listers, > >I reply to myself ;-) > > >I have to apologize, I signaled a bug but my signaling was not correct. > >The proper way to signal this bug is as follows: > >I'm on MacOs X 10.4.1 with python 2.4.1 and wxPython 2.6.1.0 and PythonCard 0.8.1 > >When, in a terminal session, I type > >pythonw blah/blah/resourceEditor.py > >it doesn't open correctly and the output in the terminal is: > >Traceback (most recent call last): > File "//Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/wx-2.6-mac-unicode/wx/_core.py", line 13262, in <lambda> > lambda event: event.callable(*event.args, **event.kw) ) > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PythonCard/tools/resourceEditor/resourceEditor.py", line 138, in on_initialize > self.propertyEditorWindow = model.childWindow(self, PropertyEditor) > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PythonCard/model.py", line 184, in childWindow > rsrc = resource.ResourceFile(filename).getResource() > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PythonCard/resource.py", line 45, in __init__ > self.dictionary = util.readAndEvalFile(rsrcFileName) > File "/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PythonCard/util.py", line 37, in readAndEvalFile > f = open(filename) >IOError: [Errno 2] No such file or directory: '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/PythonCard/tools/resourceEditor/propertyEditor.rsrc.py' > > >Now, the "propertyEditor.py" file it claims about is NOT in tools/resourceEditor/ > >BUT > >it is in tools/resourceEditor/modules/ !! > > > That's where it's supposed to be. Question is why we're looking in the wrong place ... >This is why, I think, when I try to open a source file, a error message claims that > >AttributeError: 'ResourceEditor' object has no attribute 'propertyEditorWindow' > >So, I hope this is clearer > > Could you possibly try it again, passing the "-l" argument (that's a lower-case L, not a digit "one"), as in pythonw blah/blah/resourceEditor.py -l and send the output from that. Thanks (We'll be looking at the lines starting with : DEBUG : <timestamp> : default : en GB (or similar) The next line should show the language, country, file name being used and why .... (see model.py, lines 150-ish if you want to look yourself). Thanks! -- Alex Tweedly http://www.tweedly.net -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.338 / Virus Database: 267.10.14/79 - Release Date: 22/08/2005 |