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 |