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 |