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 > |