From: <bra...@om...> - 2005-05-13 23:46:48
|
pyt...@li... wrote on 05/13/2005 05:39:06 PM: > could you apply the diff I enclosed in the earlier email to help > debug the problem. Ok, I applied the diff (manually -- I'm not sure how to automatically merge a diff string like that into a file). Now, I've moved on to a different error message, which basically still confirms that the resource file was not found. I guess it's the propertyEditor.rsrc.py that it can't find. I have it in /OMS/dev/misc/newresourceEditorv0.3a/modules, and am running the resourceEditor from within /OMS/dev/misc/newresourceEditorv0.3a so I wonder why it can't find it? Here is the new traceback. oms-ballen:/OMS/dev/misc/newresourceEditorv0.3a ballen$ pythonw2.4 resourceEditor.py no resource file for /OMS/dev/misc/newresourceEditorv0.3a/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 168, in on_initialize self.propertyEditorWindow = model.childWindow(self, PropertyEditor) File "/OMS/dev/pythonPackages/PythonCard/model.py", line 212, 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 |