From kunicki at gmail.com Sun Jun 1 22:44:40 2008 From: kunicki at gmail.com (CosmoCat) Date: Sun, 1 Jun 2008 13:44:40 -0700 (PDT) Subject: [PythonCE] Which distribution Message-ID: <17572054.post@talk.nabble.com> First, I am so happy to see interest in Python on CE. I am a seasoned .NET programmer and would love to see an alternative. However, I am confused. It seems that there are a number of different distributions in different states. Is there really an official distribution or maybe one that is preferred by most (SourceForge python ce???). Mainly, I just think its sad if lots of people are trying to compile python when there should be a shared effort. Though I may not clearly understand the "state of the union". I think in addition to bringing python up to date we need a few things: - A good shell (the current one is horrible on my WM6 device) - a direction for GUI development - A light web server framework, this would allow us to build CE apps that run in the browser. -- View this message in context: http://www.nabble.com/Which-distribution-tp17572054p17572054.html Sent from the Python - pythonce mailing list archive at Nabble.com. From stef.mientki at gmail.com Sun Jun 1 22:59:41 2008 From: stef.mientki at gmail.com (Stef Mientki) Date: Sun, 01 Jun 2008 22:59:41 +0200 Subject: [PythonCE] Which distribution In-Reply-To: <17572054.post@talk.nabble.com> References: <17572054.post@talk.nabble.com> Message-ID: <48430DBD.1080507@gmail.com> CosmoCat wrote: > First, I am so happy to see interest in Python on CE. I am a seasoned .NET > programmer and would love to see an alternative. > > However, I am confused. It seems that there are a number of different > distributions in different states. Is there really an official distribution > or maybe one that is preferred by most (SourceForge python ce???). > > Mainly, I just think its sad if lots of people are trying to compile python > when there should be a shared effort. Though I may not clearly understand > the "state of the union". > > I think in addition to bringing python up to date we need a few things: > > - A good shell (the current one is horrible on my WM6 device) > > - a direction for GUI development > > - A light web server framework, this would allow us to build CE apps that > run in the browser. > PPyGui perhaps cheers, Stef From sergii at pisem.net Fri Jun 20 19:34:16 2008 From: sergii at pisem.net (Sergei Golubchik) Date: Fri, 20 Jun 2008 19:34:16 +0200 Subject: [PythonCE] pypoom questions ? Message-ID: <20080620173416.GA13049@janus.mylan> Hi. Pypoom doesn't seem to allow to access the ringtone of a contact. Anybody knows of a workaround ? Regards Sergei From sergii at pisem.net Fri Jun 20 22:48:55 2008 From: sergii at pisem.net (Sergei Golubchik) Date: Fri, 20 Jun 2008 22:48:55 +0200 Subject: [PythonCE] pypoom questions ? In-Reply-To: <20080620173416.GA13049@janus.mylan> References: <20080620173416.GA13049@janus.mylan> Message-ID: <20080620204855.GA14082@janus.mylan> Hi! On Jun 20, Sergei Golubchik wrote: > Hi. > > Pypoom doesn't seem to allow to access the ringtone of a contact. > Anybody knows of a workaround ? Okay, looks like POOM doesn't show the ringtone at all. That's how I interpret MSDN, at least. That's too bad :( Regards Sergei From david-pyceml at lestat.st Thu Jun 26 16:45:55 2008 From: david-pyceml at lestat.st (David Goncalves) Date: Thu, 26 Jun 2008 16:45:55 +0200 Subject: [PythonCE] Comtypes installation problem... Message-ID: <4863ABA2.5070307@lestat.st> Hi, I'm trying to install comtypes on Python 2.5 (2007-10 release). I've copied the "comtypes" folder to "Program files\Python25\Lib". When i do a "import comtypes" to check if everything is ok, i get the following message : function "SafeArrayCreateVectorEx" not found with a lot of debug informations... Does anyone already got the same message ? BTW : I've tested on many machines and on a fresh WM5 with the Device Emulator but the result is the same... Regards. From fuzzyman at voidspace.org.uk Thu Jun 26 17:06:47 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 26 Jun 2008 16:06:47 +0100 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <4863ABA2.5070307@lestat.st> References: <4863ABA2.5070307@lestat.st> Message-ID: <4863B087.7000305@voidspace.org.uk> David Goncalves wrote: > Hi, > > I'm trying to install comtypes on Python 2.5 (2007-10 release). > I've copied the "comtypes" folder to "Program files\Python25\Lib". That is part of the Win32 extensions for Python which run on the desktop (with a different CPU and different APIs to your WinCE device). You would have to recompile especially for WinCE, which would be 'difficult'. You are much better off using ctypes for PythonCE, which comes with the latest PythonCE 2.5 I believe. Michael Foord > > When i do a "import comtypes" to check if everything is ok, i > get the following message : > > function "SafeArrayCreateVectorEx" not found > with a lot of debug informations... > > Does anyone already got the same message ? > > BTW : I've tested on many machines and on a fresh WM5 with the Device > Emulator > but the result is the same... > > > Regards. > > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ http://www.resolverhacks.net/ http://www.theotherdelia.co.uk/ From david-pyceml at lestat.st Thu Jun 26 17:31:13 2008 From: david-pyceml at lestat.st (David Goncalves) Date: Thu, 26 Jun 2008 17:31:13 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <4863B087.7000305@voidspace.org.uk> References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> Message-ID: <4863B641.4060208@lestat.st> Hi, > That is part of the Win32 extensions for Python which run on the desktop > (with a different CPU and different APIs to your WinCE device). > > You would have to recompile especially for WinCE, which would be > 'difficult'. > > You are much better off using ctypes for PythonCE, which comes with the > latest PythonCE 2.5 I believe. Thanks for your response. I installed comtypes because i'm trying to use PyPoom and it seems that pypoom needs comtypes :( Then my problem is with pypoom installation... From sergii at pisem.net Thu Jun 26 18:07:04 2008 From: sergii at pisem.net (Sergei Golubchik) Date: Thu, 26 Jun 2008 18:07:04 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <4863B641.4060208@lestat.st> References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> <4863B641.4060208@lestat.st> Message-ID: <20080626160704.GA822@janus.mylan> Hi! On Jun 26, David Goncalves wrote: > Hi, > >> That is part of the Win32 extensions for Python which run on the >> desktop (with a different CPU and different APIs to your WinCE >> device). You would have to recompile especially for WinCE, which >> would be 'difficult'. You are much better off using ctypes for >> PythonCE, which comes with the latest PythonCE 2.5 I believe. > > Thanks for your response. > > I installed comtypes because i'm trying to use PyPoom and it seems that > pypoom needs comtypes :( > Then my problem is with pypoom installation... I've commented out all unknown API functions and could make pypoom working and happily accessing the addressbook. Regards Sergei From david-pyceml at lestat.st Thu Jun 26 18:32:35 2008 From: david-pyceml at lestat.st (David Goncalves) Date: Thu, 26 Jun 2008 18:32:35 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <20080626160704.GA822@janus.mylan> References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> <4863B641.4060208@lestat.st> <20080626160704.GA822@janus.mylan> Message-ID: <4863C4A3.8050007@lestat.st> Hi, > I've commented out all unknown API functions and could make pypoom > working and happily accessing the addressbook. Nice tip ! I'll try it. Thanks. From theller at ctypes.org Thu Jun 26 18:43:34 2008 From: theller at ctypes.org (Thomas Heller) Date: Thu, 26 Jun 2008 18:43:34 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <4863B087.7000305@voidspace.org.uk> References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> Message-ID: Michael Foord schrieb: > David Goncalves wrote: >> Hi, >> >> I'm trying to install comtypes on Python 2.5 (2007-10 release). >> I've copied the "comtypes" folder to "Program files\Python25\Lib". > > That is part of the Win32 extensions for Python which run on the desktop > (with a different CPU and different APIs to your WinCE device). No, comtypes is a pure Python COM package, based on ctypes. No need to compile anything. Thomas From theller at ctypes.org Thu Jun 26 18:46:35 2008 From: theller at ctypes.org (Thomas Heller) Date: Thu, 26 Jun 2008 18:46:35 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <4863ABA2.5070307@lestat.st> References: <4863ABA2.5070307@lestat.st> Message-ID: David Goncalves schrieb: > Hi, > > I'm trying to install comtypes on Python 2.5 (2007-10 release). > I've copied the "comtypes" folder to "Program files\Python25\Lib". > > When i do a "import comtypes" to check if everything is ok, i > get the following message : > > function "SafeArrayCreateVectorEx" not found > with a lot of debug informations... comtypes uses functions that do not exist on WinCE, and I haven't yet found the time to fix that. If someone would like to provide patches that keep the Windows functionality intact, please go ahead (although I will be in vacation the next two week, starting tomorrow. -- Thanks, Thomas From fuzzyman at voidspace.org.uk Thu Jun 26 19:43:13 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 26 Jun 2008 18:43:13 +0100 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> Message-ID: <4863D531.3020302@voidspace.org.uk> Thomas Heller wrote: > Michael Foord schrieb: > >> David Goncalves wrote: >> >>> Hi, >>> >>> I'm trying to install comtypes on Python 2.5 (2007-10 release). >>> I've copied the "comtypes" folder to "Program files\Python25\Lib". >>> >> That is part of the Win32 extensions for Python which run on the desktop >> (with a different CPU and different APIs to your WinCE device). >> > > No, comtypes is a pure Python COM package, based on ctypes. No need to > compile anything. > Oops - my mistake. Sorry. Michael > Thomas > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ http://www.resolverhacks.net/ http://wwww.theotherdelia.co.uk/ From fuzzyman at voidspace.org.uk Thu Jun 26 19:40:02 2008 From: fuzzyman at voidspace.org.uk (Michael Foord) Date: Thu, 26 Jun 2008 18:40:02 +0100 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: References: <4863ABA2.5070307@lestat.st> <4863B087.7000305@voidspace.org.uk> Message-ID: <4863D472.8070607@voidspace.org.uk> Thomas Heller wrote: > Michael Foord schrieb: > >> David Goncalves wrote: >> >>> Hi, >>> >>> I'm trying to install comtypes on Python 2.5 (2007-10 release). >>> I've copied the "comtypes" folder to "Program files\Python25\Lib". >>> >> That is part of the Win32 extensions for Python which run on the desktop >> (with a different CPU and different APIs to your WinCE device). >> > > No, comtypes is a pure Python COM package, based on ctypes. No need to > compile anything. > Oops - my mistake. Sorry. Michael > Thomas > > _______________________________________________ > PythonCE mailing list > PythonCE at python.org > http://mail.python.org/mailman/listinfo/pythonce > -- http://www.ironpythoninaction.com/ http://www.voidspace.org.uk/ http://www.trypython.org/ http://www.ironpython.info/ http://www.resolverhacks.net/ http://wwww.theotherdelia.co.uk/ From alexandre.delattre at enst-bretagne.fr Fri Jun 27 13:49:07 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Fri, 27 Jun 2008 13:49:07 +0200 Subject: [PythonCE] Comtypes installation problem... Message-ID: <200806271146.m5RBkg2K011797@courrier.enst-bretagne.fr> Hi, By the time I wrote pypoom, comtypes (version 0.3 if I remember well) worked out of the box on WinCe. Sergei, if you send me your tweaked version of comtypes, I think I'll be able to replace your "comments" with more portable statements like : If os.name == 'ce': ... , or so. And then submit a preliminary patch to Thomas Regards, Alexandre -------------- next part -------------- An HTML attachment was scrubbed... URL: From david-pyceml at lestat.st Fri Jun 27 14:48:23 2008 From: david-pyceml at lestat.st (David Goncalves) Date: Fri, 27 Jun 2008 14:48:23 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <200806271146.m5RBkg2K011797@courrier.enst-bretagne.fr> References: <200806271146.m5RBkg2K011797@courrier.enst-bretagne.fr> Message-ID: <4864E197.3030309@lestat.st> Hi, > By the time I wrote pypoom, comtypes (version 0.3 if I remember well) > worked out of the box on WinCe. > > Sergei, if you send me your tweaked version of comtypes, I think I'll be > able to replace your "comments" with more portable statements like : > If os.name == 'ce': ... > , or so. > And then submit a preliminary patch to Thomas I've done the same on the only needed file '_safearray.py'. All the parts not working on WinCE are skipped with a if os.name != "ce" : xxxxx xxxxx The file is from the 0.4.2 version of comtypes. Regards. -------------- next part -------------- A non-text attachment was scrubbed... Name: _safearray.py Type: text/x-python Size: 4142 bytes Desc: not available URL: From sergii at pisem.net Fri Jun 27 15:08:58 2008 From: sergii at pisem.net (Sergei Golubchik) Date: Fri, 27 Jun 2008 15:08:58 +0200 Subject: [PythonCE] Comtypes installation problem... In-Reply-To: <200806271146.m5RBkg2K011797@courrier.enst-bretagne.fr> References: <200806271146.m5RBkg2K011797@courrier.enst-bretagne.fr> Message-ID: <20080627130858.GA16571@janus.mylan> Hi! On Jun 27, Alexandre Delattre wrote: > Hi, > > By the time I wrote pypoom, comtypes (version 0.3 if I remember well) > worked out of the box on WinCe. > > Sergei, if you send me your tweaked version of comtypes, I think I'll > be able to replace your "comments" with more portable statements like > : > If os.name == 'ce': ... > , or so. > And then submit a preliminary patch to Thomas David already replied - I've basically end up with the same, three functions being commented out (SafeArrayCreateVectorEx, SafeArrayGetVartype, SafeArrayGetIID) - but he properly used if os.name. I don't have PythonCE or pypoom anymore (just keep a backup of changed files) - as I couldn't make it to access ringtone field of a contact :( Regards Sergei From alexandre.delattre at enst-bretagne.fr Fri Jun 27 16:32:45 2008 From: alexandre.delattre at enst-bretagne.fr (Alexandre Delattre) Date: Fri, 27 Jun 2008 16:32:45 +0200 Subject: [PythonCE] Comtypes installation problem... Message-ID: <200806271430.m5REUKF1002819@courrier.enst-bretagne.fr> Nice, Maybe there some other part of comtypes that would require the missing SafeArrayGetIID function and would fail at runtime (I mean some functions or classes that use this internally). I'll have a little search through the code and use a os.name switch if necessary. Best regards, Alexandre -------------- next part -------------- An HTML attachment was scrubbed... URL: From alexandre.delattre at telecom-bretagne.eu Mon Jun 30 18:33:10 2008 From: alexandre.delattre at telecom-bretagne.eu (alexandre.delattre at telecom-bretagne.eu) Date: Mon, 30 Jun 2008 18:33:10 +0200 Subject: [PythonCE] PPyGui SVN & PPyGui-win32 Message-ID: <20080630183310.8u1k4k6aok04o8wg@webmail.enst-bretagne.fr> Hi all, I'm pleased to announce that PocketPyGui development is now kindly hosted by Mirko "D at ten"; Vogt :) The svn repository host the latest version of PPygui as well as 3rd party apps and tools not published yet. You can check it out by typing: svn co https://svn.nanl.de/svn/ppygui/ and use "anonymous"/"anonymous" as user/password. Especially, the repository contain the first version of the native PPygui win32 implementation, which allow you to test and debug your PPygui apps directly from desktop Windows or with Linux through Wine. As PPygui for win32 reuse 90 % of the wince implementation, this gives a fairly coherent and compatible environment for mobile apps development. It is likely your existing apps will work out of the box, as it did for almost all of mine. The only thing really missing now is gui.Html control, but it should not be to much hassle to implement it with comtypes and hopefully we can see it ported in a couple of days. With very little effort you'll be able to make regular desktop gui applications, and reuse your components between classic and mobile versions of your app. While PocketPyGui will remain focused on mobile devices, it'll be soon an alternative to create lightweight win32 applications that are easy to write and distribute. As always, any contributions and feedbacks are welcome. Also, if you want to gain developer access to svn, feel free to mail me. Regards, Alexandre