From isrgish at fastem.com Wed Sep 1 02:39:22 2004 From: isrgish at fastem.com (Isr Gish) Date: Wed Sep 1 02:39:39 2004 Subject: [PythonCE] xml on pocketpc Message-ID: <20040901003938.4CD331E4002@bag.python.org> Hi Ajay, > >hi! > >i am trying to run a small script that parses an xml document on my pocket >pc. >the following throwse an error >from xml.dom.minidom import parse >t = parse("test.xml") > >the error i get is >AttributeError: 'module' object has no attribure 'ParserCreate' > >is there something i am doing wrong? how should i go about parsing and >mainoulating xml documents on the pocket pc >i am using Python-2.3.4-arm-PPC2002 There was a xml package ported to the Pocket PC. I think its the PyXML package. Its available at http://debris.demon.nl/PythonCE-2.3. I never used it(am not even sure I know what XML is). All the best, Isr > >cheers > > > > > > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From abra9823 at mail.usyd.edu.au Wed Sep 1 04:38:10 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Wed Sep 1 04:38:19 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040901003938.40CE9666DB@ankara.ucc.usyd.edu.au> References: <20040901003938.40CE9666DB@ankara.ucc.usyd.edu.au> Message-ID: <1094006290.41353612a010e@www-mail.usyd.edu.au> hi! i copied the files from the PyXML package over to the pocket pc. the trouble is when i call the parser i get a Fatal Exception Error, exception - 0x80000002 looking around the different message boards the error seems to be caused when you call a dll that isn't supported on the platform. i am using pocketpc2002. any ideas how i can resolve the error. thanks cheers Quoting Isr Gish : > Hi Ajay, > > > > >hi! > > > >i am trying to run a small script that parses an xml document on my > pocket > >pc. > >the following throwse an error > >from xml.dom.minidom import parse > >t = parse("test.xml") > > > >the error i get is > >AttributeError: 'module' object has no attribure 'ParserCreate' > > > >is there something i am doing wrong? how should i go about parsing > and > >mainoulating xml documents on the pocket pc > >i am using Python-2.3.4-arm-PPC2002 > > There was a xml package ported to the Pocket PC. I think its the PyXML > package. Its available at http://debris.demon.nl/PythonCE-2.3. > I never used it(am not even sure I know what XML is). > > All the best, > Isr > > > > >cheers > > > > > > > > > > > > > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From johnny at debris.demon.nl Wed Sep 1 09:20:41 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Wed Sep 1 09:21:05 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040901003938.4CD331E4002@bag.python.org> References: <20040901003938.4CD331E4002@bag.python.org> Message-ID: <41357849.2040908@debris.demon.nl> Isr Gish wrote: >I never used it(am not even sure I know what XML is). > > > Isn't that, like, CSV with a lot of overhead? ;) Cheers, Guido P.S. The PyXML stuff in the 2.3 dist should indeed work... From abra9823 at mail.usyd.edu.au Wed Sep 1 09:33:19 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Wed Sep 1 09:33:24 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <41357849.2040908@debris.demon.nl> References: <20040901003938.4CD331E4002@bag.python.org> <41357849.2040908@debris.demon.nl> Message-ID: <1094023999.41357b3f1e3c8@www-mail.usyd.edu.au> hi! it doesn't seem to work parsing a file raises a Fatal Exception Error, exception 0x80000002. Don't know why, maybe because i am using the Python-2.3.4-arm-PPC2002 instead of the Python port listed on the website but if you can tell me how to get rid of the error, that would be fabulous. thanks cheers Quoting Johnny deBris : > Isr Gish wrote: > > >I never used it(am not even sure I know what XML is). > > > > > > > Isn't that, like, CSV with a lot of overhead? ;) > > Cheers, > > Guido > > P.S. The PyXML stuff in the 2.3 dist should indeed work... > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From johnny at debris.demon.nl Wed Sep 1 09:40:11 2004 From: johnny at debris.demon.nl (Johnny deBris) Date: Wed Sep 1 09:40:14 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <1094023999.41357b3f1e3c8@www-mail.usyd.edu.au> References: <20040901003938.4CD331E4002@bag.python.org> <41357849.2040908@debris.demon.nl> <1094023999.41357b3f1e3c8@www-mail.usyd.edu.au> Message-ID: <41357CDB.2060009@debris.demon.nl> Ajay wrote: >hi! > >it doesn't seem to work >parsing a file raises a Fatal Exception Error, exception 0x80000002. Don't >know why, maybe because i am using the Python-2.3.4-arm-PPC2002 instead of >the Python port listed on the website > > > I'm pretty sure that's it, I don't know if all the PyXML subpackages are fully working but I could at least import them on 2.3. I think the package contains some compiled C modules, if so I assume they will only work on the Python version they were compiled for. Could you try downloading that older version and see if that does work? Cheers, Guido From abra9823 at mail.usyd.edu.au Wed Sep 1 09:53:43 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Wed Sep 1 09:53:48 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <41357CDB.2060009@debris.demon.nl> References: <20040901003938.4CD331E4002@bag.python.org> <41357849.2040908@debris.demon.nl> <1094023999.41357b3f1e3c8@www-mail.usyd.edu.au> <41357CDB.2060009@debris.demon.nl> Message-ID: <1094025223.41358007a74ab@www-mail.usyd.edu.au> hi! Quoting Johnny deBris : > Ajay wrote: > > >hi! > > > >it doesn't seem to work > >parsing a file raises a Fatal Exception Error, exception 0x80000002. > Don't > >know why, maybe because i am using the Python-2.3.4-arm-PPC2002 instead > of > >the Python port listed on the website > > > > > > > I'm pretty sure that's it, I don't know if all the PyXML subpackages are > fully working but I could at least import them on 2.3. I think the > package contains some compiled C modules, if so I assume they will only > work on the Python version they were compiled for. Could you try > downloading that older version and see if that does work? i can import as well. the problem is running them how would you run the python version listed on the website. I copied them over but when i click on the python executable i get an error - "'python' is not a valid Pocket PC application". and running \pcceshell\runcode or \pcceshell\simpleshell throws errors saying - "couldn't find the application to run them" thanks cheers > > Cheers, > > Guido > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From huymail at swiftdsl.com.au Wed Sep 1 12:21:45 2004 From: huymail at swiftdsl.com.au (Huy) Date: Wed Sep 1 12:21:56 2004 Subject: [PythonCE] [Fwd: Access windows api in pythonce] Message-ID: <4135A2B9.7070202@swiftdsl.com.au> -------- Original Message -------- Subject: Access windows api in pythonce Date: Wed, 01 Sep 2004 20:21:18 +1000 From: Huy To: Ajay References: <20040901003938.4CD331E4002@bag.python.org> <41357849.2040908@debris.demon.nl> <1094023999.41357b3f1e3c8@www-mail.usyd.edu.au> <41357CDB.2060009@debris.demon.nl> <1094025223.41358007a74ab@www-mail.usyd.edu.au> Hi All, Besides PyWin32, is there another way of accessing the windows api on the pocket pc using python ? I've heard of calldll but don't know exactly how to get it working for this version of python. ctypes deoesn't seem to be ported yet either. Thanks Huy From swida at aragorn.pb.bialystok.pl Wed Sep 1 18:38:29 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Wed Sep 1 18:39:54 2004 Subject: [PythonCE] SQLite for PythonCE Message-ID: <20040901163304.M80937@aragorn.pb.bialystok.pl> Hi, First of all thanks for your great work and bringing Python to WINCE! And my message: Using source tree from David Kashtan page, I've managed to compile PySQLite module for PythonCE. I've run some simply tests and it seems it is working, but anyone interested - please check it. Precompiled binaries are available at: http://aragorn.pb.bialystok.pl/~swida/pysqlite-wince.zip Instalation notes: 1) Copy "sqlite" directory and "_sqlite.pyd" into your Python\Lib folder 2) copy "sqlite_dll.dll" to Windows directory 3) Enjoy. best regards, Oskar Swida From lordzealon at ono.com Wed Sep 1 20:16:13 2004 From: lordzealon at ono.com (Lord ZealoN) Date: Wed Sep 1 20:16:25 2004 Subject: [PythonCE] Hi at all Message-ID: <413611ED.5000009@ono.com> Hi. Recently i bought an iPaq 4150 and i love python. I have any questions. - Is possible connect pythonce to a database? - Is possible use PythonCe + wxWindow or other graphic api instead Tkinter? Thanks for your time and sorry for my bad english -- Lord_ZealoN (Project Leader) Fire&Ice Studios (http://www.fireicestudios.com) Don't dream, PLAY! From swida at aragorn.pb.bialystok.pl Wed Sep 1 20:57:03 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Wed Sep 1 20:58:15 2004 Subject: [PythonCE] SQLite for PythonCE In-Reply-To: <4135E2BA.13129.1E76DB14@coal.murkworks.com> References: <4135D3A3.23796.1E3BEA46@coal.murkworks.com> <4135E2BA.13129.1E76DB14@coal.murkworks.com> Message-ID: <20040901185144.M4398@aragorn.pb.bialystok.pl> > I'm sorry, I even have a CE device anymore on which to test this. > > Would you like me to wait for you to get more feedback first? > Hmm, for now I managed to run all three examples from pysqlite distribution and it seems they work - I believe module is good. There is one more thing - I'm not sure what about distribution of precompiled version of sqlite DLL for wince... regards, Oskar Swida From abra9823 at mail.usyd.edu.au Thu Sep 2 07:38:25 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Thu Sep 2 07:38:33 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040901211333.01FB068697@ankara.ucc.usyd.edu.au> References: <20040901211333.01FB068697@ankara.ucc.usyd.edu.au> Message-ID: <1094103505.4136b1d1c2868@www-mail.usyd.edu.au> hi! It still doesn't work. Doing - from xml.dom.minidom import parse dom1 = parse('\um\proxy\p.xml') results in the Python.exe shell terminating doing- from xml.dom.ext.reader import Sax2 gives an error - module object has no attribute 'O-RDWR' cheers Quoting Isr Gish : > Ajay wrote: > >how would you run the python version listed on the website. I > copied them > >over but when i click on the python executable i get an error - > "'python' > >is not a valid Pocket PC application". and running > \pcceshell\runcode or > >\pcceshell\simpleshell throws errors saying - "couldn't find the > >application to run them" > There was a problem with the exe file. > Here is a good one that should work. > > All the best, > Isr > > > > > >thanks > > > >cheers > > > > > > > > > >> > >> Cheers, > >> > >> Guido > >> > > > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From pfalcon at users.sourceforge.net Thu Sep 2 16:25:54 2004 From: pfalcon at users.sourceforge.net (Paul Sokolovsky) Date: Thu Sep 2 16:26:23 2004 Subject: [PythonCE] SQLite for PythonCE In-Reply-To: <20040901163304.M80937@aragorn.pb.bialystok.pl> References: <20040901163304.M80937@aragorn.pb.bialystok.pl> Message-ID: <42325249864.20040902172554@ua.fm> Hello Oskar, Wednesday, September 1, 2004, 7:38:29 PM, you wrote: OS> Hi, OS> First of all thanks for your great work and bringing Python to WINCE! OS> And my message: OS> Using source tree from David Kashtan page, I've managed to compile PySQLite OS> module for PythonCE. I've run some simply tests and it seems it is working, OS> but anyone interested - please check it. OS> Precompiled binaries are available at: OS> http://aragorn.pb.bialystok.pl/~swida/pysqlite-wince.zip Very good news, thanks! Having a native database connectivity is very important thing which opens great possibilities for Python-CE usage. Could explain what version of pysqlite you used and what patches you applied? -- Best regards, Paul mailto:pfalcon@users.sourceforge.net From abra9823 at mail.usyd.edu.au Thu Sep 2 16:29:22 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Thu Sep 2 16:29:27 2004 Subject: [PythonCE] compiling for winCE Message-ID: <1094135362.41372e4239fe9@www-mail.usyd.edu.au> hi! would people who have successfully ported packages to pocket pc please post a howto/guide to porting a package to pocket pc? what do you need to do? what do you need in to set up in the build environment? please help thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From nithril at free.fr Thu Sep 2 17:51:09 2004 From: nithril at free.fr (Nithril) Date: Thu Sep 2 17:51:11 2004 Subject: [PythonCE] problem with server Message-ID: <1094140269.4137416db350f@imp1-q.free.fr> Hi all, I have a problem with the http and cgi server. They start but when I try to access a web page through IE, the console throw me an error 10054 (connexion reset by peer) on socket.py line 323 ie. when the servers try to read a line of the request. I dont know from where this issue come, but I suspect IE (win ce .net 4.2 build 0) someone can help me? thx From huymail at swiftdsl.com.au Thu Sep 2 18:08:34 2004 From: huymail at swiftdsl.com.au (Huy) Date: Thu Sep 2 18:08:43 2004 Subject: [PythonCE] compiling for winCE In-Reply-To: <1094135362.41372e4239fe9@www-mail.usyd.edu.au> References: <1094135362.41372e4239fe9@www-mail.usyd.edu.au> Message-ID: <41374582.4050809@swiftdsl.com.au> Ajay wrote: > hi! > > would people who have successfully ported packages to pocket pc please post > a howto/guide to porting a package to pocket pc? > > what do you need to do? what do you need in to set up in the build > environment? > > please help I don't know about porting other packages but I have written my own python extensions using embedded c++ 4.0 for pocket pc 2003 running on the python 2.3.4. At the moment I'm using it for things which win32gui does not fully support eg. SHFullScreen SIPShowIM etc. Here are the steps I took to get it to work on the platform above. 1. Install Embedded Visual Tools C++ 4.0 2. Install Embedded Visual Tools C++ 4.0 SP3 3. Install Pocket PC 2003 SDK (these files can be downloaded from microsoft web site) 4. Create new project in EVC (Dymanic Link Library). 5. Write your C/C++ code to do whatever it is you want to do. Don't worry about interfacing it with python. Write it as if you are using it standalone. 6. Compile it and make sure it is all working. 7. Install the python source code 8. Install the pythonce source code (overlay on top of python source) 9. Build pythonce following instructions on David Kashtans' site. http://fore.validus.com/~kashtan/ 10. Install SWIG. See the tutorial on their site for a quick run down on how to get it too work with your C++ code and python. Basically you need to write an interface file eg. if you have source file modulename.cpp then create a file called modulename.i and chuck stuff in that (see the tutorial for details) run swig on your interface file as follows: swig.exe -python -shadow -o modulename_wrap.cpp modulename.i This will generate the source_wrap.cpp file which you now need to add to your evc4 project. In you evc4 project settings, 1. go to the c/c++ tab and add the following to the project options box. /I "PYTHON_SOURCE_ROOT/Include" /I "PYTHON_SOURCE_ROOT/PC/WinCE" 2. go to the link tab and change your dll output file name to _modulename.pyd (pyd files are the dll files with a pyd extension; i didn't know this until today). Now build the project and hopefully you should have a _modulename.pyd file in your build directory. Now move the files _modulename.pyd and modulename.py (this file is generated by swig when issuing the -shadow command) to your pocket pc python lib directory. You should now be able to import the module in your python programs. This is my first try at both writing a python extension as well as playing with pythonce so if any of the veterans on the list could give me any extra pointers, I would be most grateful. Huy From swida at aragorn.pb.bialystok.pl Thu Sep 2 21:16:08 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Thu Sep 2 21:17:24 2004 Subject: [PythonCE] SQLite for PythonCE In-Reply-To: <42325249864.20040902172554@ua.fm> References: <20040901163304.M80937@aragorn.pb.bialystok.pl> <42325249864.20040902172554@ua.fm> Message-ID: <20040902185717.M43926@aragorn.pb.bialystok.pl> On Thu, 2 Sep 2004 17:25:54 +0300, Paul Sokolovsky wrote > Hello Oskar, > > Wednesday, September 1, 2004, 7:38:29 PM, you wrote: > > OS> Hi, > OS> First of all thanks for your great work and bringing Python to WINCE! > OS> And my message: > OS> Using source tree from David Kashtan page, I've managed to > compile PySQLite OS> module for PythonCE. I've run some simply tests > and it seems it is working, OS> but anyone interested - please check > it. OS> Precompiled binaries are available at: OS> > http://aragorn.pb.bialystok.pl/~swida/pysqlite-wince.zip > > I think Huy () gave a beautiful tutorial in last post, I've done it quite magically, but I'll try to explain - forgive me my English - I'm not a native speaker. This is last version of pysqlite (0.5.1 if I remember) and no patches are required. I've made a makefiles in PythonCE tree under "External-Components" directory, similar to PyWin32 structure. Makefiles are available at: http://aragorn.pb.bialystok.pl/~swida/pysqlite-wince-makefiles.zip Compiling is rather simple: 1. Get PySQLite sources and unpack them in some directory, 2. Copy my makefiles into PythonCE tree (say in External-Components\pysqlite ) 3. Modify main makefile in PCBuild\WinCE adding new external component - look at PyWin32 for an example 4. Define PYSQLITEROOT variable in wcearm.bat(wcearm300.bat) pointing to pysqlite sources directory 5. Run wcearm.bat 6. Run "nmake all" Now you have "pysqlite.pyd" in your binaries and you can add it to your PythonCE distribution (actually this file should be named "_sqlite.pyd" - but these makefiles produce "pysqlite.pyd" - this was my first idea and I forgot to change makefiles, but you can change them or simply rename "pysqlite.pyd" into "_sqlite.pyd"). For distribution you also need files from "sqlite" directory under pysqlite sources - there are two files "__init__.py" and "main.py" just copy them to your distribution along with directory. Additionally need copy of sqlite DLL library, which can be compiled from sources available at: http://sqlite-wince.sourceforge.net/ When you have installed all the files, you can use "import sqlite" directive in your scripts. NOTE: all binaries available at my site are for Pocket PC 2002 and made by eVC 3.0, but I suppose the procedure for Pocket PC 2003 will be the same. best regards, Oskar From isrgish at fastem.com Thu Sep 2 21:22:44 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Sep 2 21:22:54 2004 Subject: [PythonCE] compiling for winCE Message-ID: <20040902192252.A94591E4002@bag.python.org> Huy Wrote: > >I don't know about porting other packages but I have written my own >python extensions using embedded c++ 4.0 for pocket pc 2003 running on >the python 2.3.4. At the moment I'm using it for things which win32gui >does not fully support eg. SHFullScreen SIPShowIM etc. Whould you mind shareing this with others? Thanks Isr > >Huy > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From isrgish at fastem.com Thu Sep 2 21:22:47 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Sep 2 21:22:57 2004 Subject: [PythonCE] xml on pocketpc Message-ID: <20040902192255.9C3451E4002@bag.python.org> What did you try in the PyXml, and what error did you get. Isr -----Original Message----- >From: "Ajay" >Sent: 9/2/04 1:38:25 AM >To: "Isr Gish" >Cc: "johnny@debris.demon.nl", "pythonce@python.org" >Subject: Re: [PythonCE] xml on pocketpc >hi! > >It still doesn't work. >Doing - >from xml.dom.minidom import parse >dom1 = parse('\um\proxy\p.xml') > >results in the Python.exe shell terminating > >doing- >from xml.dom.ext.reader import Sax2 >gives an error - module object has no attribute 'O-RDWR' > >cheers > > >Quoting Isr Gish : > >> Ajay wrote: >> >how would you run the python version listed on the website. I >> copied them >> >over but when i click on the python executable i get an error - >> "'python' >> >is not a valid Pocket PC application". and running >> \pcceshell\runcode or >> >\pcceshell\simpleshell throws errors saying - "couldn't find the >> >application to run them" >> There was a problem with the exe file. >> Here is a good one that should work. >> >> All the best, >> Isr >> >> >> > >> >thanks >> > >> >cheers >> > >> > >> > >> > >> >> >> >> Cheers, >> >> >> >> Guido >> >> >> > >> > >> >---------------------------------------------------------------- >> >This message was sent using IMP, the Internet Messaging Program. >> >_______________________________________________ >> >PythonCE mailing list >> >PythonCE@python.org >> >http://mail.python.org/mailman/listinfo/pythonce >> > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > From abra9823 at mail.usyd.edu.au Fri Sep 3 01:53:54 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Fri Sep 3 01:54:03 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040902192254.2F7C46A53B@ankara.ucc.usyd.edu.au> References: <20040902192254.2F7C46A53B@ankara.ucc.usyd.edu.au> Message-ID: <1094169234.4137b29221b34@www-mail.usyd.edu.au> hi! i tried the statement: from xml.dom.minidom import parse d1 = parse('\um\proxy\p.xml') this resulted in the shell terminating without displaying any errors. the shell just disappeared when i tried the statement: from xml.dom.ext.reader import Sax2 i received an error: 'module' object has no attribute 'O_RDWR' thanks Quoting Isr Gish : > What did you try in the PyXml, and what error did you get. > > Isr > > -----Original Message----- > >From: "Ajay" > >Sent: 9/2/04 1:38:25 AM > >To: "Isr Gish" > >Cc: "johnny@debris.demon.nl", > "pythonce@python.org" > >Subject: Re: [PythonCE] xml on pocketpc > >hi! > > > >It still doesn't work. > >Doing - > >from xml.dom.minidom import parse > >dom1 = parse('\um\proxy\p.xml') > > > >results in the Python.exe shell terminating > > > >doing- > >from xml.dom.ext.reader import Sax2 > >gives an error - module object has no attribute 'O-RDWR' > > > >cheers > > > > > >Quoting Isr Gish : > > > >> Ajay wrote: > >> >how would you run the python version listed on the website. > I > >> copied them > >> >over but when i click on the python executable i get an error > - > >> "'python' > >> >is not a valid Pocket PC application". and running > >> \pcceshell\runcode or > >> >\pcceshell\simpleshell throws errors saying - "couldn't find > the > >> >application to run them" > >> There was a problem with the exe file. > >> Here is a good one that should work. > >> > >> All the best, > >> Isr > >> > >> > >> > > >> >thanks > >> > > >> >cheers > >> > > >> > > >> > > >> > > >> >> > >> >> Cheers, > >> >> > >> >> Guido > >> >> > >> > > >> > > >> > >---------------------------------------------------------------- > >> >This message was sent using IMP, the Internet Messaging > Program. > >> >_______________________________________________ > >> >PythonCE mailing list > >> >PythonCE@python.org > >> >http://mail.python.org/mailman/listinfo/pythonce > >> > > > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > > > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From isrgish at fastem.com Fri Sep 3 02:59:36 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Sep 3 02:59:45 2004 Subject: [PythonCE] xml on pocketpc Message-ID: <20040903005943.3C1241E400F@bag.python.org> I tried playing a little with PyXml, and it seems to work. I tried the marshaler >>> import _xmlplus.marshal.wddx as wddx >>> s = wddx.WDDXMarshaller() >>> ms = s.dumps([1,2,3]) >>> print ms
123 All the best Isr -----Original Message----- >From: "Ajay" >Sent: 9/2/04 1:38:25 AM >To: "Isr Gish" >Cc: "johnny@debris.demon.nl", "pythonce@python.org" >Subject: Re: [PythonCE] xml on pocketpc >hi! > >It still doesn't work. >Doing - >from xml.dom.minidom import parse >dom1 = parse('\um\proxy\p.xml') > >results in the Python.exe shell terminating > >doing- >from xml.dom.ext.reader import Sax2 >gives an error - module object has no attribute 'O-RDWR' > >cheers > > >Quoting Isr Gish : > >> Ajay wrote: >> >how would you run the python version listed on the website. I >> copied them >> >over but when i click on the python executable i get an error - >> "'python' >> >is not a valid Pocket PC application". and running >> \pcceshell\runcode or >> >\pcceshell\simpleshell throws errors saying - "couldn't find the >> >application to run them" >> There was a problem with the exe file. >> Here is a good one that should work. >> >> All the best, >> Isr >> >> >> > >> >thanks >> > >> >cheers >> > >> > >> > >> > >> >> >> >> Cheers, >> >> >> >> Guido >> >> >> > >> > >> >---------------------------------------------------------------- >> >This message was sent using IMP, the Internet Messaging Program. >> >_______________________________________________ >> >PythonCE mailing list >> >PythonCE@python.org >> >http://mail.python.org/mailman/listinfo/pythonce >> > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. > From isrgish at fastem.com Fri Sep 3 03:03:54 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Sep 3 03:04:03 2004 Subject: [PythonCE] xml on pocketpc Message-ID: <20040903010401.660E21E4002@bag.python.org> I understand thatbto be from the re>ular liberary. What I'm asking is if you tried the PyXml liberary from: http://debris.demon.nl/PythonCE-2.3 All the best, Isr -----Original Message----- >From: "Ajay" >Sent: 9/2/04 7:53:54 PM >To: "Isr Gish" >Cc: "johnny@debris.demon.nl", "pythonce@python.org" >Subject: Re: [PythonCE] xml on pocketpc > >hi! > >i tried the statement: >from xml.dom.minidom import parse >d1 = parse('\um\proxy\p.xml') >this resulted in the shell terminating without displaying any errors. the >shell just disappeared > >when i tried the statement: >from xml.dom.ext.reader import Sax2 >i received an error: >'module' object has no attribute 'O_RDWR' > >thanks > > >Quoting Isr Gish : > >> What did you try in the PyXml, and what error did you get. >> >> Isr >> >> -----Original Message----- >> >From: "Ajay" >> >Sent: 9/2/04 1:38:25 AM >> >To: "Isr Gish" >> >Cc: "johnny@debris.demon.nl", >> "pythonce@python.org" >> >Subject: Re: [PythonCE] xml on pocketpc >> >hi! >> > >> >It still doesn't work. >> >Doing - >> >from xml.dom.minidom import parse >> >dom1 = parse('\um\proxy\p.xml') >> > >> >results in the Python.exe shell terminating >> > >> >doing- >> >from xml.dom.ext.reader import Sax2 >> >gives an error - module object has no attribute 'O-RDWR' >> > >> >cheers >> > >> > >> >Quoting Isr Gish : >> > >> >> Ajay wrote: >> >> >how would you run the python version listed on the website. >> I >> >> copied them >> >> >over but when i click on the python executable i get an error >> - >> >> "'python' >> >> >is not a valid Pocket PC application". and running >> >> \pcceshell\runcode or >> >> >\pcceshell\simpleshell throws errors saying - "couldn't find >> the >> >> >application to run them" >> >> There was a problem with the exe file. >> >> Here is a good one that should work. >> >> >> >> All the best, >> >> Isr >> >> >> >> >> >> > >> >> >thanks >> >> > >> >> >cheers >> >> > >> >> > >> >> > >> >> > >> >> >> >> >> >> Cheers, >> >> >> >> >> >> Guido >> >> >> >> >> > >> >> > >> >> >> >---------------------------------------------------------------- >> >> >This message was sent using IMP, the Internet Messaging >> Program. >> >> >_______________________________________________ >> >> >PythonCE mailing list >> >> >PythonCE@python.org >> >> >http://mail.python.org/mailman/listinfo/pythonce >> >> >> > >> > >> >---------------------------------------------------------------- >> >This message was sent using IMP, the Internet Messaging Program. >> > >> >> > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Fri Sep 3 05:05:43 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Fri Sep 3 05:05:52 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040903010400.EFDA66B060@ankara.ucc.usyd.edu.au> References: <20040903010400.EFDA66B060@ankara.ucc.usyd.edu.au> Message-ID: <1094180743.4137df8775267@www-mail.usyd.edu.au> hi! yes i tried >>>from _xmlplus.dom.ext.reader import Sax2 Traceback (most recent call last): File "\Program Files\Python\pcceshell\interact.py line 58 in Interact exec codeOb in locals File "", line 1, in ? File "\Program Files\Python\_xmlplus\dom\ext\reader\__init__.py", line 14, in ? import string, urllib2, urlparse, cString, os File "\Program Files\Python\lib\urllib2.py", line 91, in ? import httplib File "\Program Files\Python\lib\httplib.py", line 70, in ? import mimetools File "\Program Files\Python\lib\mimetools.py", line 6, in ? import tempfile AttributeError: 'module' object has no attribute 'O_RDWR' and: >>>from _xmlplus.dom.minidom import parse >>>d=parse('\um\proxy\p.xml') results in the shell exiting without any errors etc thanks cheers Quoting Isr Gish : > I understand thatbto be from the re>ular liberary. What I'm asking is if > you tried the PyXml liberary from: > http://debris.demon.nl/PythonCE-2.3 > > All the best, > Isr > > -----Original Message----- > >From: "Ajay" > >Sent: 9/2/04 7:53:54 PM > >To: "Isr Gish" > >Cc: "johnny@debris.demon.nl", > "pythonce@python.org" > >Subject: Re: [PythonCE] xml on pocketpc > > > >hi! > > > >i tried the statement: > >from xml.dom.minidom import parse > >d1 = parse('\um\proxy\p.xml') > >this resulted in the shell terminating without displaying any > errors. the > >shell just disappeared > > > >when i tried the statement: > >from xml.dom.ext.reader import Sax2 > >i received an error: > >'module' object has no attribute 'O_RDWR' > > > >thanks > > > > > >Quoting Isr Gish : > > > >> What did you try in the PyXml, and what error did you get. > >> > >> Isr > >> > >> -----Original Message----- > >> >From: "Ajay" > >> >Sent: 9/2/04 1:38:25 AM > >> >To: "Isr Gish" > >> >Cc: "johnny@debris.demon.nl", > >> "pythonce@python.org" > >> >Subject: Re: [PythonCE] xml on pocketpc > >> >hi! > >> > > >> >It still doesn't work. > >> >Doing - > >> >from xml.dom.minidom import parse > >> >dom1 = parse('\um\proxy\p.xml') > >> > > >> >results in the Python.exe shell terminating > >> > > >> >doing- > >> >from xml.dom.ext.reader import Sax2 > >> >gives an error - module object has no attribute 'O-RDWR' > >> > > >> >cheers > >> > > >> > > >> >Quoting Isr Gish : > >> > > >> >> Ajay wrote: > >> >> >how would you run the python version listed on the > website. > >> I > >> >> copied them > >> >> >over but when i click on the python executable i get an > error > >> - > >> >> "'python' > >> >> >is not a valid Pocket PC application". and running > >> >> \pcceshell\runcode or > >> >> >\pcceshell\simpleshell throws errors saying - "couldn't > find > >> the > >> >> >application to run them" > >> >> There was a problem with the exe file. > >> >> Here is a good one that should work. > >> >> > >> >> All the best, > >> >> Isr > >> >> > >> >> > >> >> > > >> >> >thanks > >> >> > > >> >> >cheers > >> >> > > >> >> > > >> >> > > >> >> > > >> >> >> > >> >> >> Cheers, > >> >> >> > >> >> >> Guido > >> >> >> > >> >> > > >> >> > > >> >> > >> >---------------------------------------------------------------- > >> >> >This message was sent using IMP, the Internet Messaging > >> Program. > >> >> >_______________________________________________ > >> >> >PythonCE mailing list > >> >> >PythonCE@python.org > >> >> >http://mail.python.org/mailman/listinfo/pythonce > >> >> > >> > > >> > > >> > >---------------------------------------------------------------- > >> >This message was sent using IMP, the Internet Messaging > Program. > >> > > >> > >> > > > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Fri Sep 3 05:38:00 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Fri Sep 3 05:38:05 2004 Subject: [PythonCE] compiling for winCE Message-ID: <1094182680.4137e71817a06@www-mail.usyd.edu.au> hi! i have written a simple extension module in C and am trying to compile it for the pocket pc. the module code is pasted below i am following the instructions in chapter4, section 4.1 step6 of "Building C and C++ Extensions on Windows". when i try building i get an error - Compiling... testDLL.c ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include file: 'io.h': No such file or directory Error executing clarm.exe. testDLL.obj - 1 error(s), 0 warning(s) a dummy io.h is present in \PC\WinCE so what am i doing wrong? thanks cheers #include static PyObject* test_dll(PyObject *self, PyObject *args) { char *command; int sts; if (!PyArg_ParseTuple(args, "s", &command)) return NULL; sts = 5; return Py_BuildValue("i", sts); } static PyMethodDef MyDLLMethods[] = { {"system", test_dll, METH_VARARGS, "test a dll."}, {NULL, NULL, 0, NULL} }; PyMODINIT_FUNC initMyDLL(void) { (void) Py_InitModule("MyDLL", MyDLLMethods); } ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From isrgish at fastem.com Fri Sep 3 15:40:46 2004 From: isrgish at fastem.com (Isr Gish) Date: Fri Sep 3 15:40:52 2004 Subject: [PythonCE] xml on pocketpc Message-ID: <20040903134051.329371E4011@bag.python.org> Hi Ajay, Ajay Wrote: >hi! > >yes i tried > >>>>from _xmlplus.dom.ext.reader import Sax2 >Traceback (most recent call last): > File "\Program Files\Python\pcceshell\interact.py line 58 in Interact > exec codeOb in locals > File "", line 1, in ? > File "\Program Files\Python\_xmlplus\dom\ext\reader\__init__.py", line >14, in ? > import string, urllib2, urlparse, cString, os > File "\Program Files\Python\lib\urllib2.py", line 91, in ? > import httplib > File "\Program Files\Python\lib\httplib.py", line 70, in ? > import mimetools > File "\Program Files\Python\lib\mimetools.py", line 6, in ? > import tempfile >AttributeError: 'module' object has no attribute 'O_RDWR' When I try the above import it works fine. I'm using the newest version of python 2.3.4. I think you may be using an older version. In the older versions there wasn't the attribute 'O_RDWR'. In the newest version its there. > >and: >>>>from _xmlplus.dom.minidom import parse >>>>d=parse('\um\proxy\p.xml') >results in the shell exiting without any errors etc It seems that the pyexpat.pyd file in _xmlplus\parsers\ is where the problem is. when the program tries to use the parser that was created with pyepat.ParserCreate thats when it exits without any errors. Maybe we need to compile it again, or atleast see whats in there. I don't know from where to get the source code for it. All the best, Good luck Isr > >thanks > >cheers > >Quoting Isr Gish : > >> I understand thatbto be from the re>ular liberary. What I'm asking is if >> you tried the PyXml liberary from: >> http://debris.demon.nl/PythonCE-2.3 >> >> All the best, >> Isr >> >> -----Original Message----- >> >From: "Ajay" >> >Sent: 9/2/04 7:53:54 PM >> >To: "Isr Gish" >> >Cc: "johnny@debris.demon.nl", >> "pythonce@python.org" >> >Subject: Re: [PythonCE] xml on pocketpc >> > >> >hi! >> > >> >i tried the statement: >> >from xml.dom.minidom import parse >> >d1 = parse('\um\proxy\p.xml') >> >this resulted in the shell terminating without displaying any >> errors. the >> >shell just disappeared >> > >> >when i tried the statement: >> >from xml.dom.ext.reader import Sax2 >> >i received an error: >> >'module' object has no attribute 'O_RDWR' >> > >> >thanks >> > >> > >> >Quoting Isr Gish : >> > >> >> What did you try in the PyXml, and what error did you get. >> >> >> >> Isr >> >> >> >> -----Original Message----- >> >> >From: "Ajay" >> >> >Sent: 9/2/04 1:38:25 AM >> >> >To: "Isr Gish" >> >> >Cc: "johnny@debris.demon.nl", >> >> "pythonce@python.org" >> >> >Subject: Re: [PythonCE] xml on pocketpc >> >> >hi! >> >> > >> >> >It still doesn't work. >> >> >Doing - >> >> >from xml.dom.minidom import parse >> >> >dom1 = parse('\um\proxy\p.xml') >> >> > >> >> >results in the Python.exe shell terminating >> >> > >> >> >doing- >> >> >from xml.dom.ext.reader import Sax2 >> >> >gives an error - module object has no attribute 'O-RDWR' >> >> > >> >> >cheers >> >> > >> >> > >> >> >Quoting Isr Gish : >> >> > >> >> >> Ajay wrote: >> >> >> >how would you run the python version listed on the >> website. >> >> I >> >> >> copied them >> >> >> >over but when i click on the python executable i get an >> error >> >> - >> >> >> "'python' >> >> >> >is not a valid Pocket PC application". and running >> >> >> \pcceshell\runcode or >> >> >> >\pcceshell\simpleshell throws errors saying - "couldn't >> find >> >> the >> >> >> >application to run them" >> >> >> There was a problem with the exe file. >> >> >> Here is a good one that should work. >> >> >> >> >> >> All the best, >> >> >> Isr >> >> >> >> >> >> >> >> >> > >> >> >> >thanks >> >> >> > >> >> >> >cheers >> >> >> > >> >> >> > >> >> >> > >> >> >> > >> >> >> >> >> >> >> >> Cheers, >> >> >> >> >> >> >> >> Guido >> >> >> >> >> >> >> > >> >> >> > >> >> >> >> >> >---------------------------------------------------------------- >> >> >> >This message was sent using IMP, the Internet Messaging >> >> Program. >> >> >> >_______________________________________________ >> >> >> >PythonCE mailing list >> >> >> >PythonCE@python.org >> >> >> >http://mail.python.org/mailman/listinfo/pythonce >> >> >> >> >> > >> >> > >> >> >> >---------------------------------------------------------------- >> >> >This message was sent using IMP, the Internet Messaging >> Program. >> >> > >> >> >> >> >> > >> > >> >---------------------------------------------------------------- >> >This message was sent using IMP, the Internet Messaging Program. >> >> > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Fri Sep 3 16:13:59 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Fri Sep 3 16:14:06 2004 Subject: [PythonCE] xml on pocketpc In-Reply-To: <20040903134054.0B6596B78E@ankara.ucc.usyd.edu.au> References: <20040903134054.0B6596B78E@ankara.ucc.usyd.edu.au> Message-ID: <1094220838.41387c2700c47@www-mail.usyd.edu.au> hi! Quoting Isr Gish : > Hi Ajay, > > Ajay Wrote: > >hi! > > > >yes i tried > > > >>>>from _xmlplus.dom.ext.reader import Sax2 > >Traceback (most recent call last): > > File "\Program Files\Python\pcceshell\interact.py line 58 in > Interact > > exec codeOb in locals > > File "", line 1, in ? > > File "\Program Files\Python\_xmlplus\dom\ext\reader\__init__.py", > line > >14, in ? > > import string, urllib2, urlparse, cString, os > > File "\Program Files\Python\lib\urllib2.py", line 91, in ? > > import httplib > > File "\Program Files\Python\lib\httplib.py", line 70, in ? > > import mimetools > > File "\Program Files\Python\lib\mimetools.py", line 6, in ? > > import tempfile > >AttributeError: 'module' object has no attribute 'O_RDWR' > > When I try the above import it works fine. > I'm using the newest version of python 2.3.4. > I think you may be using an older version. In the older versions there > wasn't the attribute 'O_RDWR'. In the newest version its there. is that the pythonce2.3.4 available from http://fore.validus.com/~kashtan/ i remember trying the package with that version of python and i think i got an application error. i'll give it another shot > > > > > >and: > >>>>from _xmlplus.dom.minidom import parse > >>>>d=parse('\um\proxy\p.xml') > >results in the shell exiting without any errors etc > > It seems that the pyexpat.pyd file in _xmlplus\parsers\ is where the > problem is. when the program tries to use the parser that was created > with pyepat.ParserCreate thats when it exits without any errors. > Maybe we need to compile it again, or atleast see whats in there. I > don't know from where to get the source code for it. would this be the same as the pyexpat that is present in the regular python windows distribution. i am going to try and run the whole thing from c using msxml. hopefully that should work. if i knew more about porting existing python packages for winCE, i'd try compiling pyexpat myself, but i have no expertise in that area :( thanks cheers > > All the best, > Good luck > Isr > > > > >thanks > > > >cheers > > > >Quoting Isr Gish : > > > >> I understand thatbto be from the re>ular liberary. What I'm asking > is if > >> you tried the PyXml liberary from: > >> http://debris.demon.nl/PythonCE-2.3 > >> > >> All the best, > >> Isr > >> > >> -----Original Message----- > >> >From: "Ajay" > >> >Sent: 9/2/04 7:53:54 PM > >> >To: "Isr Gish" > >> >Cc: "johnny@debris.demon.nl", > >> "pythonce@python.org" > >> >Subject: Re: [PythonCE] xml on pocketpc > >> > > >> >hi! > >> > > >> >i tried the statement: > >> >from xml.dom.minidom import parse > >> >d1 = parse('\um\proxy\p.xml') > >> >this resulted in the shell terminating without displaying any > >> errors. the > >> >shell just disappeared > >> > > >> >when i tried the statement: > >> >from xml.dom.ext.reader import Sax2 > >> >i received an error: > >> >'module' object has no attribute 'O_RDWR' > >> > > >> >thanks > >> > > >> > > >> >Quoting Isr Gish : > >> > > >> >> What did you try in the PyXml, and what error did you get. > >> >> > >> >> Isr > >> >> > >> >> -----Original Message----- > >> >> >From: "Ajay" > >> >> >Sent: 9/2/04 1:38:25 AM > >> >> >To: "Isr Gish" > >> >> >Cc: "johnny@debris.demon.nl", > >> >> "pythonce@python.org" > >> >> >Subject: Re: [PythonCE] xml on pocketpc > >> >> >hi! > >> >> > > >> >> >It still doesn't work. > >> >> >Doing - > >> >> >from xml.dom.minidom import parse > >> >> >dom1 = parse('\um\proxy\p.xml') > >> >> > > >> >> >results in the Python.exe shell terminating > >> >> > > >> >> >doing- > >> >> >from xml.dom.ext.reader import Sax2 > >> >> >gives an error - module object has no attribute 'O-RDWR' > >> >> > > >> >> >cheers > >> >> > > >> >> > > >> >> >Quoting Isr Gish : > >> >> > > >> >> >> Ajay wrote: > >> >> >> >how would you run the python version listed on > the > >> website. > >> >> I > >> >> >> copied them > >> >> >> >over but when i click on the python executable i > get an > >> error > >> >> - > >> >> >> "'python' > >> >> >> >is not a valid Pocket PC application". and running > >> >> >> \pcceshell\runcode or > >> >> >> >\pcceshell\simpleshell throws errors saying - > "couldn't > >> find > >> >> the > >> >> >> >application to run them" > >> >> >> There was a problem with the exe file. > >> >> >> Here is a good one that should work. > >> >> >> > >> >> >> All the best, > >> >> >> Isr > >> >> >> > >> >> >> > >> >> >> > > >> >> >> >thanks > >> >> >> > > >> >> >> >cheers > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> > > >> >> >> >> > >> >> >> >> Cheers, > >> >> >> >> > >> >> >> >> Guido > >> >> >> >> > >> >> >> > > >> >> >> > > >> >> >> > >> >> > >---------------------------------------------------------------- > >> >> >> >This message was sent using IMP, the Internet > Messaging > >> >> Program. > >> >> >> >_______________________________________________ > >> >> >> >PythonCE mailing list > >> >> >> >PythonCE@python.org > >> >> >> >http://mail.python.org/mailman/listinfo/pythonce > >> >> >> > >> >> > > >> >> > > >> >> > >> >---------------------------------------------------------------- > >> >> >This message was sent using IMP, the Internet Messaging > >> Program. > >> >> > > >> >> > >> >> > >> > > >> > > >> > >---------------------------------------------------------------- > >> >This message was sent using IMP, the Internet Messaging > Program. > >> > >> > > > > > >---------------------------------------------------------------- > >This message was sent using IMP, the Internet Messaging Program. > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From huymail at swiftdsl.com.au Sat Sep 4 02:27:35 2004 From: huymail at swiftdsl.com.au (Huy) Date: Sat Sep 4 02:27:44 2004 Subject: [PythonCE] compiling for winCE In-Reply-To: <1094182680.4137e71817a06@www-mail.usyd.edu.au> References: <1094182680.4137e71817a06@www-mail.usyd.edu.au> Message-ID: <41390BF7.1040101@swiftdsl.com.au> Ajay wrote: > hi! > > i have written a simple extension module in C and am trying to compile it > for the pocket pc. > the module code is pasted below > i am following the instructions in chapter4, section 4.1 step6 of "Building > C and C++ Extensions on Windows". > > when i try building i get an error - > Compiling... > testDLL.c > ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include file: > 'io.h': No such file or directory > Error executing clarm.exe. > > testDLL.obj - 1 error(s), 0 warning(s) > > a dummy io.h is present in \PC\WinCE > so what am i doing wrong? > > > thanks > > cheers > > > > > #include > > static PyObject* > test_dll(PyObject *self, PyObject *args) > { > char *command; > int sts; > > if (!PyArg_ParseTuple(args, "s", &command)) > return NULL; > sts = 5; > return Py_BuildValue("i", sts); > } > > static PyMethodDef MyDLLMethods[] = { > {"system", test_dll, METH_VARARGS, "test a dll."}, > {NULL, NULL, 0, NULL} > }; > > PyMODINIT_FUNC > initMyDLL(void) > { > (void) Py_InitModule("MyDLL", MyDLLMethods); > } > This compiled fine on my setup in EVC4 so it must be something in your setup. If you follow my previous email, you should have my exact setup. What compiler are you using ? HUy From abra9823 at mail.usyd.edu.au Sat Sep 4 04:21:34 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Sep 4 04:21:40 2004 Subject: [PythonCE] compiling for winCE In-Reply-To: <41390BF7.1040101@swiftdsl.com.au> References: <1094182680.4137e71817a06@www-mail.usyd.edu.au> <41390BF7.1040101@swiftdsl.com.au> Message-ID: <1094264494.413926aebd809@www-mail.usyd.edu.au> hi! i am using EVC3. i'll try your setup cheers Quoting Huy : > Ajay wrote: > > hi! > > > > i have written a simple extension module in C and am trying to compile > it > > for the pocket pc. > > the module code is pasted below > > i am following the instructions in chapter4, section 4.1 step6 of > "Building > > C and C++ Extensions on Windows". > > > > when i try building i get an error - > > Compiling... > > testDLL.c > > ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include > file: > > 'io.h': No such file or directory > > Error executing clarm.exe. > > > > testDLL.obj - 1 error(s), 0 warning(s) > > > > a dummy io.h is present in \PC\WinCE > > so what am i doing wrong? > > > > > > thanks > > > > cheers > > > > > > > > > > #include > > > > static PyObject* > > test_dll(PyObject *self, PyObject *args) > > { > > char *command; > > int sts; > > > > if (!PyArg_ParseTuple(args, "s", &command)) > > return NULL; > > sts = 5; > > return Py_BuildValue("i", sts); > > } > > > > static PyMethodDef MyDLLMethods[] = { > > {"system", test_dll, METH_VARARGS, "test a dll."}, > > {NULL, NULL, 0, NULL} > > }; > > > > PyMODINIT_FUNC > > initMyDLL(void) > > { > > (void) Py_InitModule("MyDLL", MyDLLMethods); > > } > > > > This compiled fine on my setup in EVC4 so it must be something in your > setup. If you follow my previous email, you should have my exact setup. > > What compiler are you using ? > > HUy > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Sat Sep 4 04:26:36 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Sep 4 04:26:40 2004 Subject: [PythonCE] compiling for winCE In-Reply-To: <1094264494.413926aebd809@www-mail.usyd.edu.au> References: <1094182680.4137e71817a06@www-mail.usyd.edu.au> <41390BF7.1040101@swiftdsl.com.au> <1094264494.413926aebd809@www-mail.usyd.edu.au> Message-ID: <1094264796.413927dc16f70@www-mail.usyd.edu.au> hi! Quoting Ajay : > hi! > > i am using EVC3. i'll try your setup > > cheers > > Quoting Huy : > > > Ajay wrote: > > > hi! > > > > > > i have written a simple extension module in C and am trying to > compile > > it > > > for the pocket pc. > > > the module code is pasted below > > > i am following the instructions in chapter4, section 4.1 step6 of > > "Building > > > C and C++ Extensions on Windows". > > > > > > when i try building i get an error - > > > Compiling... > > > testDLL.c > > > ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include > > file: > > > 'io.h': No such file or directory > > > Error executing clarm.exe. > > > > > > testDLL.obj - 1 error(s), 0 warning(s) > > > > > > a dummy io.h is present in \PC\WinCE > > > so what am i doing wrong? > > > > > > > > > thanks > > > > > > cheers > > > > > > > > > > > > > > > #include > > > > > > static PyObject* > > > test_dll(PyObject *self, PyObject *args) > > > { > > > char *command; > > > int sts; > > > > > > if (!PyArg_ParseTuple(args, "s", &command)) > > > return NULL; > > > sts = 5; > > > return Py_BuildValue("i", sts); > > > } > > > > > > static PyMethodDef MyDLLMethods[] = { > > > {"system", test_dll, METH_VARARGS, "test a dll."}, > > > {NULL, NULL, 0, NULL} > > > }; > > > > > > PyMODINIT_FUNC > > > initMyDLL(void) > > > { > > > (void) Py_InitModule("MyDLL", MyDLLMethods); > > > } > > > > > > > This compiled fine on my setup in EVC4 so it must be something in your > > setup. If you follow my previous email, you should have my exact > setup. > > did you compile using the instruction in "extending and embedding the python interpreter" or did you use SWIG as mentioned in your last mail cheers > > What compiler are you using ? > > > > HUy > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Sat Sep 4 06:13:29 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Sep 4 06:13:36 2004 Subject: [PythonCE] compiling for winCE In-Reply-To: <41374582.4050809@swiftdsl.com.au> References: <1094135362.41372e4239fe9@www-mail.usyd.edu.au> <41374582.4050809@swiftdsl.com.au> Message-ID: <1094271209.413940e9af7aa@www-mail.usyd.edu.au> hi! i tried using SWIG and both my .ccp and wrap.cpp compiled fine. however when i try to link them i get an error Linking... Creating library ARMRel/mytest1.lib and object ARMRel/mytest1.exp mytest_wrap.obj : error LNK2019: unresolved external symbol "int __cdecl incrementNumber(int)" (?incrementNumber@@YAHH@Z) referenced in function _wrap_incrementNumber ARMRel/mytest1.dll : fatal error LNK1120: 1 unresolved externals Error executing link.exe. mytest1.dll - 2 error(s), 0 warning(s) i have no idea where the error is coming from help would be much appreciated cheers Quoting Huy : > Ajay wrote: > > hi! > > > > would people who have successfully ported packages to pocket pc please > post > > a howto/guide to porting a package to pocket pc? > > > > what do you need to do? what do you need in to set up in the build > > environment? > > > > please help > > I don't know about porting other packages but I have written my own > python extensions using embedded c++ 4.0 for pocket pc 2003 running on > the python 2.3.4. At the moment I'm using it for things which win32gui > does not fully support eg. SHFullScreen SIPShowIM etc. > > Here are the steps I took to get it to work on the platform above. > > 1. Install Embedded Visual Tools C++ 4.0 > 2. Install Embedded Visual Tools C++ 4.0 SP3 > 3. Install Pocket PC 2003 SDK > (these files can be downloaded from microsoft web site) > 4. Create new project in EVC (Dymanic Link Library). > 5. Write your C/C++ code to do whatever it is you want to do. Don't > worry about interfacing it with python. Write it as if you are using it > standalone. > 6. Compile it and make sure it is all working. > > 7. Install the python source code > 8. Install the pythonce source code (overlay on top of python source) > 9. Build pythonce following instructions on David Kashtans' site. > http://fore.validus.com/~kashtan/ > > 10. Install SWIG. See the tutorial on their site for a quick run down on > how to get it too work with your C++ code and python. Basically you need > to write an interface file eg. if you have source file modulename.cpp > then create a file called modulename.i and chuck stuff in that (see the > tutorial for details) > > run swig on your interface file as follows: > swig.exe -python -shadow -o modulename_wrap.cpp modulename.i > > This will generate the source_wrap.cpp file which you now need to add to > your evc4 project. > > In you evc4 project settings, > 1. go to the c/c++ tab and add the following to the project options box. > /I "PYTHON_SOURCE_ROOT/Include" /I "PYTHON_SOURCE_ROOT/PC/WinCE" > > 2. go to the link tab and change your dll output file name to > _modulename.pyd (pyd files are the dll files with a pyd extension; i > didn't know this until today). Now build the project and hopefully you > should have a _modulename.pyd file in your build directory. > > Now move the files > _modulename.pyd and modulename.py (this file is generated by swig when > issuing the -shadow command) to your pocket pc python lib directory. > > You should now be able to import the module in your python programs. > > This is my first try at both writing a python extension as well as > playing with pythonce so if any of the veterans on the list could give > me any extra pointers, I would be most grateful. > > Huy > > ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Sat Sep 4 06:48:20 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Sep 4 06:48:24 2004 Subject: [PythonCE] compiling for winCE Message-ID: <1094273300.413949145b51d@www-mail.usyd.edu.au> hi! i can now compile my c files into dll files using both SWIG and directly writing the wrapper. however when i call the dll from a python program i get an error saying: No moudle named testdll my SWIG interface file is /* File: mytest.i */ %module mytest1 %{ %} extern int incrementNumber(int); and the C file int incrementNumber(int num) { num += 5; return num; } and i am compiling it to mytest1.dll the other file where i have written the wrappers is called testdll.dll and the C code is #include static PyObject* test_dll(PyObject *self, PyObject *args) { char *command; int sts; if (!PyArg_ParseTuple(args, "s", &command)) return NULL; sts = 5; return Py_BuildValue("i", sts); } static PyMethodDef testdllMethods[] = { {"system", test_dll, METH_VARARGS, "test a dll."}, {NULL, NULL, 0, NULL} }; PyMODINIT_FUNC inittestdll(void) { (void) Py_InitModule("testdll", testdllMethods); } please help thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mike at pcblokes.com Sat Sep 4 11:55:20 2004 From: mike at pcblokes.com (Michael Foord) Date: Sat Sep 4 11:44:13 2004 Subject: [PythonCE] compiling for winCE References: <1094182680.4137e71817a06@www-mail.usyd.edu.au> <41390BF7.1040101@swiftdsl.com.au> Message-ID: <002a01c49265$4ac51a40$e8d0fc3e@deliadelicious> This information on compiling for the pocketpc is very interesting - and the first time I've seen it discussed properly in this group. I've just started to learn C and to use compilers etc..... so hopefully I'll starting hacking for the pocketpc in the near future... Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html ----- Original Message ----- From: "Huy" To: "Ajay" Cc: Sent: Saturday, September 04, 2004 1:27 AM Subject: Re: [PythonCE] compiling for winCE > Ajay wrote: > > hi! > > > > i have written a simple extension module in C and am trying to compile it > > for the pocket pc. > > the module code is pasted below > > i am following the instructions in chapter4, section 4.1 step6 of "Building > > C and C++ Extensions on Windows". > > > > when i try building i get an error - > > Compiling... > > testDLL.c > > ..\PC\WinCE/pyconfig.h(59) : fatal error C1083: Cannot open include file: > > 'io.h': No such file or directory > > Error executing clarm.exe. > > > > testDLL.obj - 1 error(s), 0 warning(s) > > > > a dummy io.h is present in \PC\WinCE > > so what am i doing wrong? > > > > > > thanks > > > > cheers > > > > > > > > > > #include > > > > static PyObject* > > test_dll(PyObject *self, PyObject *args) > > { > > char *command; > > int sts; > > > > if (!PyArg_ParseTuple(args, "s", &command)) > > return NULL; > > sts = 5; > > return Py_BuildValue("i", sts); > > } > > > > static PyMethodDef MyDLLMethods[] = { > > {"system", test_dll, METH_VARARGS, "test a dll."}, > > {NULL, NULL, 0, NULL} > > }; > > > > PyMODINIT_FUNC > > initMyDLL(void) > > { > > (void) Py_InitModule("MyDLL", MyDLLMethods); > > } > > > > This compiled fine on my setup in EVC4 so it must be something in your > setup. If you follow my previous email, you should have my exact setup. > > What compiler are you using ? > > HUy > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > > From abra9823 at mail.usyd.edu.au Sat Sep 4 12:47:27 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sat Sep 4 12:47:36 2004 Subject: [PythonCE] xml processing on PDA Message-ID: <1094294847.41399d3fc8e21@www-mail.usyd.edu.au> hi! one more try - has anyone done this before? I am really struggling here. Since pythonce does not include pyexpat and the pyexpat in PyXML's version seems broken, i am faced with 2 choices - use python only parser such as pxdom (this however totally kills the efficiency) or write the xml part in visual c++ using msxml. I tried a python only parser, pxdom and i didn't have a result at the end of 10 minutes. for the past 2 hrs i have been trying to go the msxml way. i was very encouraged by my ability to write a few simple dll's earlier today and successfully call them from python. But MSXML seems an entirely different challenge. there is some excellent code here http://www.codeproject.com/soap/ce_xml.asp about doing some XML stuff for PDA using evc. It compiles and builds fine, trouble is the moment you add the Python wrappers and include Python.h, the code doesn't compile anymore. errors: C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5395) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'const unsigned short *' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5396) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [4]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5404) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [100]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5413) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [12]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5414) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [100]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5417) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short *' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5420) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [10]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5421) : error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 from 'unsigned short [2]' to 'const char *' Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast stl_eVC\wce_defs.h(47) : warning C4005: 'assert' : macro redefinition C:\hons\pocketpc\python_ce_build\Python-2.3.4\PC\WinCE\assert.h(7) : see previous definition of 'assert' I think these have something to do with setting the "include" paths to /include but can't be sure. so once again, has anyone done xml stuff on a pda and used that with Python. thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From isrgish at fastem.com Sun Sep 5 06:02:43 2004 From: isrgish at fastem.com (Isr Gish) Date: Sun Sep 5 06:02:44 2004 Subject: [PythonCE] xml processing on PDA Message-ID: <20040905040243.83BE71E4002@bag.python.org> Hi Ajay, You may want to try asking this on noe of the other lists (maybe the win32 or the Tutor list). All the best, Isr -----Original Message----- >From: "Ajay" >Sent: 9/4/04 6:47:27 AM >To: "pythonce@python.org" >Subject: [PythonCE] xml processing on PDA > >hi! > >one more try - has anyone done this before? I am really struggling here. > >Since pythonce does not include pyexpat and the pyexpat in PyXML's version >seems broken, i am faced with 2 choices - use python only parser such as >pxdom (this however totally kills the efficiency) or write the xml part in >visual c++ using msxml. > >I tried a python only parser, pxdom and i didn't have a result at the end >of 10 minutes. > >for the past 2 hrs i have been trying to go the msxml way. i was very >encouraged by my ability to write a few simple dll's earlier today and >successfully call them from python. But MSXML seems an entirely different >challenge. there is some excellent code here >http://www.codeproject.com/soap/ce_xml.asp about doing some XML stuff for >PDA using evc. It compiles and builds fine, trouble is the moment you add >the Python wrappers and include Python.h, the code doesn't compile >anymore. > >errors: > >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5395) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'const unsigned short *' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5396) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [4]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5404) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [100]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5413) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [12]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5414) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [100]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5417) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short *' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5420) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [10]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >C:\Windows CE Tools\wce300\Pocket PC 2002\atl\include\atlbase.h(5421) : >error C2664: '__WinCE_OutputDebugStringA' : cannot convert parameter 1 >from 'unsigned short [2]' to 'const char *' > Types pointed to are unrelated; conversion requires >reinterpret_cast, C-style cast or function-style cast >stl_eVC\wce_defs.h(47) : warning C4005: 'assert' : macro redefinition > C:\hons\pocketpc\python_ce_build\Python-2.3.4\PC\WinCE\assert.h(7) >: see previous definition of 'assert' > >I think these have something to do with setting the "include" paths to >/include but can't be sure. > >so once again, has anyone done xml stuff on a pda and used that with >Python. > >thanks > >cheers > > > > > >---------------------------------------------------------------- >This message was sent using IMP, the Internet Messaging Program. >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From simon.dahlbacka at gmail.com Mon Sep 6 10:31:52 2004 From: simon.dahlbacka at gmail.com (Simon Dahlbacka) Date: Mon Sep 6 10:41:11 2004 Subject: [PythonCE] compiling for emulator? Message-ID: I've tried to compile python 2.3.4 for pocketpc 2003 emulator x86em by tweaking the makefiles and I've come as far as linking the python23.dll. The problem is that if I do not include corelibc.lib then I get unresolved external complaints about exit, and if I do then I get multiple definitions of DllMain in addition to DllMain not being __stdcall with 12bytes of arguments. Anyone got any pointers to share how to get python running on the emulator? From nithril at free.fr Mon Sep 6 17:59:40 2004 From: nithril at free.fr (Nithril) Date: Mon Sep 6 17:59:41 2004 Subject: [PythonCE] problem with server Message-ID: <1094486380.413c896c28d83@imp5-q.free.fr> Hi, >I have a problem with the http and cgi server. They start but when I try to >access a web page through IE, the console throw me an error 10054 (connexion >reset by peer) on socket.py line 323 ie. when the servers try to read a line >of the request. >I dont know from where this issue come, but I suspect IE (win ce .net 4.2 build 0) After some investigation it appears that it should be python that doesn't handle correctly IE HTTP request on my Windows CE .Net . That would be great if Python for PPC has ran on a CE .Net without any change :). But like python CE was compiled for PPC, there are surely some difference between API that cause my issue. What do you think about that? From jaderholm at gmail.com Wed Sep 8 09:03:23 2004 From: jaderholm at gmail.com (Scott Jaderholm) Date: Wed Sep 8 09:03:26 2004 Subject: [PythonCE] graphical libs for pocket pc Message-ID: I have been looking through a bit of the archive, but I haven't seen mention of any graphical libs. Is tkInter the only option, or are there others? I want to write a very big graphical application for Pocket PC, but I don't know if PythonCE is a viable option at this point since there is almost no documentation on the project website. Has anyone written PocketPC apps w/ python? Any screenshots? Thanks, From mike at pcblokes.com Wed Sep 8 11:20:07 2004 From: mike at pcblokes.com (Voidspace) Date: Wed Sep 8 11:20:18 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: Message-ID: <413ECEC7.1040806@pcblokes.com> Scott Jaderholm wrote: >I have been looking through a bit of the archive, but I haven't seen >mention of any graphical libs. Is tkInter the only option, or are >there others? I want to write a very big graphical application for >Pocket PC, > On most PocketPCs I've seen - a 'big' anything is pretty out of the question ;-) >but I don't know if PythonCE is a viable option at this >point since there is almost no documentation on the project website. > > The documentation for PythonCE is basically the standard python documentation. The people who port python over to the pocketPC attempt to port as much of the CPython core and the standard libraries to compile and run on the PocketPC as possible. The bits that work will work exactly as documented in the python documentation. There are a *few* differences due to differences in the underlying C libraries that are specific to the PocketPC, e.g. raw_input doesn't work which makes interaction with the user virtually impossible unless you use Tkinter or something 'similar'. PyhtonCE is a project done entirely by volunteers who don't owe us 'users' anything. AFAIK the entire core python language works fine - including a large proportion of the standard libraries (many of which are in python anyway). However exactly *which* standard libraries work and which don't can only be determiend by testing... and as you can imagine those who port python don't have time to extensively test and fix every library........ They've done a very good job on the core language however..... (and I use it regularly) Which brings us to Tk/Tkinter. In actual fact Tk is not a python graphics library - it's a Tcl library. The python library is called Tkinter. This is relevant (rather than a pernickity detail) because it tells you where you need to go for documentation. There is a PythonCE port of Tkinter (the python library). This allows python to use the PocketPC version of Tk/Tcl... which is incomplete so far (no menus on the last version I used but lots of other bits working fine). All Tkinter is, is an interface layer between python and the Tk stuff. To know which bits of Tk work on the PocketPC version you'll need to find the Pocket Tk/Tcl project (on sourceforge I think) and see how far they've got. As for other alternatives...... wxWidgets had people working on a pocketPC port - I don't know how far that's got. Even if a decent amount of that is completed... I don't know how complicated the python wrapper library (wxPython) is - there would probably be quite a lot of work in getting it working, but it would be well worthwhile. AFAIK the other alternative is creating wrappers to the microsoft GUI... it means compiling a python extension that communicates with the necessary libraries. There has been intersting talk in this group recently on compiling for the PocketPC.... something I'd like to learn - but don't yet know anything about !!! This is all certified to be as accurate as my memory and understanding....... Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html >Has anyone written PocketPC apps w/ python? Any screenshots? > >Thanks, >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- 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.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- 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 theller at python.net Wed Sep 8 12:02:38 2004 From: theller at python.net (Thomas Heller) Date: Wed Sep 8 12:02:40 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <413ECEC7.1040806@pcblokes.com> (Voidspace's message of "Wed, 08 Sep 2004 10:20:07 +0100") References: <413ECEC7.1040806@pcblokes.com> Message-ID: Voidspace writes: > There is a PythonCE port of Tkinter (the python library). This allows > python to use the PocketPC version of Tk/Tcl... which is incomplete so > far (no menus on the last version I used but lots of other bits > working fine). All Tkinter is, is an interface layer between python > and the Tk stuff. To know which bits of Tk work on the PocketPC > version you'll need to find the Pocket Tk/Tcl project (on sourceforge > I think) and see how far they've got. > > As for other alternatives...... wxWidgets had people working on a > pocketPC port - I don't know how far that's got. Even if a decent > amount of that is completed... I don't know how complicated the > python wrapper library (wxPython) is - there would probably be quite a > lot of work in getting it working, but it would be well worthwhile. > > AFAIK the other alternative is creating wrappers to the microsoft > GUI... it means compiling a python extension that communicates with > the necessary libraries. > There has been intersting talk in this group recently on compiling for > the PocketPC.... something I'd like to learn - but don't yet know > anything about !!! Another alternative would be to port ctypes (then you can call windows api functions directly from Python) to the pocket PC - I cannot do it myself, but I would be willing to support anyone who tries this. Thomas From mike at pcblokes.com Wed Sep 8 13:05:12 2004 From: mike at pcblokes.com (Voidspace) Date: Wed Sep 8 13:05:17 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: <413ECEC7.1040806@pcblokes.com> Message-ID: <413EE768.6010406@pcblokes.com> Thomas Heller wrote: >Voidspace writes: >[snip..] > >Another alternative would be to port ctypes (then you can call windows >api functions directly from Python) to the pocket PC - I cannot do it >myself, but I would be willing to support anyone who tries this. > >Thomas > > > > > > That sounds like it would be *really* useful. I'd even love to do it !! However - I've never compiled for the PocketPC - but I can download the SDK if someone can point me to the files and the compile chain... I also have no direct experience of directly calling the windoze API - but I *need* to learn. My only experience of calling an OS API was the Amiga which was a joy to program for... that was a while ago though. Similarly I am just migrating from Python to Pyrex/C - so have very little experience of any of the steps necessary (although a familiarity with some of the concepts and C structures I guess). Learning to use ctypes was 'on my list of things to do' anyway. Do you think a project like this likely to be well over my head ? (Obviously an impossible question - but if you think it's middle of the range difficulty htne I can tackle it a step at a time... if it's a fairly high level of difficulty then it's probably outside the bounds of possibility). 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.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- 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 swida at aragorn.pb.bialystok.pl Wed Sep 8 13:45:59 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Wed Sep 8 13:47:30 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <413EE768.6010406@pcblokes.com> References: <413ECEC7.1040806@pcblokes.com> <413EE768.6010406@pcblokes.com> Message-ID: <20040908114045.M40962@aragorn.pb.bialystok.pl> Hi, I'm trying to compile FLTK library for windows CE. So far I've managed to compile everything (with slight modifications) and run some tests (window and widgets drawing works ok, but I have a lot of problems with mouse events, fonts and user input). I cannot assure you I'll achieve any success but there is at least a hope.... best regards, Oskar Swida P.S. I've tried to compile wxWidgets for WinCE but still don't have any results. From theller at python.net Wed Sep 8 19:00:13 2004 From: theller at python.net (Thomas Heller) Date: Wed Sep 8 19:00:17 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <413EE768.6010406@pcblokes.com> (Voidspace's message of "Wed, 08 Sep 2004 12:05:12 +0100") References: <413ECEC7.1040806@pcblokes.com> <413EE768.6010406@pcblokes.com> Message-ID: Voidspace writes: > Thomas Heller wrote: > >>Voidspace writes: >>[snip..] >> >>Another alternative would be to port ctypes (then you can call windows >>api functions directly from Python) to the pocket PC - I cannot do it >>myself, but I would be willing to support anyone who tries this. >> >>Thomas > That sounds like it would be *really* useful. I'd even love to do it !! > However - I've never compiled for the PocketPC - but I can download > the SDK if someone can point me to the files and the compile chain... > > I also have no direct experience of directly calling the windoze API - > but I *need* to learn. My only experience of calling an OS API was the > Amiga which was a joy to program for... that was a while ago > though. Similarly I am just migrating from Python to Pyrex/C - so have > very little experience of any of the steps necessary (although a > familiarity with some of the concepts and C structures I > guess). Learning to use ctypes was 'on my list of things to do' anyway. > > Do you think a project like this likely to be well over my head ? > (Obviously an impossible question - but if you think it's middle of > the range difficulty htne I can tackle it a step at a time... if it's > a fairly high level of difficulty then it's probably outside the > bounds of possibility). Well, it seems far from trivial. It requires 'porting' libffi to that platform. From what I read in the libffi readme, the ARM CPU is supported, on Linux. When I changed the Windows code to use libffi instead of my homegrown solution, I started up a i386 Linux, ran libffi's configure command, and took the resulting source tree to windows. Then I had to convert the code from gcc assembler syntax to MSVC assembler, and had to adjust other code. Without a source code debugger it would be impossible. So, I assume something similar has to be done for the ARM, and very good knowledge of the CPU is required. OTOH, I haven't looked around if someone has already done this, or some of the work. Thomas From eichin at gmail.com Wed Sep 8 20:14:28 2004 From: eichin at gmail.com (Mark Eichin) Date: Wed Sep 8 20:14:38 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: Message-ID: What I'd *really* like to see is PyGame (the photocaptioning app I want to port uses pygame and not much else), but that would need an SDL port and a bunch of other underlying details (and I'm using python on wince so that I can *avoid* knowing too many wince details :-) Of course, right now I'm stuck on the python shell only providing sys.stdout and not sys.stdin - I should sit down and make the jump directly to tkinter, but was hoping to take smaller "baby steps" in coding on here. (It was very cool to be able to "import urllib" and fetch a real web page from my 4155! I'm just trying to crawl upwards from there, and haven't used tkinter on unix either...) On Wed, 8 Sep 2004 00:03:23 -0700, Scott Jaderholm wrote: > I have been looking through a bit of the archive, but I haven't seen > mention of any graphical libs. Is tkInter the only option, or are > there others? I want to write a very big graphical application for > Pocket PC, but I don't know if PythonCE is a viable option at this > point since there is almost no documentation on the project website. > > Has anyone written PocketPC apps w/ python? Any screenshots? > > Thanks, > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > -- _Mark_ From pfalcon at users.sourceforge.net Wed Sep 8 22:29:35 2004 From: pfalcon at users.sourceforge.net (Paul Sokolovsky) Date: Wed Sep 8 22:29:48 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: <413ECEC7.1040806@pcblokes.com> <413EE768.6010406@pcblokes.com> Message-ID: <11632777481.20040908232935@ua.fm> Hello Thomas, Wednesday, September 8, 2004, 8:00:13 PM, you wrote: [] TH> When I changed the Windows code to use libffi instead of my homegrown TH> solution, I started up a i386 Linux, ran libffi's configure command, and TH> took the resulting source tree to windows. Then I had to convert the TH> code from gcc assembler syntax to MSVC assembler, and had to adjust TH> other code. Without a source code debugger it would be impossible. I tried to withstand a temptation to post a message like "no, guys, it's better to port ...", but well, I cannot stand the description of gore people undergo in specifics of porting what they want to. Well, you don't have to struggle with such boring things as converting gcc asm to evc, there's pretty good arm-gcc-wince port at http://mamaich.kasone.com . Prebuilt versions for cygwin are available (for sure, you can build it for Linux too). Things ported with it include DosBox, an x86 emulator, so while it's not rock solid yet, it's pretty suitable for development. -- Best regards, Paul mailto:pfalcon@users.sourceforge.net From pfalcon at users.sourceforge.net Wed Sep 8 22:37:31 2004 From: pfalcon at users.sourceforge.net (Paul Sokolovsky) Date: Wed Sep 8 22:37:44 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: Message-ID: <2433253546.20040908233731@ua.fm> Hello Mark, Wednesday, September 8, 2004, 9:14:28 PM, you wrote: ME> What I'd *really* like to see is PyGame (the photocaptioning app I ME> want to port uses pygame and not much else), but that would need an ME> SDL port and a bunch of other underlying details (and I'm using python ME> on wince so that I can *avoid* knowing too many wince details :-) ME> Of course, right now I'm stuck on the python shell only providing ME> sys.stdout and not sys.stdin - I should sit down and make the jump ME> directly to tkinter, but was hoping to take smaller "baby steps" in ME> coding on here. (It was very cool to be able to "import urllib" and ME> fetch a real web page from my 4155! I'm just trying to crawl upwards ME> from there, and haven't used tkinter on unix either...) Continuing my evangelism about arm-wince-gcc, instead of trying to ride tkinter just to get stdin (which won't work that great on PPC I'm afraid), you could make a normal python port with it (arm-wince-gcc), running under PocketConsole. That would give you real stdin without any ppc-shell hacks (and greater win32 compatibility). Just my 2 cents. P.S. I'd love to do it myself, but unfortunately, now I'm stuck with application-level development for PPC (in language other than Python as it was ruled out because of under-developedness). -- Best regards, Paul mailto:pfalcon@users.sourceforge.net From isrgish at fastem.com Thu Sep 9 01:19:46 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Sep 9 01:20:02 2004 Subject: [PythonCE] graphical libs for pocket pc Message-ID: <20040908232001.265801E4005@bag.python.org> >From: "Voidspace" >Sent: 9/8/04 5:20:07 AM >To: "Scott Jaderholm" >Cc: "pythonce@python.org" >Subject: Re: [PythonCE] graphical libs for pocket pc > >There are a >*few* differences due to differences in the underlying C libraries that >are specific to the PocketPC, e.g. raw_input doesn't work which makes >interaction with the user virtually impossible unless you use Tkinter or >something 'similar'. I think it should be possible to do a patch for that. What seems to be needed is a "readline" function for the shell. With that function the input functions should work fine. In previous versions there was such a readline function in the pcceshell.py module. But it seems to have been removed in the latest version. I think it should be possible to implement it again. What was actually used, was the readline with another function that was automatically called (I guess by windows) for each character that was typed into the shell. I think this function was called "onEditChr" or something like that. If someone is interested you can find these functions in the pcceshell.py, or in the newer pcceshell package in the simpleshell.py module. I attach the pcceshell in a zip file, for anyone who is interested to look at it. I hope the list will let it through. I would love to do this myself, but I have zero experience and almost the same amount of knowledge in this area. What I do know is *only* from looking a the source code for version 2.3.4 (found at http://www.validus.com/~kashtan ) and at the pcceshell files. All the best, Isr >Regards, > >Fuzzy > >http://www.voidspace.org.uk/atlantibots/pythonutils.html > > > >>Has anyone written PocketPC apps w/ python? Any screenshots? >> >>Thanks, >>_______________________________________________ >>PythonCE mailing list >>PythonCE@python.org >>http://mail.python.org/mailman/listinfo/pythonce >> >> >> >> >> > >-- > >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.Voidspace.org.uk/atlantibots/pythonutils.html >Python utilities, modules and apps. >Including Nanagram, Dirwatcher and more. >--- >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 > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce From mike at pcblokes.com Thu Sep 9 12:20:32 2004 From: mike at pcblokes.com (Michael Foord) Date: Thu Sep 9 12:09:40 2004 Subject: [PythonCE] graphical libs for pocket pc References: <413ECEC7.1040806@pcblokes.com> <413EE768.6010406@pcblokes.com> Message-ID: <000901c49656$a4165f60$9ee8fc3e@deliadelicious> ----- Original Message ----- From: "Thomas Heller" To: "Voidspace" Cc: Sent: Wednesday, September 08, 2004 6:00 PM Subject: Re: [PythonCE] graphical libs for pocket pc [snip..] > Well, it seems far from trivial. It requires 'porting' libffi to that > platform. From what I read in the libffi readme, the ARM CPU is > supported, on Linux. > > When I changed the Windows code to use libffi instead of my homegrown > solution, I started up a i386 Linux, ran libffi's configure command, and > took the resulting source tree to windows. Then I had to convert the > code from gcc assembler syntax to MSVC assembler, and had to adjust > other code. Without a source code debugger it would be impossible. > > So, I assume something similar has to be done for the ARM, and very good > knowledge of the CPU is required. OTOH, I haven't looked around if > someone has already done this, or some of the work. > > Thomas > Well beyond me then - although it is a library that would be particularly useful for the pocketPC platform... rats. Currently in order to do any user interaction you are forced to use the PPC Tkinter distribution - which is huge..... (relatively speaking.) Regards, Fuzzy http://www.voidspace.org.uk/atlantibots/pythonutils.html > > From mike at pcblokes.com Thu Sep 9 12:30:54 2004 From: mike at pcblokes.com (Michael Foord) Date: Thu Sep 9 12:19:32 2004 Subject: [PythonCE] graphical libs for pocket pc Message-ID: <002101c49658$16a643a0$9ee8fc3e@deliadelicious> ----- Original Message ----- From: "Isr Gish" To: ; Cc: Sent: Thursday, September 09, 2004 12:19 AM Subject: Re: [PythonCE] graphical libs for pocket pc > > >From: "Voidspace" > >Sent: 9/8/04 5:20:07 AM > >To: "Scott Jaderholm" > >Cc: "pythonce@python.org" > >Subject: Re: [PythonCE] graphical libs for pocket pc > > > > >There are a > >*few* differences due to differences in the underlying C libraries that > >are specific to the PocketPC, e.g. raw_input doesn't work which makes > >interaction with the user virtually impossible unless you use Tkinter or > >something 'similar'. > > I think it should be possible to do a patch for that. What seems to be needed is a "readline" function for the shell. With that function the input functions should work fine. > > In previous versions there was such a readline function in the pcceshell.py module. But it seems to have been removed in the latest version. > > I think it should be possible to implement it again. What was actually used, was the readline with another function that was automatically called (I guess by windows) for each character that was typed into the shell. I think this function was called "onEditChr" or something like that. > > If someone is interested you can find these functions in the pcceshell.py, or in the newer pcceshell package in the simpleshell.py module. > I attach the pcceshell in a zip file, for anyone who is interested to look at it. I hope the list will let it through. > > I would love to do this myself, but I have zero experience and almost the same amount of knowledge in this area. What I do know is *only* from looking a the source code for version 2.3.4 (found at http://www.validus.com/~kashtan > ) and at the pcceshell files. > > All the best, > Isr > The problem that David kashtan identified was that the previous versions of pcceshell that allowed raw_input relied on C code (by Telion I think) that has since been lost. So just using the modified versions of pcceshell isn't sufficient and David doesn't feel up to reimplementing the missing C. Regards, Fuzzy http://www.voidspace.otg.uk/atlantibots/pythonutils.html > >Regards, > > > >Fuzzy > > > >http://www.voidspace.org.uk/atlantibots/pythonutils.html > > > > > > > >>Has anyone written PocketPC apps w/ python? Any screenshots? > >> > >>Thanks, > >>_______________________________________________ > >>PythonCE mailing list > >>PythonCE@python.org > >>http://mail.python.org/mailman/listinfo/pythonce > >> > >> > >> > >> > >> > > > >-- > > > >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.Voidspace.org.uk/atlantibots/pythonutils.html > >Python utilities, modules and apps. > >Including Nanagram, Dirwatcher and more. > >--- > >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 > > > > > > > >_______________________________________________ > >PythonCE mailing list > >PythonCE@python.org > >http://mail.python.org/mailman/listinfo/pythonce > > > From isrgish at fastem.com Thu Sep 9 12:54:12 2004 From: isrgish at fastem.com (Isr Gish) Date: Thu Sep 9 12:54:27 2004 Subject: [PythonCE] graphical libs for pocket pc Message-ID: <20040909105426.1BA7B1E4008@bag.python.org> Hi Michale, >From: "Michael Foord" >Sent: 9/9/04 6:30:54 AM >To: "Isr Gish", "jaderholm@gmail.com" >Cc: "pythonce@python.org" >Subject: Re: [PythonCE] graphical libs for pocket pc > >----- Original Message ----- >From: "Isr Gish" >To: ; >Cc: >Sent: Thursday, September 09, 2004 12:19 AM >Subject: Re: [PythonCE] graphical libs for pocket pc > > >> >> >From: "Voidspace" >> >Sent: 9/8/04 5:20:07 AM >> >To: "Scott Jaderholm" >> >Cc: "pythonce@python.org" >> >Subject: Re: [PythonCE] graphical libs for pocket pc >> > >> >> >There are a >> >*few* differences due to differences in the underlying C libraries >that >> >are specific to the PocketPC, e.g. raw_input doesn't work which makes >> >interaction with the user virtually impossible unless you use Tkinter >or >> >something 'similar'. >> >> I think it should be possible to do a patch for that. What seems to be >needed is a "readline" function for the shell. With that function the input >functions should work fine. >> >> In previous versions there was such a readline function in the >pcceshell.py module. But it seems to have been removed in the latest >version. >> >> I think it should be possible to implement it again. What was actually >used, was the readline with another function that was automatically called >(I guess by windows) for each character that was typed into the shell. I >think this function was called "onEditChr" or something like that. >> >> If someone is interested you can find these functions in the pcceshell.py, >or in the newer pcceshell package in the simpleshell.py module. >> I attach the pcceshell in a zip file, for anyone who is interested to look >at it. I hope the list will let it through. >> >> I would love to do this myself, but I have zero experience and almost the >same amount of knowledge in this area. What I do know is *only* from looking >a the source code for version 2.3.4 (found at >http://www.validus.com/~kashtan >> ) and at the pcceshell files. >> >> All the best, >> Isr >> > >The problem that David kashtan identified was that the previous versions of >pcceshell that allowed raw_input relied on C code (by Telion I think) that >has since been lost. So just using the modified versions of pcceshell isn't >sufficient and David doesn't feel up to reimplementing the missing C. I don't think it relied on any C code besides the win32 pyd's (which are dll's), and these are still available. If you take a look at the old pcceshell.py (please find it attached), at the 2 functions, 'readline' and 'OnEditChar' you will see how it was done, and that it isn't relying on C code. What it's doing is that the readline is called auto matticaly when you use the input functions. And this sets some kind of wait function to wait on input. OnEditChar gets automatically called whenever a key is typed to the shell window (this may only be true in the old shell that was a class, I'm not sure about this.). So there is a instance variable of shell called reading that collects each letter typed, and when is typed it sends a message to the event that is waiting to stop waiting. After that the readline function fiishes and returns tae data from the reading variable. I hope this will help in the matter. If you have any more qustions please feel free to ask. P.S. I reacntly tried to make a crude function to get input, using a simmelar approch. >>> import _pcceshell_support, sys >>> def f(): ... z = _pcceshell_support.Wait() ... if z == 1: ... a = _pcceshell_support.Get_Edit_Window_Line(-1) ... sys.stdout.write('\n') ... return a[4:] ... >>> s = f() >>> hello >>> print s hello >>> To use this, after running the f function, you need to firs press enter and then first type the input. All the best, Isr > >Regards, > >Fuzzy > >http://www.voidspace.otg.uk/atlantibots/pythonutils.html > >> >Regards, >> > >> >Fuzzy >> > >> >http://www.voidspace.org.uk/atlantibots/pythonutils.html >> > >> > >> > >> >>Has anyone written PocketPC apps w/ python? Any screenshots? >> >> >> >>Thanks, >> >>_______________________________________________ >> >>PythonCE mailing list >> >>PythonCE@python.org >> >>http://mail.python.org/mailman/listinfo/pythonce >> >> >> >> >> >> >> >> >> >> >> > >> >-- >> > >> >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.Voidspace.org.uk/atlantibots/pythonutils.html >> >Python utilities, modules and apps. >> >Including Nanagram, Dirwatcher and more. >> >--- >> >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 >> > >> > >> > >> >_______________________________________________ >> >PythonCE mailing list >> >PythonCE@python.org >> >http://mail.python.org/mailman/listinfo/pythonce >> >> >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: pcceshell.zip Type: application/octet-stream Size: 10277 bytes Desc: not available Url : http://mail.python.org/pipermail/pythonce/attachments/20040909/59c7b478/pcceshell-0001.obj From eichin at gmail.com Fri Sep 10 21:04:13 2004 From: eichin at gmail.com (Mark Eichin) Date: Fri Sep 10 21:04:17 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <20040909105426.1BA7B1E4008@bag.python.org> References: <20040909105426.1BA7B1E4008@bag.python.org> Message-ID: Thanks, I'll try working with that. -- _Mark_ From swida at aragorn.pb.bialystok.pl Tue Sep 14 15:39:09 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Tue Sep 14 15:40:40 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: References: <20040909105426.1BA7B1E4008@bag.python.org> Message-ID: <20040914133343.M24918@aragorn.pb.bialystok.pl> Hi, Ok, here http://aragorn.pb.bialystok.pl/~swida/paragui-pda.zip you have an experimental Pocket PC 2002 compilation of ParaGUI (http://www.paragui.org/) binded to PythonCE. This is not anything special, a lot of work has to be done, but we have a start. How to use it: Copy: _paragui.pyd, paragui.py to Python/Lib directory SDL.dll to Windows directory Run "para.py" script (this is only screen initialization but should work). regards, Oskar Swida P.S. If anyone is interested in developing this more, I'll prepare whole pack of sources which I used to compile it. From mike at pcblokes.com Tue Sep 14 16:19:06 2004 From: mike at pcblokes.com (Voidspace) Date: Tue Sep 14 16:19:10 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <20040914133343.M24918@aragorn.pb.bialystok.pl> References: <20040909105426.1BA7B1E4008@bag.python.org> <20040914133343.M24918@aragorn.pb.bialystok.pl> Message-ID: <4146FDDA.9000107@pcblokes.com> That website - www.paragui.org - appears to be down..... Shame... sounds interesting. Regards, Fuzzy Oskar Swida wrote: >Hi, > >Ok, here >http://aragorn.pb.bialystok.pl/~swida/paragui-pda.zip >you have an experimental Pocket PC 2002 compilation of ParaGUI >(http://www.paragui.org/) binded to PythonCE. >This is not anything special, a lot of work has to be done, but we have a start. >How to use it: > > Copy: > _paragui.pyd, paragui.py to Python/Lib directory > SDL.dll to Windows directory > >Run "para.py" script (this is only screen initialization but should work). > > > regards, > Oskar Swida > >P.S. If anyone is interested in developing this more, I'll prepare whole pack >of sources which I used to compile it. > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce > > > > > -- 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.Voidspace.org.uk/atlantibots/pythonutils.html Python utilities, modules and apps. Including Nanagram, Dirwatcher and more. --- 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 swida at aragorn.pb.bialystok.pl Tue Sep 14 21:37:47 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Tue Sep 14 21:39:15 2004 Subject: [PythonCE] graphical libs for pocket pc In-Reply-To: <4146FDDA.9000107@pcblokes.com> References: <20040909105426.1BA7B1E4008@bag.python.org> <20040914133343.M24918@aragorn.pb.bialystok.pl> <4146FDDA.9000107@pcblokes.com> Message-ID: <20040914193650.M35231@aragorn.pb.bialystok.pl> Hi, Agree, sometimes it is unavailable, but for example I can connect now.... regards, Oskar > That website - www.paragui.org - appears to be down..... > Shame... sounds interesting. > > Regards, > > Fuzzy > From swida at aragorn.pb.bialystok.pl Mon Sep 20 01:33:13 2004 From: swida at aragorn.pb.bialystok.pl (Oskar Swida) Date: Mon Sep 20 01:34:48 2004 Subject: [PythonCE] Pygame Message-ID: <20040919232815.M11915@aragorn.pb.bialystok.pl> Hi, My next try with PythonCE, now I present precompiled PyGame package, available at: http://aragorn.pb.bialystok.pl/~swida/pygame-ppc2002.zip What do you need: 1. SDL dll library for WinCE - you can take sources from http://mamaich.kasone.com/ 2. This package How to use it ? Just copy whole "pygame" directory to your "Python\Lib" I've prepared only basic pygame package (no font for example) but some test are working (You can for example punch a monkey on your PC - "chimp.py" example from PyGame distribution - just remember to enter full path for images). Enjoy. best regards, Oskar Swida From abra9823 at mail.usyd.edu.au Mon Sep 20 14:27:35 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Mon Sep 20 14:27:43 2004 Subject: [PythonCE] SSL on pocketpc Message-ID: <1095683255.414eccb72ba89@www-mail.usyd.edu.au> hi! has anyone implemented an SSL client on pocket pc? if yes, i'd love to hear from you about how you went about doing it, what tools you used and any problems etc you faced. i also remember reading somewhere about a WinCe port of OpenSSL but cant seem to find anything more about it. cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mike at pcblokes.com Thu Sep 23 12:07:06 2004 From: mike at pcblokes.com (Michael Foord) Date: Thu Sep 23 11:55:32 2004 Subject: [PythonCE] Pythonutils Update Message-ID: <001f01c4a155$237b6d00$0bcdfc3e@deliadelicious> Yup.. another exciting new set of updates to the pythonutils scripts... ;-) Main Page - http://www.voidspace.org.uk/atlantibots/pythonutils.html Examples and small modules - http://www.voidspace.org.uk/atlantibots/recipebook.html Voidspace CGI Homepage - http://www.voidspace.xennos.com Pythonutils mailing list - http://voidspace.xennos.com/mailman/listinfo/pythonutils_voidspace.xennos.com *NEW* auth_example Version 1.0.0 This is more of a tutorial than a script. It shows how to do basic authentication over http (a 401 error) using python. Several examples and explanation of what is happening at each stage. Useful for writing http clients or understanding http. Located at http://www.voidspace.org.uk/atlantibots/recipebook.html *NEW* Pythonutils Mailing List http://voidspace.xennos.com/mailman/listinfo/pythonutils_voidspace.xennos.com For news about updates on all the Voidspace Python scripts and programs. This includes Nanagram, Dirwatcher, approx and ConfigObj et al. Also support, bugfixes and discussion. *UPDATE* approx Version 0.6.0 approx.py - cgiproxy for browsing in a restricted internet environment. Basic authentication works - including multiple users with multiple realms. Bug fixed in multiple user cookie support. Refactored to be cleaner and easier to work on. (Could still be better) Removed duplicate error handling code. In the event of errors (e.g. 404 error) the form to enter a URL is printed - making browsing easier... Reimplemented the POST method in a much simpler way - this way just proxies file uploads etc. (And imposes max file upload size) Added logging of requests - also for debugging. Some more helpful error messages and 'more correct' handling of unkown error codes. Proxying of request headers from the browser to the new request. *UPDATE* guestbook Version 1.1.1 guestbook.py - python guestbook with HTML templates. Email feature is now cross platform, not just for Linux servers. (Uses smtplib rather than sendmail). Attempting to fix a problem with carriage returns - odd. Changed license text. Various minor tinkerings.. Removed the need to have the script name in the template. Added the word poker to the list of banned words (to stop certain adverts). Added 'from_email' to the templates - which means this version of guestbook.py isn't compatible with an old template file. Added a work around so people won't notice (You *can* use old templates if you want to)... *UPDATE* http_test Version 1.3.0 http_test.py - script illustrating CGI environment and http. Useful for debugging. Online version as well. Will work with cookielib as well as ClientCookie. Will display an http error 'reason' if one exists... Print the form even in the event of errors. Will do basic authentication - stored username/passwords are valid for 2 minutes. *UPDATE* dataenc Version 1.1.5 dataenc.py - secure time limited logins over CGI and binary to ascii conversion. Increased speed in table_enc and table_dec. Version 1.1.4 Slight docs improvement. Slight speed improvement in binleave and binunleave. *UPDATE* ConfigObj Version 3.2.2 configobj.py and fullconfigobj.py - ultra simple config file reading and writing. Defined basestring for Python 2.2. (Thanks to Imre Andras Robert for uncovering this). *UPDATE* caseless Version 2.1.1 caseless.py - case insensitive dictionary, list and sort method. Defined sliceobj for versions of Python prior to 2.3 *NEW* in_test Version 1.0.0 in_test.py - view raw CGI POST data A simple test CGI that show several HTML forms and then displays the raw data posted to the CGI from the form. I created it for my own purposes - but someone else may find it useful to understand/view how the browser sends form data to a CGI. (Including file uploads). Online version at http://www.voidspace.xennos.com/index.html#in_test *REMINDER* Xennos Hosting Cheap web hosting including python 2.2 and mailman. Hosting packages from $1 a month. I've been with Xennos for nearly a year, on one of their cheaper packages, and am very pleased with the service. http://www.xennos.com Any of my Python CGIs (http://www.voidspace.xennos.com ) can be installed and used on a xennos account - great for creating/testing CGIs. (And no - I don't own any shares.... but it would be nice to see a few more python CGIs around - anyone fancy building a decent python forum CGI ?...) Lots of general python stuff, python CGI and client stuff.... Hope it's not too off-topic. Regards, Fuzzy -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mail.python.org/pipermail/pythonce/attachments/20040923/8a408306/attachment.html From abra9823 at mail.usyd.edu.au Sun Sep 26 13:58:22 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sun Sep 26 13:58:28 2004 Subject: [PythonCE] question regarding compiling Message-ID: <1096199902.4156aeded8a83@www-mail.usyd.edu.au> hi! i am trying to build pyopenssl. in eVC++ 3.0, i have all the files compiling fine. however the linker throws the following error LINK : fatal error LNK1104: cannot open file "python23.lib" funnily if i ignore the linker error and click build again, it build fine but throws an ImportError on the PDA. i have included the full path to python23.lib under the link section in Project Settings any ideas what i am doing wrong? thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Sun Sep 26 15:16:01 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Sun Sep 26 15:16:07 2004 Subject: [PythonCE] ImportError: DLL load failed Message-ID: <1096204561.4156c1111c7d3@www-mail.usyd.edu.au> hi! I have just written a C extension and compiled it to a .pyd when i try to import this i get an error saying ImportError: DLL load failed. The specified module could not be found. i have placed the file in the Lib directory and it still can't find it. what am i doing wrong? thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Wed Sep 29 08:03:33 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Wed Sep 29 08:03:38 2004 Subject: [PythonCE] extending python - WinCE Message-ID: <1096437813.415a50359eabb@www-mail.usyd.edu.au> hi! does the init function has to have a PyMODINIT_FUNC return type. i am building PyOpenSSL for a pocket pc using embedded visual c++ and i am doing so by putting together all the C files together for OpenSSL/crypto and building crypto.pyd now crypto.c has void initcrypto Build works fine. But when i import it, i get an error saying dynamic load module does not define an init function (initcrypto) the same build using VC++ 6.0 works fine on the PC and i can even import it. any ideas? thanks cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From abra9823 at mail.usyd.edu.au Thu Sep 30 07:56:54 2004 From: abra9823 at mail.usyd.edu.au (Ajay) Date: Thu Sep 30 07:57:01 2004 Subject: [PythonCE] [ANN} PyOpenSSL Message-ID: <1096523814.415ba026130c3@www-mail.usyd.edu.au> hi! i have built PyOpenSSL for a Toshiba e740 (it uses XScale, but i think thats compatible with a StrongArm). i have put up the binaries along with a quick HOWTO for anyone who wants to build from source on my webpage at http://www.cs.usyd.edu.au/~abrar1/resources.html cheers ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From mike at pcblokes.com Thu Sep 30 16:42:07 2004 From: mike at pcblokes.com (Michael Foord) Date: Thu Sep 30 16:31:01 2004 Subject: [PythonCE] [ANN} PyOpenSSL References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> Message-ID: <002401c4a6fb$dd159dc0$2833f7c2@deliadelicious> Thanks Ajay. It's good to see people working on python packages for the CE platform. Many Thanks Fuzzyman ----- Original Message ----- From: "Ajay" To: Sent: Thursday, September 30, 2004 6:56 AM Subject: [PythonCE] [ANN} PyOpenSSL > hi! > > i have built PyOpenSSL for a Toshiba e740 (it uses XScale, but i think > thats compatible with a StrongArm). > i have put up the binaries along with a quick HOWTO for anyone who wants to > build from source on my webpage at > http://www.cs.usyd.edu.au/~abrar1/resources.html > > cheers > > > > > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > > From eichin at gmail.com Thu Sep 30 21:36:46 2004 From: eichin at gmail.com (Mark Eichin) Date: Thu Sep 30 21:36:48 2004 Subject: [PythonCE] [ANN} PyOpenSSL In-Reply-To: <1096523814.415ba026130c3@www-mail.usyd.edu.au> References: <1096523814.415ba026130c3@www-mail.usyd.edu.au> Message-ID: Is that enough to make urllib.urlopen work with https urls, or is it lower level than that? On Thu, 30 Sep 2004 15:56:54 +1000, Ajay wrote: > hi! > > i have built PyOpenSSL for a Toshiba e740 (it uses XScale, but i think > thats compatible with a StrongArm). > i have put up the binaries along with a quick HOWTO for anyone who wants to > build from source on my webpage at > http://www.cs.usyd.edu.au/~abrar1/resources.html > > cheers > > ---------------------------------------------------------------- > This message was sent using IMP, the Internet Messaging Program. > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce > -- _Mark_