From brian@ablelinktech.com Tue Jan 14 18:16:49 2003 From: brian@ablelinktech.com (Brian Brown) Date: Tue, 14 Jan 2003 11:16:49 -0700 Subject: [PythonCE] sys.platform strangeness Message-ID: <3E245411.3010100@ablelinktech.com> Greetings! I've installed Telion's CAB on my pocket PC, and replace the python executable and win32gui.pyd as listed on the wiki. I also replaced the pcceshell.py file - which still wouldn't run; it was acting as if sys.platform == 'wince'.... so I changed all the if statements and then the shell would work fine. I then imported sys and sys.platform indeed is 'wince'. The is running on PocketPC 2002, so that is a bit confusing :-) Anyone have any ideas? thanks! Brian From lac@ccapcable.com Tue Jan 14 20:29:47 2003 From: lac@ccapcable.com (Telion) Date: Tue, 14 Jan 2003 15:29:47 -0500 Subject: [PythonCE] sys.platform strangeness In-Reply-To: <3E245411.3010100@ablelinktech.com> References: <3E245411.3010100@ablelinktech.com> Message-ID: <200301142030.h0EKUgp02243@gandalf.ccapcable.com> Hi Brian, Thank you for reporting. It shows as "wince" because sys.platform is internally defined from C header file, Pycnfig.h, and python22.dll in my CAB distro is made with "wince". You can simply add sys.platform = "Pocket PC" or whatever it pleases you in site.py provided by CAB . (It can be found in the same directory as .dll and .exe) My version of pcceshell.py --- that is supposed to work for both PPC and HPC --- distinguishs the platform using sys.platform. So, if you use CAB distro and My version of pcceshell.py, you should add " sys.platform == 'Pocket PC' " in the site.py. I will add these info on our Wiki, as well as incorporate it into the next release. By the way, I am still willing, and planing to make a new release that should work for both PPC and HPC. Also, I gained a little more knowledge that CE2.11 version I have not done them because I was busy, and I have been porting and playing with CE version of Wikiserver and LCC C ompiler, and a few other stuff. Telion lac@ccapcable.com http://pages.ccapcable.com/lac/ Brian Brown wrote: (2003/01/14 13:16) > >Greetings! > > I've installed Telion's CAB on my pocket PC, and replace the python >executable and win32gui.pyd as listed on the wiki. I also replaced the >pcceshell.py file - which still wouldn't run; it was acting as if >sys.platform == 'wince'.... so I changed all the if statements and then >the shell would work fine. I then imported sys and sys.platform indeed >is 'wince'. The is running on PocketPC 2002, so that is a bit confusing :-) > >Anyone have any ideas? > >thanks! > >Brian > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From yvo.dries@village.uunet.be Sun Jan 19 22:05:41 2003 From: yvo.dries@village.uunet.be (Yvo Dries) Date: Sun, 19 Jan 2003 23:05:41 +0100 Subject: [PythonCE] PythonCE 2.2+ hourglass should be removed when help() is opened. Message-ID: <000601c2c006$e85645a0$fd00a8c0@MedionXProE> Hello. I installed PythonCE 2.2+ to my HP Jornada 720 (PythonCE22_hpc2000.arm.CAB). When I type "help()" and press Enter, then I get some welcome text followed by a "help>" prompt where I can type more. But in the meantime the hourglass remains active at the center of my Jornada's screen, whereas actually the wait is over, but yet the hourglass remains firmly in place. I can then e.g. type "topics" and press Enter, so I'll get a list of topics, but all the time the hourglass remains in place, instead of disappearing when it's my turn to type. When I just press Enter at the "help>" prompt so as to be returned to the interpreter, then the hourglass disappears. It also disappears when from the menu bar I ask Help, About. And it also disappears when I Windows-tab out of Python, and remains gone when I step back into it. I know: this is a minor inconvenience - but such things are especially annoying for new users. So I hope somebody will do something about this in a later release. Yvo _________________________________________ Yvo Dries ICQ#: 23090671 Tel#: +32(0)476-993203 Fax#: +32(0)2-725.66.16 More ways to contact me: http://wwp.icq.com/23090671 _________________________________________ From lac@ccapcable.com Mon Jan 20 14:31:09 2003 From: lac@ccapcable.com (Telion) Date: Mon, 20 Jan 2003 09:31:09 -0500 Subject: [PythonCE] PythonCE 2.2+ hourglass should be removed when help() is opened. In-Reply-To: <000601c2c006$e85645a0$fd00a8c0@MedionXProE> References: <000601c2c006$e85645a0$fd00a8c0@MedionXProE> Message-ID: <200301201432.h0KEWIp03294@gandalf.ccapcable.com> "Yvo Dries" wrote: (2003/01/19 17:05) > >Hello. >I installed PythonCE 2.2+ to my HP Jornada 720 >(PythonCE22_hpc2000.arm.CAB). > >When I type "help()" and press Enter, then I get some welcome text >followed by a "help>" prompt where I can type more. But in the meantime >the hourglass remains active at the center of my Jornada's screen, >whereas actually the wait is over, but yet the hourglass remains firmly >in place. I can then e.g. type "topics" and press Enter, so I'll get a >list of topics, but all the time the hourglass remains in place, instead >of disappearing when it's my turn to type. > >When I just press Enter at the "help>" prompt so as to be returned to >the interpreter, then the hourglass disappears. It also disappears when >from the menu bar I ask Help, About. And it also disappears when I >Windows-tab out of Python, and remains gone when I step back into it. > >I know: this is a minor inconvenience - but such things are especially >annoying for new users. >So I hope somebody will do something about this in a later release. > >Yvo >_________________________________________ >Yvo Dries >ICQ#: 23090671 >Tel#: +32(0)476-993203 >Fax#: +32(0)2-725.66.16 >More ways to contact me: http://wwp.icq.com/23090671 >_________________________________________ > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce Hi Yvo, You can ignore that hourglass, safely. That problem is reported by lsr and already fixed ( but not released). If you don't want to wait for the fix (that would be in the next release), simply add following line to pcceshell.py, at the 1st line of readline () method SetCursor(LoadCursor(0,0)) Have fun. PS. to all, As for the next release, I have made some progress in CE2.11 builds. MIPS and ARM version for CE2.11 compile without any error, now. I'm strugling with strange error in SH3 build. It compiles without error, but linker reports missing __malloc and __ free, used in pypcre.c. But __malloc and __free is not defined, used in any file. .asm and .cod reveals that compiler is producing __imp__free and __imp__malloc as the symbols to be linked. And that is not different from __imp__realloc and other symbols. Yet, only free() and malloc() get linker error, and only for SH3 build. The problem happens with these lines in pypcre.c. Other files that use malloc or free does not cause any problem. It happens on SH3 build only, too... void *(*pcre_malloc)(size_t) = (void *(*)(size_t))malloc; void (*pcre_free)(void *) = (void (*)(void *))free; malloc and free is defined in stdlib.h from eVC++. // Malloc function prototypes, MALLOC.H _CRTIMP void __cdecl free(void *); _CRTIMP void * __cdecl malloc(size_t); size_t __cdecl _msize(void *); _CRTIMP void * __cdecl realloc(void *, size_t); Any idea on this? Telion lac@ccapcable.com http://pages.ccapcable.com/lac/ From agonzalo@asombra.net Sat Jan 25 18:43:39 2003 From: agonzalo@asombra.net (Angel Asombra) Date: Sat, 25 Jan 2003 19:43:39 +0100 Subject: [PythonCE] New user Message-ID: I`ve install pythonce on a ipaq 3100 and i don`t know how to execute scripts. I don`t know how to open a command line. If anyone knows.... Thanks, Angel. Angel Gonzalo Ruiz Director T=E9cnico Asombra Studio Design S.L. agonzalo@asombra.net From pcolsen@att.com Wed Jan 29 17:43:40 2003 From: pcolsen@att.com (Olsen, Peter C, SOLGV) Date: Wed, 29 Jan 2003 12:43:40 -0500 Subject: [PythonCE] Installing Python on WinCE Message-ID: <8527B21850BECB478454F14257320562014C460F@ACCLUST02EVS1.ugd.att.com> Ladies and Gentlemen, Would someone please help me install Python on my Jornada 560? I know something about Python but almost nothing about WinCE. I've unzipped PPCPythonR2.zip and installed the resulting Python folder in the MyDevice folder on my Jornada 560, but I can't find any link to (or evidence of) an executable. Clicking on any of the .py/.pyc/.pyd files results in an error box telling me that there is no application associated with these types of files. (I've tried installing the Python folder under the ProgramFiles folder as well, also without success.) I'll appreciate any help. Please feel free to tell me RTFM, but then also please tell me where in the FM to R. Thanks! Peter P.S. If you respond, please send a copy to "pcolsen@att.com". Peter Olsen, Ae.E, P.E. Senior Technical Staff Member ATT, 7125 Columbia Gateway Drive, Columbia, MD 21046 Telephone: 443-259-8084 Unless explicitly stated otherwise, all statements in=20 this email are either speculative or hypothetical and shall not be construed to obligate ATT in any way whatsoever.