From r_deeley at yahoo.com Sat May 1 21:08:44 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Sat May 1 21:08:46 2004 Subject: [PythonCE] shutil import failure Message-ID: <20040502010844.87989.qmail@web50907.mail.yahoo.com> After processing a set of import statements OK, the thing died on importing shutil. I checked the lib directory and there is a shutil.pyc there. The error message is NameError: Can't find file for module shutil (filename shutil.dll) Any ideas how to resolve ? Richard. (imports that were processed OK include os,time,re,string) __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From r_deeley at yahoo.com Sat May 1 22:12:52 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Sat May 1 22:12:55 2004 Subject: [PythonCE] Python2.2 AND ipaq In-Reply-To: Message-ID: <20040502021252.23190.qmail@web50901.mail.yahoo.com> I think conversion is a reserved word somewhere. When I tried that I got a different error, but it went away when I changed the function name to conversion1 and now works fine. Richard. --- pierre robidoux wrote: > I�m using python 2.2 in a pocket pc (ipaq 3800, UCP:ARM, OS:windowsCE). > I was just trying to use this small script , which It works nicely in my > laptop. > > Def conversion (tmp_C): > tmp_f=tmp_C*1.8 +32 > print tmp_f > > I got this error > < > file �\program files\python\lib\pcceshell.py�, line 538, in interact > exec codeOb in locals > File �� line 1, in? > NameError:global name �tmp_f� is not defined. > > I don�t know what to do. > > _________________________________________________________________ > Tired of spam? Get advanced junk mail protection with MSN Premium > http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From bkc at murkworks.com Sun May 2 09:19:20 2004 From: bkc at murkworks.com (Brad Clements) Date: Sun May 2 09:19:50 2004 Subject: [PythonCE] Python2.2 AND ipaq In-Reply-To: <20040502021252.23190.qmail@web50901.mail.yahoo.com> References: Message-ID: <4094BD18.28830.E4CCE71@localhost> Did you really start your function definition with 'Def' ? or did you use 'def' "Def" is not valid > --- pierre robidoux wrote: > > I???m using python 2.2 in a pocket pc (ipaq 3800, UCP:ARM, OS:windowsCE). > > I was just trying to use this small script , which It works nicely in my > > laptop. > > > > Def conversion (tmp_C): > > tmp_f=tmp_C*1.8 +32 > > print tmp_f > > > > I got this error > > < > > > file ???\program files\python\lib\pcceshell.py???, line 538, in interact > > exec codeOb in locals File ?????? line 1, in? NameError:global > > name ???tmp_f??? is not defined. > > > > I don???t know what to do. > > > > _________________________________________________________________ > > Tired of spam? Get advanced junk mail protection with MSN Premium > > > http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=ht > tp://hotmail.com/enca&HL=Market_MSNIS_Taglines > > > > _______________________________________________ > PythonCE mailing list > > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > > > > > > __________________________________ > Do you Yahoo!? > Win a $20,000 Career Makeover at Yahoo! HotJobs > http://hotjobs.sweepstakes.yahoo.com/careermakeover > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From isrgish at fastem.com Sun May 2 19:41:18 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun May 2 19:41:07 2004 Subject: FW:[PythonCE] RE: shutil import failure Message-ID: Sorry sentbit to the wrong list before -----Original Message----- From: "Isr Gish" Sent: 5/2/04 6:01:46 PM To: "tutor@python.org" Subject: [Tutor] RE: [PythonCE] shutil import failure It seems that the module shutil needs a DLL file in the windows directory called shutil.dll. After looking in my windows directory I see that I have one. If you need it I can e-mail it to you. My machine is a xscale witch is compatible with StrongArm. so if you have either it should work for you. All the best, Isr -----Original Message----- >From: "Richard Deeley" >Sent: 5/1/04 9:08:44 PM >To: "PythonCE@python.org" >Subject: [PythonCE] shutil import failure > > >After processing a set of import statements OK, the thing died >on importing shutil. I checked the lib directory and there is >a shutil.pyc there. The error message is > >NameError: Can't find file for module shutil >(filename shutil.dll) > >Any ideas how to resolve ? > >Richard. > >(imports that were processed OK include os,time,re,string) > > > > > >__________________________________ >Do you Yahoo!? >Win a $20,000 Career Makeover at Yahoo! HotJobs >http://hotjobs.sweepstakes.yahoo.com/careermakeover > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor From johnny at debris.demon.nl Mon May 3 03:56:53 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Mon May 3 03:57:05 2004 Subject: FW:[PythonCE] RE: shutil import failure In-Reply-To: References: Message-ID: <200405030956.53745.johnny@debris.demon.nl> On Monday 03 May 2004 01:41, Isr Gish wrote: > > If you need it I can e-mail it to you. > My machine is a xscale witch is compatible with StrongArm. so if you have > either it should work for you. > Could you send me one as well then so I can place it on some URL to download? Cheers, Guido From r_deeley at yahoo.com Mon May 3 12:25:54 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Mon May 3 12:25:58 2004 Subject: [PythonCE] Python2.2 AND ipaq In-Reply-To: <4094BD18.28830.E4CCE71@localhost> Message-ID: <20040503162554.84043.qmail@web50909.mail.yahoo.com> Ah good point, I think I corrected that also without noticing that I did it (force of habit type of thing). I wasn't the original author of the problem, it just looked didn't seem as though there would be a major problem here. On that account it was correct but my diagnosis was incorrect. Will double check next time to make sure I only change one thing at a time. (but now I am curious as to why it would work, as originally claimed, on the laptop in the first place. Oh well, the overall moral is it will work just fine with minor changes.) Richard. (curious character set in the error message btw). --- Brad Clements wrote: > Did you really start your function definition with 'Def' ? or did you use 'def' > > "Def" is not valid > > > --- pierre robidoux wrote: > > > I�m using python 2.2 in a pocket pc (ipaq 3800, UCP:ARM, OS:windowsCE). > > > I was just trying to use this small script , which It works nicely in my > > > laptop. > > > > > > Def conversion (tmp_C): > > > tmp_f=tmp_C*1.8 +32 > > > print tmp_f > > > > > > I got this error > > > < > > > > > file �\program files\python\lib\pcceshell.py�, line 538, in interact > > > exec codeOb in locals File �� line 1, in? NameError:global > > > name �tmp_f� is not defined. > > > > > > I don�t know what to do. > > > > > > _________________________________________________________________ > > > Tired of spam? Get advanced junk mail protection with MSN Premium > > > > > http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=ht > > tp://hotmail.com/enca&HL=Market_MSNIS_Taglines > > > > > _______________________________________________ > PythonCE mailing list > > > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > > > __________________________________ > > Do you Yahoo!? > > Win a $20,000 Career Makeover at Yahoo! HotJobs > > http://hotjobs.sweepstakes.yahoo.com/careermakeover > > > > _______________________________________________ > > PythonCE mailing list > > PythonCE@python.org > > http://mail.python.org/mailman/listinfo/pythonce > > > -- > Brad Clements, bkc@murkworks.com (315)268-1000 > http://www.murkworks.com (315)268-9812 Fax > http://www.wecanstopspam.org/ AOL-IM: BKClements > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From isrgish at fastem.com Mon May 3 15:56:31 2004 From: isrgish at fastem.com (Isr Gish) Date: Mon May 3 15:56:48 2004 Subject: FW:[PythonCE] RE: shutil import failure Message-ID: I don't think I got it from one of the installs. But I may be mistaken. I certainly don't remember from where I got it. After checking it again I relized that its in Rom and I don't know how to copy it from there. if someone can give me a way to copy it out of Rom (that is leagle) I will send it. I use a iPaq h5555. All the best, Isr -----Original Message----- >From: "Richard Deeley" >Sent: 5/3/04 12:11:26 PM >To: "Isr Gish" >Subject: Re: FW:[PythonCE] RE: shutil import failure > > >Thanks for the response. Is there some place I can download this >and/or should I try a new installation and see if that fixes it. >If so, are there any specific sites/versions I should download from ? > >Email would work just fine too, if that is easier, but looks from >another mail that you might end up with a bunch of these. > >Thanks again, > >Richard. > > > > >--- Isr Gish wrote: >> Sorry sentbit to the wrong list before >> >> -----Original Message----- >> From: "Isr Gish" >> Sent: 5/2/04 6:01:46 PM >> To: "tutor@python.org" >> Subject: [Tutor] RE: [PythonCE] shutil import failure >> >> It seems that the module shutil needs a DLL file in the windows directory called shutil.dll. >> >> After looking in my windows directory I see that I have one. >> >> If you need it I can e-mail it to you. >> My machine is a xscale witch is compatible with StrongArm. so if you have either it should work >> for you. >> >> All the best, >> Isr >> >> -----Original Message----- >> >From: "Richard Deeley" >> >Sent: 5/1/04 9:08:44 PM >> >To: "PythonCE@python.org" >> >Subject: [PythonCE] shutil import failure >> > >> > >> >After processing a set of import statements OK, the thing died >> >on importing shutil. I checked the lib directory and there is >> >a shutil.pyc there. The error message is >> > >> >NameError: Can't find file for module shutil >> >(filename shutil.dll) >> > >> >Any ideas how to resolve ? >> > >> >Richard. >> > >> >(imports that were processed OK include os,time,re,string) >> > >> > >> > >> > >> > >> >__________________________________ >> >Do you Yahoo!? >> >Win a $20,000 Career Makeover at Yahoo! HotJobs >> >http://hotjobs.sweepstakes.yahoo.com/careermakeover >> > >> >_______________________________________________ >> >PythonCE mailing list >> >PythonCE@python.org >> >http://mail.python.org/mailman/listinfo/pythonce >> >> >> _______________________________________________ >> Tutor maillist - Tutor@python.org >> http://mail.python.org/mailman/listinfo/tutor >> >> >> _______________________________________________ >> PythonCE mailing list >> PythonCE@python.org >> http://mail.python.org/mailman/listinfo/pythonce > > > > > >__________________________________ >Do you Yahoo!? >Win a $20,000 Career Makeover at Yahoo! HotJobs >http://hotjobs.sweepstakes.yahoo.com/careermakeover From r_deeley at yahoo.com Mon May 3 20:17:38 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Mon May 3 20:17:42 2004 Subject: FW:[PythonCE] RE: shutil import failure In-Reply-To: Message-ID: <20040504001738.42701.qmail@web50901.mail.yahoo.com> This is all very curious (to me anyway). When I looked at the source of shutil.py (on PC), it all looked fairly innocent. It imports os,sys,stat,exceptions. But beyond that it looks like fairly vanilla user type code. So I simply copied the shutil.py to the working directory on the PPC and tried again. This time it got past that stage of loading. To make amends for bum steer I sent out on another subject, I double checked this by renaming the shutil.* out of the way and repeating without the local copy in place. It failed as per the original message. (no shutil.dll) So, with a local shutil in place, it compiles fine. For good measure I got it to do a shutil.copyfile() just fine too. Just to make sure it would actually do something. I also tried copying shutil.pyc to the python/lib area. I get the same error message as I started with (no shutil.dll) (after disabling my local copy, of course). Anyone have a stab at what may be going on here and/or anything else I should try ? Richard. --- Isr Gish wrote: > I don't think I got it from one of the installs. But I may be mistaken. > I certainly don't remember from where I got it. > > After checking it again I relized that its in Rom and I don't know how to copy it from there. > if someone can give me a way to copy it out of Rom (that is leagle) I will send it. > I use a iPaq h5555. > > All the best, > Isr > > -----Original Message----- > >From: "Richard Deeley" > >Sent: 5/3/04 12:11:26 PM > >To: "Isr Gish" > >Subject: Re: FW:[PythonCE] RE: shutil import failure > > > > > >Thanks for the response. Is there some place I can download this > >and/or should I try a new installation and see if that fixes it. > >If so, are there any specific sites/versions I should download from ? > > > >Email would work just fine too, if that is easier, but looks from > >another mail that you might end up with a bunch of these. > > > >Thanks again, > > > >Richard. > > > > > > > > > >--- Isr Gish wrote: > >> Sorry sentbit to the wrong list before > >> > >> -----Original Message----- > >> From: "Isr Gish" > >> Sent: 5/2/04 6:01:46 PM > >> To: "tutor@python.org" > >> Subject: [Tutor] RE: [PythonCE] shutil import failure > >> > >> It seems that the module shutil needs a DLL file in the windows directory called > shutil.dll. > >> > >> After looking in my windows directory I see that I have one. > >> > >> If you need it I can e-mail it to you. > >> My machine is a xscale witch is compatible with StrongArm. so if you have either it should > work > >> for you. > >> > >> All the best, > >> Isr > >> > >> -----Original Message----- > >> >From: "Richard Deeley" > >> >Sent: 5/1/04 9:08:44 PM > >> >To: "PythonCE@python.org" > >> >Subject: [PythonCE] shutil import failure > >> > > >> > > >> >After processing a set of import statements OK, the thing died > >> >on importing shutil. I checked the lib directory and there is > >> >a shutil.pyc there. The error message is > >> > > >> >NameError: Can't find file for module shutil > >> >(filename shutil.dll) > >> > > >> >Any ideas how to resolve ? > >> > > >> >Richard. > >> > > >> >(imports that were processed OK include os,time,re,string) > >> > > >> > > >> > > >> > > >> > > >> >__________________________________ > >> >Do you Yahoo!? > >> >Win a $20,000 Career Makeover at Yahoo! HotJobs > >> >http://hotjobs.sweepstakes.yahoo.com/careermakeover > >> > > >> >_______________________________________________ > >> >PythonCE mailing list > >> >PythonCE@python.org > >> >http://mail.python.org/mailman/listinfo/pythonce > >> > >> > >> _______________________________________________ > >> Tutor maillist - Tutor@python.org > >> http://mail.python.org/mailman/listinfo/tutor > >> > >> > >> _______________________________________________ > >> PythonCE mailing list > >> PythonCE@python.org > >> http://mail.python.org/mailman/listinfo/pythonce > > > > > > > > > > > >__________________________________ > >Do you Yahoo!? > >Win a $20,000 Career Makeover at Yahoo! HotJobs > >http://hotjobs.sweepstakes.yahoo.com/careermakeover > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From johnny at debris.demon.nl Wed May 5 03:04:38 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Wed May 5 03:04:42 2004 Subject: FW:[PythonCE] RE: shutil import failure In-Reply-To: References: Message-ID: <200405050904.38227.johnny@debris.demon.nl> On Monday 03 May 2004 21:56, Isr Gish wrote: > > After checking it again I relized that its in Rom and I don't know how to > copy it from there. if someone can give me a way to copy it out of Rom > (that is leagle) I will send it. > I don't really understand, is there some law against importing software or something? If so, does that law also apply for Dutch people? Cheers, Guido From isrgish at fastem.com Wed May 5 23:49:33 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed May 5 23:49:54 2004 Subject: [PythonCE] RE: shutil import failure Message-ID: I would also like to know why I'm in your spam area. I didn't here this from anyone else so I'm asumiNg it has something to do with your e-mail service. Also I would still like to know wich Version of Python are you running. What I wrote to you last time that it only worked in 2.2 it could be that your only running 2.2 therfore the .py file would work and so would anything that was compiled on your device. Also can you show me again the Traceback that you got, please post the whole tracebak. That way I could see more wats cousing it. All the best, Isr -----Original Message----- >From: "Richard Deeley" >Sent: 5/5/04 12:40:59 PM >To: "Isr Gish" >Subject: Re: [PythonCE] RE: shutil import failure > >(need to get you out of the spam area somehow). Comments below... > >--- Isr Gish wrote: >> which verrsion of python are you using. >> >> I tried all the files that you sent. The .py and shutil.pyc worked fine in version 2.3.2. >> But shutil01.pyc only worked in version 2.2. >> Becuse it was probebly compiled for 2.2. >> > >That's a very interesting discrepancy because one version came with >the Python installation, the other was compiled by it. Something >definitely not right here. One would presume that all the .pyc's >in a distribution ought to be of the same vintage as that >distribution, right ? > > >> Also can you please explain a little more what you meen by user area and by lib area. > >user area: Any current working directory that a user might >write code in. > >lib area: Python/Lib > >Thanks for looking into it. > > >Richard. > >> >> All the best >> Isr >> > > > > > >__________________________________ >Do you Yahoo!? >Win a $20,000 Career Makeover at Yahoo! HotJobs >http://hotjobs.sweepstakes.yahoo.com/careermakeover > From a.stuff at laubach-online.de Thu May 6 11:00:49 2004 From: a.stuff at laubach-online.de (Stuff, Andreas) Date: Thu May 6 10:59:09 2004 Subject: [PythonCE] Newbie: how to run python 2.3 ? Message-ID: <3BCF37A673A0D511B4CA000255D4ABC116CA32@slbh000001.DLBH000001.local> Hi, everybody, I'm a newbie and have a general question starting the interpreter: After installing python in the folders I can start python on my pocketpc. It works, but there is a (error?) message: 'import site' failed; use -v for traceback. What does this mean ? Must I run the interpreter with some parameters ? I haven't found such a topic in the mailing list... Hoping for good news Andreas From isrgish at fastem.com Thu May 6 23:04:40 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu May 6 23:05:39 2004 Subject: [PythonCE] Newbie: how to run python 2.3 ? Message-ID: Hi Andreas, -----Original Message----- >From: "Stuff, Andreas" >Sent: 5/6/04 11:00:49 AM >To: "pythonce@python.org" >Subject: [PythonCE] Newbie: how to run python 2.3 ? >Hi, everybody, > >I'm a newbie and have a general question starting the interpreter: After >installing python in the folders I can start python on my pocketpc. It >works, but there is a (error?) message: 'import site' failed; use -v for >traceback. What does this mean ? Must I run the interpreter with some >parameters ? > I don't realy know what this meens. But what seems very interesting is that it should work even without the site module. Where did you download Python? And can you please post the whole error message as it appered, do a cut and paste. This is a good idea always when you post a traceback error becuse there is info in there to help understand where and why the error came. >I haven't found such a topic in the mailing list... > >Hoping for good news > >Andreas > All the best, Isr From isrgish at fastem.com Thu May 6 23:05:10 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu May 6 23:06:04 2004 Subject: [PythonCE] RE: shutil import failure Message-ID: Hi Richard, Richard Deeley Wrote: >> Also I would still like to know wich Version of Python are you running. What I wrote to you last >> time that it only worked in 2.2 it could be that your only running 2.2 therfore the .py file >> would work and so would anything that was compiled on your device. > >I guess I don't know at this time. I downloaded the pythonCE >about 3 months ago or so. At the moment, I am using a different >machine whilst waiting for this worm issue to die down a little. >So not quite as smooth getting things done at the moment and >missing the IPAQ at the moment. > Every time you start Python the first line says which version its running. >> >> Also can you show me again the Traceback that you got, please post the whole tracebak. That way >> I could see more wats cousing it. > >OK. Will have to wait till I can get the IPAQ running near >a working machine (it is not here at the moment). But as >I recall it was quite straightforward message of the form > >unable to import module shutil >(filename shutil.dll) > I understand that it was straightforward but the first parts of the traceback tells us "WHERE" the problem happened and that may help. >But ONLY if I rely on ANY version in Python/Lib. If I compile >it myself in my current directory, it runs fine. So even if >I take the version that runs fine in my current directory and >copy it to the Python/Lib area, it still fails to work. > >Have you any idea why the versions would differ ? I compiled >it on the IPAQ, so it seems odd to me that the version in >Python/Lib is different that its own revision. > I see no reason for it to differe. It may some other problem alltogether. >Slightly different issue: Do you know where is the 'time' module ? >(I wanted strftime, but couldn't find it anywhere, then I couldn't >find time either, even though that works OK). It would be helpful >to know this as there seem to be ways other than via Lib by which >Python finds its modules. > Actually the time module is a built-in module. There are alot of built-in modules in python, (I think that the specific ones depend in the person who compiled Python). I do remember having certain problems with the time module that not all the newer functions are there. To find the functions in a module you can use dir(...). >>> dir(time) ['__doc__', '__name__', 'altzone', 'asctime', 'clock', 'ctime', 'daylight', 'gmtime', 'localtime', 'mktime', 'sleep', 'time', 'timezone', 'tzname'] or help(...) >>> help('time') Help on built-in module time: NAME time FILE (built-in) FUNCTIONS asctime(...) clock(...) ctime(...) gmtime(...) localtime(...) mktime(...) sleep(...) time(...) DATA __name__ = 'time' altzone = 18000 daylight = 1 timezone = 18000 tzname = ('', '') > >Richard. > All the best Isr From isrgish at fastem.com Sat May 8 23:49:17 2004 From: isrgish at fastem.com (Isr Gish) Date: Sat May 8 23:49:21 2004 Subject: [PythonCE] RE: shutil import failure Message-ID: Hi Richard. Richard Deeley wrote: >OK, The DOS console I have doesn't seem to support cut and >paste, so I will type it in here with as best as I can... > >Traceback: > >shell.py 553 in RunCode imp.load_module("__main__", file, fname, imp_params) >File (mine.py) line 2 in ? > from (anotherofmine.py) import * >File (anotherofmine.py), line 6 in ? > import shutil >NameError: Can't find file for module shutil >(filename shutil.dll) > what I do see is that this is not a Import Error which is usually raised when you import a module thats not there. That seems to say that the problem is not with the actuall import but rather with some name in the imported file. The error message also seems to point to that by saying "Can't find *file* for module shutil (filename shutil.dll)" Which seems to say that file shutil.dll is missing. I would advise you to post this problem on the tutor list (tutor@python.org). You may need to sign up for it. Which can be done at http://mail.python.org/mailman/listinfo/tutor > >Version is 2.2+ (#0 Jan 20 2002, 13:30:34) [MSC 32 bit (ARM)] on Pocket PC > >(seems a little ancient seeing as I only downloaded it fairly recently) There is a newer version at: http://www.voidspace.org.uk/coollinks/python_links.shtml Scrooldown to the header named "PocketPC Programming" and there you will see a link named "http--debris.demon.nl-PythonCE-2.3" > >Let me know if you need anything else on this... > > >Richard. > All the best, Isr From isrgish at fastem.com Sat May 8 23:49:28 2004 From: isrgish at fastem.com (Isr Gish) Date: Sat May 8 23:49:39 2004 Subject: AW: [PythonCE] Newbie: how to run python 2.3 ? Message-ID: Hi Andreas. -----Original Message----- >From: "Stuff, Andreas" >Sent: 5/7/04 1:55:36 AM >To: "Isr Gish" >Subject: AW: [PythonCE] Newbie: how to run python 2.3 ? >Hi, >here are more informations about my 'error': > >I found Python 2.3 for my iPaq at http://fore.validus.com/~kashtan/ There is another better realese at: http://www.voidspace.org.uk/coollinks/python_links.shtml Scrooldown to the header named "PocketPC Programming" and there you will see a link named "http--debris.demon.nl-PythonCE-2.3" > >When starting Python the console appears and give the message like it is >shown in "python_error_1.bmp". On the bmp-files "python_error_2.bmp" and >"python_error_3.bmp" you can see a part of my folder structure. > >Do you need more details ? > >Andreas > Try putting this site.py that I'm sending you into the lib folder in the python installation. Then try again. (or else try to download the other release I mentioned abov). All the best, Isr > >-----Urspr?ngliche Nachricht----- >Von: Isr Gish [mailto:isrgish@fastem.com] >Gesendet: Freitag, 7. Mai 2004 05:05 >An: Stuff, Andreas; pythonce@python.org >Betreff: RE: [PythonCE] Newbie: how to run python 2.3 ? > > >Hi Andreas, > >-----Original Message----- > >From: "Stuff, Andreas" > >Sent: 5/6/04 11:00:49 AM > >To: "pythonce@python.org" > >Subject: [PythonCE] Newbie: how to run python 2.3 ? > >Hi, everybody, > > > >I'm a newbie and have a general question starting the interpreter: >After > >installing python in the folders I can start python on my pocketpc. >It > >works, but there is a (error?) message: 'import site' failed; use -v >for > >traceback. What does this mean ? Must I run the interpreter with >some > >parameters ? > > > >I don't realy know what this meens. But what seems very interesting is >that it should work even without the site module. >Where did you download Python? >And can you please post the whole error message as it appered, do a cut >and paste. This is a good idea always when you post a traceback error >becuse there is info in there to help understand where and why the error >came. > > > >I haven't found such a topic in the mailing list... > > > >Hoping for good news > > > >Andreas > > > >All the best, >Isr > > From mike at pcblokes.com Mon May 10 03:32:39 2004 From: mike at pcblokes.com (Voidspace) Date: Mon May 10 03:32:46 2004 Subject: [PythonCE] RE: time functions in PythonCE In-Reply-To: References: Message-ID: <409F3017.1060001@pcblokes.com> [sanip..] > >Slightly different issue: Do you know where is the 'time' module ? > >(I wanted strftime, but couldn't find it anywhere, then I couldn't > >find time either, even though that works OK). It would be helpful > >to know this as there seem to be ways other than via Lib by which > >Python finds its modules. > > >Actually the time module is a built-in module. There are alot of built-in modules in python, (I think that the specific ones depend in the person who compiled Python). > >I do remember having certain problems with the time module that not all the newer functions are there. >To find the functions in a module you can use dir(...). > > [snip..] I've had this conversation before - *apparently* the time module is just a layer above the c library with all the functions. So the exact functions that are available depends on the C-library for the underlying platform. In our case the PocketPC C-library doesn't have the strftime function..... so it isn't available from PythonCE........ Oh well........ Regards, Fuzzy -- http://www.Voidspace.org.uk The Place where headspace meets cyberspace. Online resource site - covering science, technology, computing, cyberpunk, psychology, spirituality, fiction and more. --- http://www.atlantibots.org.uk http://groups.yahoo.com/group/atlantis_talk/ Atlantibots - stomping across the worlds of Atlantis. Building with Python - programming language that rules the world. --- http://www.fuchsiashockz.co.uk http://groups.yahoo.com/group/void-shockz --- Everyone has talent. What is rare is the courage to follow talent to the dark place where it leads. -Erica Jong Ambition is a poor excuse for not having sense enough to be lazy. -Milan Kundera From r_deeley at yahoo.com Mon May 10 12:14:40 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Mon May 10 12:14:46 2004 Subject: [PythonCE] RE: shutil import failure In-Reply-To: Message-ID: <20040510161440.65289.qmail@web50908.mail.yahoo.com> OK. Some general thoughts on all this and some attempts at trying to rationalize the problem a little more. Thanks for taking a look at it. Recall that it will work (ie not require a dll), if I provide the shutil.py in the working directory. Then I get a .pyc and the program runs OK. But if I move the file that now works to the lib area, it will fail again. Put it back in the user area, it works. I don't know enough about how the python loading works, but it seems to imply that somewhere there is a list of dependencies/rules that it is checking. This list differs between the lib than the user area. Presumably it applies rules to the user area first, then to the lib area if nothing found in user area. >From what I can see there are only 2 pyd files and 2 dll files in the distribution. The main dll of interest is python22.dll. By its name I would presume that everything that needs dll support is in there. I would further guess that everything in the dll is available for any invocation of python. I guess I am a little surprised by the reference to shutil.dll, because I don't see any module specific dll's in my distribution at all. Yet aside from shutil, things seem to be working just fine. But if you just want shutil to work, put the shutil.py with your code and let it compile that. So at the very least, we have a workaround for it. (at least I seem to, does this work for anyone else ?). So why does it require a dll in the first place ? (or conversely, why don't I have any more than 2 dlls in my release). Anyway, good to have had some input on all this. Hopefully the issue will disappear on a future release. Richard. --- Isr Gish wrote: > Hi Richard. > > Richard Deeley wrote: > >OK, The DOS console I have doesn't seem to support cut and > >paste, so I will type it in here with as best as I can... > > > >Traceback: > > > >shell.py 553 in RunCode imp.load_module("__main__", file, fname, imp_params) > >File (mine.py) line 2 in ? > > from (anotherofmine.py) import * > >File (anotherofmine.py), line 6 in ? > > import shutil > >NameError: Can't find file for module shutil > >(filename shutil.dll) > > > what I do see is that this is not a Import Error which is usually raised when you import a > module thats not there. That seems to say that the problem is not with the actuall import but > rather with some name in the imported file. The error message also seems to point to that by > saying "Can't find *file* for module shutil (filename shutil.dll)" > Which seems to say that file shutil.dll is missing. > I would advise you to post this problem on the tutor list (tutor@python.org). You may need to > sign up for it. Which can be done at http://mail.python.org/mailman/listinfo/tutor > > > > > >Version is 2.2+ (#0 Jan 20 2002, 13:30:34) [MSC 32 bit (ARM)] on Pocket PC > > > >(seems a little ancient seeing as I only downloaded it fairly recently) > > There is a newer version at: > http://www.voidspace.org.uk/coollinks/python_links.shtml > Scrooldown to the header named "PocketPC Programming" > and there you will see a link named "http--debris.demon.nl-PythonCE-2.3" > > > > > >Let me know if you need anything else on this... > > > > > >Richard. > > > > All the best, > Isr > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From r_deeley at yahoo.com Mon May 10 12:53:19 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Mon May 10 12:55:25 2004 Subject: [PythonCE] RE: shutil import failure In-Reply-To: <20040510161440.65289.qmail@web50908.mail.yahoo.com> Message-ID: <20040510165319.69991.qmail@web50901.mail.yahoo.com> Isr, A postscript to all this: I followed one of the links in your other mail and downloaded a 2.3 version. It's directory structure is a little different from the 2.2 version I had. For example, the 2.3 version has a DLLs directory that 2.2 does not. (It also has a _tkinter package). (It does not have a shutil.dll, though - so the reference to that is still not solved) It seems, by following the links, that the version at debris.demon.nl is likely to be the 2.3 successor to 2.2 at murkworks, although both seem to have the same origins (murkworks appears down at this writing) Is that a correct interpretation ? It would be handy if the mailing list had a link to a one page summary of what is where and the status of the releases (as a bonus it may cut down on email traffic too because if 2.3 is the true successor, then no need to try to fix 2.2). Richard. --- Richard Deeley wrote: > OK. Some general thoughts on all this and some attempts at trying > to rationalize the problem a little more. Thanks for taking a look > at it. > > Recall that it will work (ie not require a dll), if I provide the > shutil.py in the working directory. Then I get a .pyc and the program > runs OK. > > But if I move the file that now works to the lib area, it will fail > again. Put it back in the user area, it works. > > I don't know enough about how the python loading works, but it seems > to imply that somewhere there is a list of dependencies/rules that it > is checking. This list differs between the lib than the user area. > Presumably it applies rules to the user area first, then to the > lib area if nothing found in user area. > > >From what I can see there are only 2 pyd files and 2 dll files in the > distribution. The main dll of interest is python22.dll. By its name > I would presume that everything that needs dll support is in there. > I would further guess that everything in the dll is available for any > invocation of python. I guess I am a little surprised by the reference > to shutil.dll, because I don't see any module specific dll's in my > distribution at all. Yet aside from shutil, things seem to be working > just fine. > > But if you just want shutil to work, put the shutil.py with your code and > let it compile that. So at the very least, we have a workaround for it. > (at least I seem to, does this work for anyone else ?). So why does it > require a dll in the first place ? (or conversely, why don't I have > any more than 2 dlls in my release). > > Anyway, good to have had some input on all this. Hopefully the issue > will disappear on a future release. > > Richard. > > > > --- Isr Gish wrote: > > Hi Richard. > > > > Richard Deeley wrote: > > >OK, The DOS console I have doesn't seem to support cut and > > >paste, so I will type it in here with as best as I can... > > > > > >Traceback: > > > > > >shell.py 553 in RunCode imp.load_module("__main__", file, fname, imp_params) > > >File (mine.py) line 2 in ? > > > from (anotherofmine.py) import * > > >File (anotherofmine.py), line 6 in ? > > > import shutil > > >NameError: Can't find file for module shutil > > >(filename shutil.dll) > > > > > what I do see is that this is not a Import Error which is usually raised when you import a > > module thats not there. That seems to say that the problem is not with the actuall import but > > rather with some name in the imported file. The error message also seems to point to that by > > saying "Can't find *file* for module shutil (filename shutil.dll)" > > Which seems to say that file shutil.dll is missing. > > I would advise you to post this problem on the tutor list (tutor@python.org). You may need to > > sign up for it. Which can be done at http://mail.python.org/mailman/listinfo/tutor > > > > > > > > > >Version is 2.2+ (#0 Jan 20 2002, 13:30:34) [MSC 32 bit (ARM)] on Pocket PC > > > > > >(seems a little ancient seeing as I only downloaded it fairly recently) > > > > There is a newer version at: > > http://www.voidspace.org.uk/coollinks/python_links.shtml > > Scrooldown to the header named "PocketPC Programming" > > and there you will see a link named "http--debris.demon.nl-PythonCE-2.3" > > > > > > > > > >Let me know if you need anything else on this... > > > > > > > > >Richard. > > > > > > > All the best, > > Isr > > > > > > _______________________________________________ > > PythonCE mailing list > > PythonCE@python.org > > http://mail.python.org/mailman/listinfo/pythonce > > > > > > __________________________________ > Do you Yahoo!? > Win a $20,000 Career Makeover at Yahoo! HotJobs > http://hotjobs.sweepstakes.yahoo.com/careermakeover > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From bkc at murkworks.com Mon May 10 13:15:07 2004 From: bkc at murkworks.com (Brad Clements) Date: Mon May 10 13:15:53 2004 Subject: [PythonCE] RE: shutil import failure In-Reply-To: <20040510165319.69991.qmail@web50901.mail.yahoo.com> References: <20040510161440.65289.qmail@web50908.mail.yahoo.com> Message-ID: <409F8070.4402.AC447B@localhost> On 10 May 2004 at 9:53, Richard Deeley wrote: > It seems, by following the links, that the version at debris.demon.nl > is likely to be the 2.3 successor to 2.2 at murkworks, although both > seem to have the same origins (murkworks appears down at this writing) Is > that a correct interpretation ? I think so. There was another person who I believe updated the 2.2 port to 2.3, But I'm afraid I don't know where it is. -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements From isrgish at fastem.com Tue May 11 00:16:12 2004 From: isrgish at fastem.com (Isr Gish) Date: Tue May 11 00:16:22 2004 Subject: [PythonCE] RE: shutil import failure Message-ID: Richard Deeley wrote: >A postscript to all this: I followed one of the links in your >other mail and downloaded a 2.3 version. It's directory structure >is a little different from the 2.2 version I had. For example, the >2.3 version has a DLLs directory that 2.2 does not. (It also has >a _tkinter package). (It does not have a shutil.dll, though - so >the reference to that is still not solved) My shutil.dll came with my device its built into rom. Besides I don't think that shutil module needs the dll file. Also I have on my device both versions installed (2.2 and 2.3). And on both I can use the shutil.py(c) without any problems. Therefore it seems to me that you are experiencing a specific problem with *your device*. It may be advisable to try to install the 2.3 version and see if you still have the same problem. All the best Isr From mats.d.wichmann at intel.com Fri May 14 09:09:15 2004 From: mats.d.wichmann at intel.com (Wichmann, Mats D) Date: Fri May 14 09:09:21 2004 Subject: [PythonCE] Updating PythonCE info on python.org Message-ID: Folks, I haven't been paying that much attention, sorry, but it seems from the discussion going on here that the PythonCE info on the python.org website has gone kind of stale. See here: http://www.python.org/download/download_windows.html If someone would undertake to prepare an update to the info, possibly even mentioning the newer term PocketPC, and mail it off to webmaster@python.org, I'll put on my share of the webmaster hat and update the page. Cheers, Mats From bud at sistema.it Tue May 18 13:40:48 2004 From: bud at sistema.it (Bud P. Bruegger) Date: Tue May 18 13:42:23 2004 Subject: [PythonCE] pythonCE binary for iPaq 5550? Message-ID: <20040518194048.4a0a983c.bud@sistema.it> Apologies for a newbie question: Does Brad Clements' Binary for StrongArm run on the iPaq 5550 under Windows Pocket PC 2003 Premium Edition with an XSclale processor? I also read that it is possible to directly access DLLs. Not knowing anything about WindowsCE/Pocket PC, does this mean that I could easily say access system services such as listing Bluetooth devices and writing that list into a cookie for IE? many thanks in advance for any advice -b /----------------------------------------------------------------- | Bud P. Bruegger, Ph.D. | Sistema (www.sistema.it) | Via U. Bassi, 54 | 58100 Grosseto, Italy | +39-0564-411682 (voice and fax) \----------------------------------------------------------------- From isrgish at fastem.com Tue May 18 19:17:45 2004 From: isrgish at fastem.com (Isr Gish) Date: Tue May 18 19:17:56 2004 Subject: [PythonCE] pythonCE binary for iPaq 5550? Message-ID: Bud P.Bruegger wrote: > >Apologies for a newbie question: > >Does Brad Clements' Binary for StrongArm run on the iPaq 5550 under Windows >Pocket PC 2003 Premium Edition with an XSclale processor? Yes. But there is a newer version at: http://debris.demon.nl/PythonCE-2.3 > >I also read that it is possible to directly access DLLs. Not knowing >anything about WindowsCE/Pocket PC, does this mean that I could easily >say access system services such as listing Bluetooth devices and >writing that list into a cookie for IE? I think that this would be a python question not specific to WinCE. I cantbanswer it but you may have more chace on the tutor list (tutor@python.org) > >many thanks in advance for any advice > >-b > > >/----------------------------------------------------------------- >| Bud P. Bruegger, Ph.D. >| Sistema (www.sistema.it) >| Via U. Bassi, 54 >| 58100 Grosseto, Italy >| +39-0564-411682 (voice and fax) >\----------------------------------------------------------------- > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce All the best, Isr From bokkenka at yahoo.com Tue May 25 22:30:40 2004 From: bokkenka at yahoo.com (Nemo) Date: Tue May 25 22:30:46 2004 Subject: [PythonCE] Need Help Associating PY/PYC Message-ID: <20040526023040.89711.qmail@web41209.mail.yahoo.com> New to Pocket PC and PythonCE, and need some help associating PY/PYC files with the program. I have PocketTweak, and have them associated with [ "\Program Files\Python\Python.exe" "%1" ], but all it does when I click a script is open the Python interpreter. I've tried a bunch of iterations with/without the quotes, but none work. What do I have wrong? Nemo -- N'rn Wisconsin From r_deeley at yahoo.com Wed May 26 13:15:45 2004 From: r_deeley at yahoo.com (Richard Deeley) Date: Wed May 26 13:15:50 2004 Subject: [PythonCE] Need Help Associating PY/PYC In-Reply-To: <20040526023040.89711.qmail@web41209.mail.yahoo.com> Message-ID: <20040526171545.73821.qmail@web50904.mail.yahoo.com> I wasted a LOT of time trying to change the name of my CF Card using a registry editor that LOOKED as though it was doing the right thing. I can't say that this applies in your case, but when I used installed and used PHMRegEdit, the problem was solved. The association I see in my PPC is for HKCR\Python script\shell\open\command -> \windows\Start Menu\Py.exe "%1" Richard. --- Nemo wrote: > New to Pocket PC and PythonCE, and need some help associating PY/PYC > files with the program. > > I have PocketTweak, and have them associated with [ "\Program > Files\Python\Python.exe" "%1" ], but all it does when I click a script > is open the Python interpreter. I've tried a bunch of iterations > with/without the quotes, but none work. > > What do I have wrong? > > Nemo -- N'rn Wisconsin > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce __________________________________ Do you Yahoo!? Friends. Fun. Try the all-new Yahoo! Messenger. http://messenger.yahoo.com/ From chronowarper at netscape.net Wed May 26 13:19:17 2004 From: chronowarper at netscape.net (Jeffrey Nix) Date: Wed May 26 13:19:28 2004 Subject: [PythonCE] Need Help Associating PY/PYC Message-ID: <4C303EA6.5B19ADCF.6D297EDE@netscape.net> Your method should work fine provided the PY file you launch has the "if __name__ = '__main__':" hook or it is designed straight up to run. However I have found that the Python interpreter will still open no matter what you do and I haven't found it annoying enough to hack. __________________________________________________________________ Introducing the New Netscape Internet Service. Only $9.95 a month -- Sign up today at http://isp.netscape.com/register Netscape. Just the Net You Need. New! Netscape Toolbar for Internet Explorer Search from anywhere on the Web and block those annoying pop-ups. Download now at http://channels.netscape.com/ns/search/install.jsp