From: TISCALI <phi...@ti...> - 2003-11-16 15:58:49
|
Hello, I'm trying to make an exe for win32 with some pythoncard projects (pyTDS = TDS oscilloscope, pyUltraISR cypress test). when I launch the exe, a message says: 128: userwarning PyCrust has been renamed to Py use "from wx import py" = =20 ImportERROR: cannot import module statictext in the .rsrc.py the first component is a statictext and it can't load = it. Path problem I suppose !. when I launch setup.py py2exe, no statictext.pyc added =20 path:pythoncardprototype\components Thanks a lot these scripts will be soon in free access. Philippe DALET Laboratoire STS =E9lectronique av pezet 46100 FIGEAC FRANCE |
From: Tony M. <tma...@tr...> - 2004-12-31 23:58:01
|
Does anyone have an example py2exe for a Pythoncard app? Where is the rsrc file included in the setup.py? Thanks and Happy New Year 2005 |
From: Andy T. <an...@ha...> - 2005-01-01 07:13:10
|
Tony Maniaci wrote: > Does anyone have an example py2exe for a Pythoncard app? Where is the > rsrc file included in the setup.py? > Thanks and Happy New Year 2005 > Take a look at the minimalStandalone sample shipped with Pythoncard. It comes with an example setup.py that should get you started. Regards, Andy -- ----------------------------------------------------------------------- From the desk of Andrew J Todd esq. "So I curtailed my Walpoling activities, sallied forth and infiltrated your place of purveyance to negotiate the vending of some cheesy comestibles." - Monty Python. -- No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.298 / Virus Database: 265.6.7 - Release Date: 30/12/04 |
From: Wesley P. <bu...@gm...> - 2006-11-01 20:08:11
|
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 581, 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 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? Thanks -- efil si doog |
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 |
From: Brian D. <deb...@ho...> - 2006-11-04 20:46:23
|
>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 > Thats correct. I had the same problem or something like that... I think you should manually set the path of the app's scripts. I dont have some sample code at hand right now... but I hope this idea help u a bit. Brian _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/ |
From: Andy T. <an...@ha...> - 2006-11-05 03:00:55
|
Brian Debuire wrote: > >> 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 >> > > Thats correct. I had the same problem or something like that... I think you > should manually set the path of the app's scripts. I dont have some sample > code at hand right now... but I hope this idea help u a bit. > > Brian > All of the collective py2exe wisdom is in the mailing list archives. Alternatively the readme file accompanying the minimalStandalone sample gives instructions on bundling your PythonCard application with py2exe; http://pythoncard.sourceforge.net/samples/minimalStandalone.html Regards, Andy -- -------------------------------------------------------------------------------- From the desk of Andrew J Todd esq - http://www.halfcooked.com/ |
From: Wesley P. <bu...@gm...> - 2007-05-03 13:37:54
|
I am trying to create exe distribution file. But when I run the exe file I get the following error: Traceback (most recent call last): File "LBV.py", line 896, 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 I am using the ansi wxpython. Any ideas? Thanks -- efil si doog |
From: Wesley P. <bu...@gm...> - 2007-05-03 18:56:32
|
Folks, I have looked at the tutorials and "googled" for problems similar to mine. No luck with any of that. Here's a thought. The solution to similar problems has been to have from PythonCard.components import textfield as opposed to from PythonCard import textfield This won't work for model, resource, and util because they are not named components in Pythoncard. From my searching on google, obviously people are having sucessful builds with pythoncard and py2exe. ---------- Forwarded message ---------- From: Wesley Phillips <bu...@gm...> Date: May 3, 2007 9:37 AM Subject: py2exe To: pyt...@li... I am trying to create exe distribution file. But when I run the exe file I get the following error: Traceback (most recent call last): File "LBV.py", line 896, 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 I am using the ansi wxpython. Any ideas? Thanks -- efil si doog -- efil si doog |
From: Wesley P. <bu...@gm...> - 2007-05-05 11:56:55
|
Wesley Phillips <bumtool <at> gmail.com> writes: > > > I am trying to create exe distribution file. But when I run the exe file I get the following error: > > > Traceback (most recent call last): File "LBV.py", line 896, 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 readAndEvalFileTypeError: coercing to Unicode: need string or buffer, NoneType found > > I am using the ansi wxpython. Any ideas? > > Thanks > > -- efil si doog > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > > _______________________________________________ > Pythoncard-users mailing list > Pythoncard-users <at> lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/pythoncard-users > I tried another method in Eclipse. I got it to work. So this problem is solved. I do not know the solution to the above problem, but I do know how to make py2exe work from Eclipse. |