From pcolsen@comcast.net Mon Apr 7 02:38:48 2003 From: pcolsen@comcast.net (Peter Olsen) Date: Sun, 06 Apr 2003 21:38:48 -0400 Subject: [PythonCE] Pythonpath? Associating .py files with PythonCE? Message-ID: <033301c2fca6$6f4cccb0$0301a8c0@waldo> I've been trying to port a few simple scripts from my Linux/Windoze boxen to PythonCE. So far I haven't been successful. I haven't been able to get pythonce running from a command prompt (e.g. "\Program Files\Python\pythonce.exe myscript.py"), I haven't been able to arrange for it to start when I click on a script, and (finally) I haven't been able to "import" the scripts from the Python ">>>" prompt. (I think this last is because I haven't been able to get PythonCE to accept my PYTHONPATH environment variable.) I would deeply appreciate any help. (Please feel free to flame me with RTFM --- just as long as you also tell me where in TFM to R.) My long-term goal is to port aPOP server, a simple SMTP server, and something like "getmail." I want to use getmail to download my mail from my internet mail accounts, the POP server to serve it to Pocket Outlook from onboard the PDA, and the SMTP server to relay email out of the PDA. I like Pocket Outlook's user interface and integration with Pocket Explorer, but I don't like the way it downloads and sends mail. Again, I'd appreciate any help, pointers, advice, or encouragement. Thanks. Peter Olsen From pcolsen@comcast.net Thu Apr 17 12:14:56 2003 From: pcolsen@comcast.net (Peter Olsen) Date: Thu, 17 Apr 2003 07:14:56 -0400 Subject: [PythonCE] How can I open a network socket from Python? Message-ID: <00ab01c304d2$9391b930$0301a8c0@waldo> Is there a way to open a network socket from a Palm PC running Wince 3.0? I have a HP Jornada 565. I want to use a network card in the compact flash slot, but right now I'd settle for using the ActiveSync port or PPP over the serial line. I'd like to port a POP3 server to my pilot and then have Pocket Outlook query that server. My goal is to gain more control over processing my mail. For example, I'd like to filter out spam, keep an archive of all my mail, and combine all my incoming mail into one mailbox. Eventually I'd like to port some XMLRPC software so I can integrate my PPC into some distributed applications. I'm reasonably experienced in Python for Windows and Linux, but I'm a complete novice at PythonCE. Please feel free to flame me with RTFM, but then also tell me where in TFM to R. Thanks! Peter Olsen From ccatlett@uol.com.br Thu Apr 17 15:23:29 2003 From: ccatlett@uol.com.br (ccatlett) Date: Thu, 17 Apr 2003 11:23:29 -0300 Subject: [PythonCE] pcceshell doesn't load Message-ID: I have installed the Arm version of python 2.2+ on an IPAQ 3635 with CE 3.0 and recive the following error: Traceback(innermost last): cant import traceback execptions,ImportError: No module named pcceshell Could you please assist in resloving this problem. Charles Catlett --- UOL, o melhor da Internet http://www.uol.com.br/ From doug@jarna.com Fri Apr 18 22:43:30 2003 From: doug@jarna.com (Doug Marien) Date: Fri, 18 Apr 2003 14:43:30 -0700 Subject: [PythonCE] timemodule.c changes - added julian & dst Message-ID: <231C175BDFE553419CA997C8113F2B2DF2D6@bizzwazz.test.jarna.com> Did anyone else get the shaft by DST? :) I've made some changes to the = time module for julian and dst support. And it also adds the proper = tzname values. Haven't had a chance to bundle up a new ARM PocketPC build, but I = figured a patch couldn't hurt in the meantime. Check out, http://www.trickymath.com/timemodule.c.diff Doug From bkc@murkworks.com Mon Apr 21 03:53:27 2003 From: bkc@murkworks.com (Brad Clements) Date: Sun, 20 Apr 2003 22:53:27 -0400 Subject: [PythonCE] timemodule.c changes - added julian & dst In-Reply-To: <231C175BDFE553419CA997C8113F2B2DF2D6@bizzwazz.test.jarna.com> Message-ID: <3EA324E6.13497.171520C1@localhost> Is timemodule part of the standard python 2.3 release? On 18 Apr 2003 at 14:43, Doug Marien wrote: From: "Doug Marien" To: Subject: [PythonCE] timemodule.c changes - added julian & dst Date sent: Fri, 18 Apr 2003 14:43:30 -0700 > Did anyone else get the shaft by DST? :) I've made some changes to the > time module for julian and dst support. And it also adds the proper tzname > values. > > Haven't had a chance to bundle up a new ARM PocketPC build, but I figured a > patch couldn't hurt in the meantime. > > Check out, http://www.trickymath.com/timemodule.c.diff > > Doug > > _______________________________________________ > 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 doug@jarna.com Mon Apr 21 17:54:46 2003 From: doug@jarna.com (Doug Marien) Date: Mon, 21 Apr 2003 09:54:46 -0700 Subject: [PythonCE] timemodule.c changes - added julian & dst Message-ID: <231C175BDFE553419CA997C8113F2B2DF2D7@bizzwazz.test.jarna.com> I made the modifications to python\dist\src\PC\evt-ce\timemodule.c Or are you referring to the time module in general? In that case, I = don't see anything about it being removed from 2.3. -----Original Message----- From: Brad Clements [mailto:bkc@murkworks.com] Sent: Sunday, April 20, 2003 7:53 PM To: PythonCE@python.org Subject: Re: [PythonCE] timemodule.c changes - added julian & dst Is timemodule part of the standard python 2.3 release? On 18 Apr 2003 at 14:43, Doug Marien wrote: From: "Doug Marien" To: Subject: [PythonCE] timemodule.c changes - added julian & dst Date sent: Fri, 18 Apr 2003 14:43:30 -0700 > Did anyone else get the shaft by DST? :) I've made some changes to = the > time module for julian and dst support. And it also adds the proper = tzname > values. >=20 > Haven't had a chance to bundle up a new ARM PocketPC build, but I = figured a > patch couldn't hurt in the meantime. >=20 > Check out, http://www.trickymath.com/timemodule.c.diff >=20 > Doug From kavitha@tataelxsi.co.in Wed Apr 23 05:57:58 2003 From: kavitha@tataelxsi.co.in (Kavitha) Date: Wed, 23 Apr 2003 10:27:58 +0530 Subject: [PythonCE] hello Message-ID: <3EA61D56.931DD2BB@tataelxsi.co.in> Hello All, I want to know where i can get windows CE DDK, one of windows E document says the DDK comes along with windows CE platform builder CD,when i install that its not installing DDK..can you pls tell me where can i find DDK for windows CE? Regards, Kavitha. From bkc@murkworks.com Wed Apr 23 13:12:20 2003 From: bkc@murkworks.com (Brad Clements) Date: Wed, 23 Apr 2003 08:12:20 -0400 Subject: [PythonCE] hello In-Reply-To: <3EA61D56.931DD2BB@tataelxsi.co.in> Message-ID: <3EA64AE3.7757.236178B5@localhost> The DDK is for developing device drivers. Is that what you need to do? Applications development doesn't need the ddk. I haven't seen the ddk in a long time, not since 2.0 days, after that I think its only available through integration companies as part of a license.. On 23 Apr 2003 at 10:27, Kavitha wrote: From: "Kavitha" To: pythonce@python.org Subject: [PythonCE] hello Date sent: Wed, 23 Apr 2003 10:27:58 +0530 > Hello All, > > I want to know where i can get windows CE DDK, > one of windows E document says the DDK comes > along with windows CE platform builder CD,when i > install that its not installing DDK..can you pls tell > me where can i find DDK for windows CE? > > Regards, > Kavitha. > > > _______________________________________________ > 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 Raphael.Jolivet@xrce.xerox.com Mon Apr 28 16:48:17 2003 From: Raphael.Jolivet@xrce.xerox.com (Jolivet, Raphael) Date: Mon, 28 Apr 2003 17:48:17 +0200 Subject: [PythonCE] Can't get the sources of PythonCE Message-ID: It seems that the link to the source files doesn't work. ftp://ftp.murkworks.com/beta/pyceall3.zip Can you please indicate where I can find it. Actually, I'm trying to get 'Swig' work on PythonCE (iPAQ 3900 WinCE 3.0) Swig requires Python.h and Python.lib to build the DLL that handles the wrapper to my C++ library. Of course, the "Python.h" of Windows won't compile for WinCE (it needs some special headers) and the ".lib" file given in the Python22 distrib is compiled for x86, not ARM. Have you also heard of someone who to tried to port Swig on WinCE ? Thank you in advance. Raphael Jolivet From dan@bloodylikely.com Tue Apr 29 01:10:01 2003 From: dan@bloodylikely.com (Dan Samblanet) Date: Mon, 28 Apr 2003 20:10:01 -0400 Subject: [PythonCE] Any way to get the webserver classes working? Message-ID: <3EADC2D9.9080103@bloodylikely.com> Maybe this has been covered in the past, but I sure can't easily find it. Due to my laziness, I have decided to go with a web based interface instead of mucking around with win32 for an app I am developing. Everything so far works fine on the PC Side. When I bring it over to my PPC I get the following error: ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 1068) Traceback (most recent call last): File "/Program Files/Python/lib\SocketServer.py", line 221, in handle_request self.process_request(request, client_address) File "/Program Files/Python/lib\SocketServer.py", line 240, in process_request self.finish_request(request, client_address) File "/Program Files/Python/lib\SocketServer.py", line 253, in finish_request self.RequestHandlerClass(request, client_address, self) File "/Program Files/Python/lib\SocketServer.py", line 513, in __init__ self.setup() File "/Program Files/Python/lib\SocketServer.py", line 553, in setup self.rfile = self.connection.makefile('rb', self.rbufsize) AttributeError: '_socket.socket' object has no attribute 'makefile' ---------------------------------------- The code: (currently, just like the documented example) import CGIHTTPServer import BaseHTTPServer def run(server_class=BaseHTTPServer.HTTPServer, handler_class=CGIHTTPServer.CGIHTTPRequestHandler): server_address = ('', 8000) httpd = server_class(server_address, handler_class) httpd.serve_forever() run() My current setup is: PythonCE 2.3 ( http://mail.python.org/pipermail/pythonce/2002-September/000140.html ) on top of the lib dir from the PPC Python R2 (However I do get the same error without 2.3). If there are any solutions or workarounds to this issue, I would appreciate hearing them. Thanks -Dan From doug@jarna.com Tue Apr 29 01:38:04 2003 From: doug@jarna.com (Doug Marien) Date: Mon, 28 Apr 2003 17:38:04 -0700 Subject: [PythonCE] Any way to get the webserver classes working? Message-ID: <231C175BDFE553419CA997C8113F2B2DF304@bizzwazz.test.jarna.com> That would be the build I put together, but this applies to PocketPC in = general. The makefile call uses _open_osfhandle, dup and fdopen which = are all unsupported on the PocketPC. So, you're stuck to using the = socket object. :/ You could try writing your own wrapper class and tweak the SocketServer. Doug -----Original Message----- From: Dan Samblanet [mailto:dan@bloodylikely.com] Sent: Monday, April 28, 2003 5:10 PM To: pythonce@python.org Subject: [PythonCE] Any way to get the webserver classes working? Maybe this has been covered in the past, but I sure can't easily find=20 it. Due to my laziness, I have decided to go with a web based interface = instead of mucking around with win32 for an app I am developing.=20 Everything so far works fine on the PC Side. When I bring it over to my = PPC I get the following error: ---------------------------------------- Exception happened during processing of request from ('127.0.0.1', 1068) Traceback (most recent call last): File "/Program Files/Python/lib\SocketServer.py", line 221, in=20 handle_request self.process_request(request, client_address) File "/Program Files/Python/lib\SocketServer.py", line 240, in=20 process_request self.finish_request(request, client_address) File "/Program Files/Python/lib\SocketServer.py", line 253, in=20 finish_request self.RequestHandlerClass(request, client_address, self) File "/Program Files/Python/lib\SocketServer.py", line 513, in = __init__ self.setup() File "/Program Files/Python/lib\SocketServer.py", line 553, in setup self.rfile =3D self.connection.makefile('rb', self.rbufsize) AttributeError: '_socket.socket' object has no attribute 'makefile' ---------------------------------------- The code: (currently, just like the documented example) import CGIHTTPServer import BaseHTTPServer def run(server_class=3DBaseHTTPServer.HTTPServer, handler_class=3DCGIHTTPServer.CGIHTTPRequestHandler): server_address =3D ('', 8000) httpd =3D server_class(server_address, handler_class) httpd.serve_forever() run() My current setup is: PythonCE 2.3 (=20 http://mail.python.org/pipermail/pythonce/2002-September/000140.html )=20 on top of the lib dir from the PPC Python R2 (However I do get the same=20 error without 2.3). If there are any solutions or workarounds to this issue, I would=20 appreciate hearing them. Thanks -Dan From bkc@murkworks.com Tue Apr 29 03:45:20 2003 From: bkc@murkworks.com (Brad Clements) Date: Mon, 28 Apr 2003 22:45:20 -0400 Subject: [PythonCE] Can't get the sources of PythonCE In-Reply-To: Message-ID: <3EADAEFF.2027.4040633B@localhost> That FTP address should work. Are you using pasv or non pasv mode? I used "swig" on the desktop to generate the C wrappers for the win32 stuff. You don't need swig to run on CE itself. I bet the ctypes might be a lot more handy. I'd like to see that on CE. Telion seems to have disappeared from this list. Who else has modifications/patches for Python? We might as well move to 2.3 instead of spending more time on 2.2 On 28 Apr 2003 at 17:48, Jolivet, Raphael wrote: From: "Jolivet, Raphael" To: "'pythonce@python.org'" Subject: [PythonCE] Can't get the sources of PythonCE Date sent: Mon, 28 Apr 2003 17:48:17 +0200 > > It seems that the link to the source files doesn't work. > ftp://ftp.murkworks.com/beta/pyceall3.zip > > Can you please indicate where I can find it. > > > Actually, I'm trying to get 'Swig' work on PythonCE (iPAQ 3900 WinCE 3.0) > Swig requires Python.h and Python.lib to build the DLL that handles the > wrapper to my C++ library. > > Of course, the "Python.h" of Windows won't compile for WinCE (it needs > some special headers) and the ".lib" file given in the Python22 distrib is > compiled for x86, not ARM. > > Have you also heard of someone who to tried to port Swig on WinCE ? > Thank you in advance. > > Raphael Jolivet > > _______________________________________________ > 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 bkc@murkworks.com Tue Apr 29 15:13:49 2003 From: bkc@murkworks.com (Brad Clements) Date: Tue, 29 Apr 2003 10:13:49 -0400 Subject: [PythonCE] Any way to get the webserver classes working? In-Reply-To: <3EADC2D9.9080103@bloodylikely.com> Message-ID: <3EAE505C.2097.42B6B29B@localhost> Have you tried medusa instead? -- Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax http://www.wecanstopspam.org/ AOL-IM: BKClements