From: Dan E. <dan...@gm...> - 2006-11-04 12:44:12
|
On 11/1/06, Wesley Phillips <bu...@gm...> wrote: > I am trying to use py2exe to create a exe file for my program. I get the > following errors: > > Traceback (most recent call last): > File "LBV.py", line 587, in <module> > File "PythonCard\model.pyc", line 366, in __init__ > File "PythonCard\resource.pyc", line 45, in __init__ > File "PythonCard\util.pyc", line 39, in readAndEvalFile > TypeError: coercing to Unicode: need string or buffer, NoneType found > > Does anybody recognize error and know how to fix it? I imagine that PythonCard reads in your .rsrc file and evals it. It doesn't seem to be finding the file (probably because it's in your .exe and it's not looking there.) I don't know enough about py2exe or PythonCard to help you solve the problem, but if you look at the code in util.py for readAndEvalFile, and go over the py2exe docs you should be able to figure out what's wrong. I suspect you need to get it to find the file when it opens it using the mechanism in readAndEvalFile. Please tell me how it goes. -Dan |