From telionce@yahoo.com Mon Sep 2 12:38:50 2002 From: telionce@yahoo.com (Telion) Date: Mon, 2 Sep 2002 04:38:50 -0700 (PDT) Subject: [PythonCE] PythonCE22 for HPC2000 update Message-ID: <20020902113850.37805.qmail@web21104.mail.yahoo.com> Finally, I could bring back the _socket module, and add zlib. I've uploaded them in one Zipped file. http://pages.ccapcable.com/lac/PythonCE.html As for ARM, it's coming. PythonCE22.exe, Pywintype22.dll, Python22.dll went through easily. I was stack with win32event and win32gui yesterday. But it was because of a few deference in project setting. Probably I'll upload them tonight. ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From brand@learninglab.de Mon Sep 2 16:33:48 2002 From: brand@learninglab.de (Oliver Brand) Date: Mon, 2 Sep 2002 17:33:48 +0200 Subject: [PythonCE] pythoncom for pythonCE Message-ID: <20020902173348.A7853@learninglab.de> Hi, has anybody seen a pythoncom implementation for PythonCE (Arm) ? I want to get the following code to work, but it fails saying that the module pythoncom is not available. I'm a python newbie, so maybe my mistake could be somewhere else ... import win32com.client import win32gui import pythoncom iid = pythoncom.MakeIID("{9ba05972-f6a8-11cf-a442-00a0c90a8f39}") shellWnd = win32com.client.Dispatch(iid) count = shellWnd.Count topWin = win32gui.GetForegroundWindow() for index in range(count): browser = shellWnd.item(index) if browser.HWND == topWin : url = browser.LocationURL print "Result: " + url Thanks, Oliver From telionce@yahoo.com Tue Sep 3 02:21:48 2002 From: telionce@yahoo.com (Telion) Date: Mon, 2 Sep 2002 18:21:48 -0700 (PDT) Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: <20020902173348.A7853@learninglab.de> Message-ID: <20020903012148.21092.qmail@web21102.mail.yahoo.com> --- Oliver Brand wrote: > Hi, > > has anybody seen a pythoncom implementation for > PythonCE (Arm) ? I'm not aware. Maybe you can port it and share with us. I have just finished building Newer Python CE 2.2+ for ARM (HPC2000). http://pages.ccapcable.com/lac/PythonCE.html By using calldll modeule (and wrapper 'dll.py'), you may be able to do a lot of thing if you know how to call dll. But I'm not sure about callback or COM. ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From doug@jarna.com Tue Sep 3 05:30:53 2002 From: doug@jarna.com (Doug Marien) Date: Mon, 2 Sep 2002 21:30:53 -0700 Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: <20020903012148.21092.qmail@web21102.mail.yahoo.com> Message-ID: I have ported pythoncom to PocketPC 2002 (ARM) as well as pyexpat among others, but they require changes to PythonCE for the imports to work. The major changes are related to the reading of the registry keys for the python path and other module locations. It's not quite in a state for release since most of the changes were made as I went, but I'd think it would be best to wait for a proper release from Brad. -Doug -----Original Message----- From: pythonce-admin@python.org [mailto:pythonce-admin@python.org]On Behalf Of Telion Sent: Monday, September 02, 2002 6:22 PM To: PythonCE@python.org Subject: Re: [PythonCE] pythoncom for pythonCE --- Oliver Brand wrote: > Hi, > > has anybody seen a pythoncom implementation for > PythonCE (Arm) ? I'm not aware. Maybe you can port it and share with us. I have just finished building Newer Python CE 2.2+ for ARM (HPC2000). http://pages.ccapcable.com/lac/PythonCE.html By using calldll modeule (and wrapper 'dll.py'), you may be able to do a lot of thing if you know how to call dll. But I'm not sure about callback or COM. ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com _______________________________________________ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce From telionce@yahoo.com Tue Sep 3 13:23:00 2002 From: telionce@yahoo.com (Telion) Date: Tue, 3 Sep 2002 05:23:00 -0700 (PDT) Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: Message-ID: <20020903122300.55290.qmail@web21101.mail.yahoo.com> --- Doug Marien wrote: > I have ported pythoncom to PocketPC 2002 (ARM) as > well as pyexpat among > others, but they require changes to PythonCE for the > imports to work. The > major changes are related to the reading of the > registry keys for the python > path and other module locations. That's great ! > It's not quite in a state for release since most of > the changes were made as > I went, but I'd think it would be best to wait for a > proper release from > Brad. > > -Doug Well, if you have done it already, I think you can readuce work hours of Brad by shareing the code. And that would help me and other people trying to port Python CE on other WinCE platform, in turn. ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From bkc@murkworks.com Tue Sep 3 14:58:15 2002 From: bkc@murkworks.com (Brad Clements) Date: Tue, 03 Sep 2002 09:58:15 -0400 Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: References: <20020903012148.21092.qmail@web21102.mail.yahoo.com> Message-ID: <3D748825.23443.DF06845@localhost> On 2 Sep 2002 at 21:30, Doug Marien wrote: > It's not quite in a state for release since most of the changes were made > as I went, but I'd think it would be best to wait for a proper release from > Brad. Oih, don't wait for me! I have your patches.. Did you also change the layout of registry entries vs. desktop win32, or just the code? Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From bkc@murkworks.com Tue Sep 3 15:41:53 2002 From: bkc@murkworks.com (Brad Clements) Date: Tue, 03 Sep 2002 10:41:53 -0400 Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: <20020903122300.55290.qmail@web21101.mail.yahoo.com> References: Message-ID: <3D74925E.3838.E185999@localhost> On 3 Sep 2002 at 5:23, Telion wrote: > Well, if you have done it already, > I think you can readuce work hours of Brad by shareing > the code. > > And that would help me and other people trying to port > Python CE on other WinCE platform, in turn. > > He sent me diffs about a month ago, I just haven't gotten to it. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From doug@jarna.com Wed Sep 4 04:05:21 2002 From: doug@jarna.com (Doug Marien) Date: Tue, 3 Sep 2002 20:05:21 -0700 Subject: [PythonCE] Python 2.3/2.2+ PocketPC 2002 ARM Message-ID: Been quite busy today, but I had a minute to zip up the ARM binaries for PocketPC 2002 which includes pyexpat, pythoncom, etc... This isn't a trivial install because you'll need to tweak some registry entries on the device. I've included a .reg file exported from my device to show which keys are required, but if you are familiar with the win32 distribution, they are the same. Also, the reason for the 2.3 version in the paths is because that's the version in the resource file of this distribution. If you don't have the development tools installed for ceregedt.exe, then you can try the Registry Editor program from http://www.phm.lu/products/PocketPC/ pyexpat and expat are from the PyXML 0.8 distribution located at http://sourceforge.net/projects/pyxml There are still quite a few functions that are not exposed in the win32api module since I've only been porting them as needed. Other than that, the zip file maintains the directory structure of my device, but you can unzip anywhere and adjust the paths from the registry keys. Anywho, I've temporarily placed the files up at: http://www.trickymath.com/PythonCE-2.3.zip Doug From brand@learninglab.de Wed Sep 4 15:20:47 2002 From: brand@learninglab.de (Oliver Brand) Date: Wed, 4 Sep 2002 16:20:47 +0200 Subject: [PythonCE] Python 2.3/2.2+ PocketPC 2002 ARM In-Reply-To: ; from doug@jarna.com on Tue, Sep 03, 2002 at 08:05:21PM -0700 References: Message-ID: <20020904162047.A13155@learninglab.de> Hi, just tried this on my iPAQ, but I get an exception saying "no module named ceshell". But ceshell is at its according place ... Maybe something went wrong changing my registry. When I added the new keys, the default value name is "New Value #1". I didn't touch this, hope this is correct ... Any hints ? Oliver On Tue, Sep 03, 2002 at 08:05:21PM -0700, Doug Marien wrote: > Been quite busy today, but I had a minute to zip up the ARM binaries for > PocketPC 2002 which includes pyexpat, pythoncom, etc... > > This isn't a trivial install because you'll need to tweak some registry > entries on the device. I've included a .reg file exported from my device to > show which keys are required, but if you are familiar with the win32 > distribution, they are the same. Also, the reason for the 2.3 version in > the paths is because that's the version in the resource file of this > distribution. If you don't have the development tools installed for > ceregedt.exe, then you can try the Registry Editor program from > http://www.phm.lu/products/PocketPC/ > > pyexpat and expat are from the PyXML 0.8 distribution located at > http://sourceforge.net/projects/pyxml > > There are still quite a few functions that are not exposed in the win32api > module since I've only been porting them as needed. > > Other than that, the zip file maintains the directory structure of my > device, but you can unzip anywhere and adjust the paths from the registry > keys. Anywho, I've temporarily placed the files up at: > > http://www.trickymath.com/PythonCE-2.3.zip > > Doug > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce From telionce@yahoo.com Wed Sep 4 19:33:57 2002 From: telionce@yahoo.com (Telion) Date: Wed, 4 Sep 2002 11:33:57 -0700 (PDT) Subject: [PythonCE] pythoncom for pythonCE In-Reply-To: <3D74925E.3838.E185999@localhost> Message-ID: <20020904183357.67963.qmail@web21110.mail.yahoo.com> > > He sent me diffs about a month ago, I just haven't > gotten to it. > > > Brad Clements, bkc@murkworks.com > (315)268-1000 > http://www.murkworks.com > (315)268-9812 Fax > AOL-IM: BKClements I know you are busy. You have done a lot already, and I don't want put more load on your shoulder. When I accidently updated and merged with latest source files from the main CVS, I understood a little more about some issues you have been working, among other things. I feel now that it isn't really good idea to keep up with the main CVS because it may require too much efforts unless there are more people participating in porting. And I regret if I asked you to go in that direction naively. Instead, maybe we can just stay with your current source tree, and add or modify as we go. (Then, you can forget about convincing CVS guys) Anyway, I'm pretty happy with my new build, which I could make thanks to your port. PS. I would appreciate if you can put up these patches and any other modified or improved source files on your ftp or somewhere else. (Only these files that are newer than version 3 zip) ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From telionce@yahoo.com Fri Sep 6 03:11:43 2002 From: telionce@yahoo.com (Telion) Date: Thu, 5 Sep 2002 19:11:43 -0700 (PDT) Subject: [PythonCE] strtod, strtol Wanted Message-ID: <20020906021143.45787.qmail@web21103.mail.yahoo.com> As I could finish HPC2000 ARM Release build earlier, I'm trying to build for CE2.11 Hpc/pro. And I'm looking for 'strtod' and 'strtol' functions that will go with PythonCE source, both license wise and compatibility wise. I have found these functions in Rainer's celib.dll source (probably BSD license? or GNU?), and a few other code. But I'm not really sure about License compatibility with Python. Or better, maybe someone can write one for us. In that way, we don't have to worry about licensing matter. (These functions are needed for both PsPC and HPC/Pro) Any suggestion, help, or volunteer? ===== Telion - telionce@yahoo.com - __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From telionce@yahoo.com Wed Sep 11 04:44:19 2002 From: telionce@yahoo.com (Telion) Date: Tue, 10 Sep 2002 20:44:19 -0700 (PDT) Subject: [PythonCE] PythonCE2.2+ for ARM (Jordana72) Message-ID: <20020911034419.80543.qmail@web21108.mail.yahoo.com> I have been working with a tester who owns and knows well about software testing on Jordana720. As a result, we could solve the preblem around win32gui module and I think it should run as expected. http://pages.ccapcable.com/lac/PythonCE.html ===== Telion - telionce@yahoo.com - __________________________________________________ Yahoo! - We Remember 9-11: A tribute to the more than 3,000 lives lost http://dir.remember.yahoo.com/tribute From carl@orangeimagineering.com Wed Sep 11 16:16:45 2002 From: carl@orangeimagineering.com (Carl Shimer) Date: Wed, 11 Sep 2002 11:16:45 -0400 Subject: [PythonCE] newbie questions! Message-ID: Hello All, I have a number of newbie questions for the kind hearted folks out there: >From the mailing list archives it looks like it is possible to build the latest and greatest pythonCE from CVS... are there any instructions on how to do this? It seems like the CVS source differs greatly from the archive at ftp.murkworks.com/beta/pyceall3.zip. Additionally, has anyone attempted to build a C/C++ extension for pythonCE? Are there any known pitfalls or issues? =20 Thanks in advance. Carl From bkc@murkworks.com Wed Sep 11 17:19:50 2002 From: bkc@murkworks.com (Brad Clements) Date: Wed, 11 Sep 2002 12:19:50 -0400 Subject: [PythonCE] newbie questions! In-Reply-To: Message-ID: <3D7F352C.4056.4441E54@localhost> On 11 Sep 2002 at 11:16, Carl Shimer wrote: > From the mailing list archives it looks like it is possible to build the > latest and greatest pythonCE from CVS... are there any instructions on how > to do this? It seems like the CVS source differs greatly from the archive > at ftp.murkworks.com/beta/pyceall3.zip. The long-term goal is to have all CE specifics checked back into the core CVS. Unfortunately that isn't done yet. > Additionally, has anyone attempted to build a C/C++ extension for > pythonCE? Are there any known pitfalls or issues? No problems building win32gui, which is an extension.. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From toddp@OrangeImagineering.com Wed Sep 11 17:40:11 2002 From: toddp@OrangeImagineering.com (Todd Pinkerton) Date: Wed, 11 Sep 2002 12:40:11 -0400 Subject: [PythonCE] Socket weirdness Message-ID: Hi all, I'm having trouble with the socket module in PythonCE2.3. I'm trying to do a simple urllib test:=20 >>> import urllib >>> f =3D urllib.urlopen("http://www.yahoo.com") >>> print f.read() Which works fine under other python environments. On PythonCE2.3, while trying to run the urllib.urlopen(), I get the following :=20 Traceback (most recent call last) :=20 File "Program files/Python/lib/site-packages/wince\ceshell.py" , line 458, in Interact exec codeOb in locals File "" , line 1, in ?=20 File "\Program Files\Python\lib\urllib.py", line 73, in urlopen File "\Program Files\Python\lib\urllib.py", line 178 in open File "\Program Files\Python\lib\urllib.py", line 295, in open_http File "\Program Files\Python\lib\httplib.py", line 728, in getreply File "\Program Files\Python\lib\httplib.py", line 572, in getresponse AtributeError: '_socket.socket' object has no attribute 'makefile'=20 >From what I can tell (running 'strings' on _socket.pyd and socket.pyc) there's some mention of 'makefile' in the socket module; but for some reason, the interpreter can't seem to find it. Since the PythonCE2.3 distro didn't include all the standard python modules, I kept the ones from the 2.2 distro; has anything changed that I'm missing? Anyone else having problems with _socket?=20 -Todd =20 From telionce@yahoo.com Thu Sep 12 12:54:51 2002 From: telionce@yahoo.com (Telion) Date: Thu, 12 Sep 2002 04:54:51 -0700 (PDT) Subject: [PythonCE] Library files to go Message-ID: <20020912115451.87171.qmail@web21101.mail.yahoo.com> For those who looking for DEMO and other scripts, I put Library files and some other parts of Python distribution in a Zip. http://www.geocities.com/telionce/ They are taken from source file distribution made by Brad. Please note that some of them will not work on CE. Some will work with modification. *** Do not overwrite your pythonCE distribution with these files unless you know what you are doing. *** ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? Yahoo! News - Today's headlines http://news.yahoo.com From mmellor1@yahoo.com Thu Sep 19 02:06:35 2002 From: mmellor1@yahoo.com (Mike Mellor) Date: Wed, 18 Sep 2002 21:06:35 -0400 Subject: [PythonCE] Install Questions Message-ID: <20020918210635.6c61b5c4.mmellor1@yahoo.com> --ThCRBXe,=.nqTjln Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit I have installed Python CE 2.2 and it works great - I am currently using it to build simple models in SimPy. Here are my questions (probably old ones): How do I get the default icon? I have tried almost every combination I can think of without success. I moved the executable from the start menu to the windows folder, and renamed it python.exe. Is there any way to get around the problem of folder names with spaces in them (My Documents, Storage Card, Program Files)? Thanks. Mike --ThCRBXe,=.nqTjln Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9iSMi6438uuwmv8IRAtdmAJ9/NNc1dGEhVIyotu1DMZH+7PZqogCfXN7/ LZ/3MCkrK8R+h8VmqUS7+Tc= =kHXA -----END PGP SIGNATURE----- --ThCRBXe,=.nqTjln-- From uku@snafu.de Thu Sep 19 11:00:15 2002 From: uku@snafu.de (Ulrich Kuestner) Date: Thu, 19 Sep 2002 12:00:15 +0200 Subject: [PythonCE] PythonCE2.2 and Tk/Tkinter? Message-ID: I would like to run the Leo Outliner on my Jornada 720. To quote: "Leo is portable. Leo.py is 100% pure Python and will run on any platform supporting Python and Tk/tcl" Is this possible with PythonCE and Rainer Keuchel's Tcl/Tk 8.4a2 for WinCE? Any suggestions how to go about it would be gratefully received. Ulrich From bkc@murkworks.com Thu Sep 19 14:15:14 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 19 Sep 2002 09:15:14 -0400 Subject: [PythonCE] Install Questions In-Reply-To: <20020918210635.6c61b5c4.mmellor1@yahoo.com> Message-ID: <3D8995C1.25720.2CCE1ABC@localhost> On 18 Sep 2002 at 21:06, Mike Mellor wrote: > How do I get the default icon? I have tried almost every combination I can > think of without success. I moved the executable from the start menu to > the windows folder, and renamed it python.exe. I don't understand this question. Can you explain more? > Is there any way to get around the problem of folder names with spaces in > them (My Documents, Storage Card, Program Files)? What problem? Could you explain more. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From telionce@yahoo.com Thu Sep 19 15:23:40 2002 From: telionce@yahoo.com (Telion) Date: Thu, 19 Sep 2002 07:23:40 -0700 (PDT) Subject: [PythonCE] PythonCE2.2 and Tk/Tkinter? In-Reply-To: Message-ID: <20020919142340.86740.qmail@web21108.mail.yahoo.com> --- Ulrich Kuestner wrote: > I would like to run the Leo Outliner on my Jornada > 720. > > To quote: > "Leo is portable. Leo.py is 100% pure Python and > will run on any platform > supporting Python and Tk/tcl" > > Is this possible with PythonCE and Rainer Keuchel's > Tcl/Tk 8.4a2 for WinCE? > Any suggestions how to go about it would be > gratefully received. > > Ulrich I thought about this, too. Since Tcl/Tk is already ported, and Perl/tk seems to work, why not Python tkinter? But I do not know well in that area, much less than other things, and I had many other priority. So I didn't totally forget about this, but I was hoping that someone else would port it. Why don't you give it a try? Compile _tkinter and related files (I don't know which) and see what have to be done. By linking with Rainer's celib (only where it is needed), either statically or dynamic, I think there is a good chance of success. I would be glad to see that! ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From telionce@yahoo.com Thu Sep 19 15:49:01 2002 From: telionce@yahoo.com (Telion) Date: Thu, 19 Sep 2002 07:49:01 -0700 (PDT) Subject: [PythonCE] Install Questions In-Reply-To: <20020918210635.6c61b5c4.mmellor1@yahoo.com> Message-ID: <20020919144901.39272.qmail@web21109.mail.yahoo.com> --- Mike Mellor wrote: > I have installed Python CE 2.2 and it works great - > I am currently using it to build simple models in > SimPy. > > Here are my questions (probably old ones): > > How do I get the default icon? I have tried almost > every combination I can think of without success. I > moved the executable from the start menu to the > windows folder, and renamed it python.exe. > > Is there any way to get around the problem of folder > names with spaces in them (My Documents, Storage > Card, Program Files)? > > Thanks. > > Mike > As Brad has responded, which version of Python are you using, and on which machine? If you are using PythonCE2.2+ for HPC2000, yes Icon was totally missing, and I fixed half of that minor problem. In that case, it has nothing to do with folders and other thing. To show Icon, you have to download new Zip file from my site, replace PythonCE22.exe and pcceshell.py, and do some adjustment if necessary in site.py. Actually, to show Icon, I put LoadIcon and other lines in the updated pcceshell.py So, if you put pcceshell.py to somewhere, and if THAT pcceshell is loaded, Icon would not show up. Anyway, please specify which version of Python you are using. ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From rdev7@bigfoot.com Thu Sep 19 16:12:55 2002 From: rdev7@bigfoot.com (rdev7@bigfoot.com) Date: Thu, 19 Sep 2002 16:12:55 +0100 Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" Message-ID: <011001c25fef$08e60530$9ea2bd3e@Roy001> This is a multi-part message in MIME format. ------=_NextPart_000_010D_01C25FF7.69D2D1E0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi - I have been trying to install Python on an HP Jornada 720. I keep = getting the error "'import site' failed - use -v for more detail" in the = main console window, with a Python Error popup window that says = "Traceback (innermost last): cant import traceback; = exceptions.ImportError: No module named ceshell". Can anyone tell me = what I am doing wrong? I am using the file PythonCE22-HPC2000-ARM-020914.zip downloaded from = http://pages.ccapcable.com/lac/files-a/. I unzipped that file and = transferred the contents to a compact flash storage card on my Jornada. = I have edited SITE.py so that the sys.path line reads sys.path =3D = ['\\Storage Card\\Python22', '\\Storage Card\\Python22\\lib','\\My = documents'], which is consistent with my Jornada's directory structure. = After encountering these problems, I then tried a couple of superficial = tactics to get Python to run, without success: - I looked in the Python22 directory and could not find a module or file = called ceshell, so I made a duplicate of the file pcceshell.py and = renamed it so that it was called "ceshell.py". Unfortunately I then got = a different error, which was identical to the first error described = above, except that the last message was "exceptions.ImportError: No = Module named win32gui". =20 - Finally, I transferred all the files from the storage card to the main = disk of the Jornada, and changed the SITE.py sys.path variable = accordingly. This made no difference and I still encountered the same = problems as before. I'd really appreciate hearing about any tips or pointers towards = resources that might help me. Thanks! Roy ------=_NextPart_000_010D_01C25FF7.69D2D1E0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi - I have been trying to install = Python on an=20 HP Jornada 720.  I keep getting the error "'import site' = failed - use=20 -v for more detail" in the main console window, with a Python Error = popup window=20 that says "Traceback (innermost last): cant import traceback;=20 exceptions.ImportError: No module named ceshell".  Can anyone tell = me what=20 I am doing wrong?
 
I am using the file=20 PythonCE22-HPC2000-ARM-020914.zip downloaded from http://pages.ccapcable.c= om/lac/files-a/. =20 I unzipped that file and transferred the contents to a compact flash = storage=20 card on my Jornada.  I have edited SITE.py so that the sys.path = line reads=20 sys.path =3D ['\\Storage Card\\Python22', '\\Storage = Card\\Python22\\lib','\\My=20 documents'], which is consistent with my Jornada's directory = structure. =20
 
After encountering these problems, = I then=20 tried a couple of superficial tactics to get Python to run, without=20 success:
- I looked in the Python22 directory = and could not=20 find a module or file called ceshell, so I made a duplicate of the file=20 pcceshell.py and renamed it so that it was called "ceshell.py". =20 Unfortunately I then got a different error, which was identical to the = first=20 error described above, except that the last message was = "exceptions.ImportError:=20 No Module named win32gui". 
- Finally, I transferred all the files = from the=20 storage card to the main disk of the Jornada, and changed the SITE.py = sys.path=20 variable accordingly.  This made no difference and I still = encountered the=20 same problems as before.
 
I'd really appreciate hearing about any = tips or=20 pointers towards resources that might help me.  = Thanks!
 
Roy
 
------=_NextPart_000_010D_01C25FF7.69D2D1E0-- From telionce@yahoo.com Thu Sep 19 16:40:17 2002 From: telionce@yahoo.com (Telion) Date: Thu, 19 Sep 2002 08:40:17 -0700 (PDT) Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" Message-ID: <20020919154017.51401.qmail@web21106.mail.yahoo.com> Hi Roy, Most probably, you have downloaded 1st version, and you did not update to newer files correctly. Check for the copies of pcceshell.py. Probably, you have two copies of them in different location. If it is the case, rename the older one. Also, you may not have placed site.py correctly. Please try site.py in: 1. same directly where you put PythonCE22.exe and dll files. 2. root directory "\\" 3. "\\storage card\\python" And in the site.py, make sure to set sys.path correctly. When you see the error dialog saying "traceback not found," your sys.path setting is not correct. You can activate some of print statement I put as a comment, to follow how things are going. Make sure that you have copied everything with the original type cases. Some people had difficulty because all filenames were changed into uppercase somehow. If it was the case, recopy everything, and overwrite everything without changing case. If you check and correct these points, probably Python will start. Let me know if it works. --- rdev7@bigfoot.com wrote: > Hi - I have been trying to install Python on an HP > Jornada 720. I keep getting the error "'import > site' failed - use -v for more detail" in the main > console window, with a Python Error popup window > that says "Traceback (innermost last): cant import > traceback; exceptions.ImportError: No module named > ceshell". Can anyone tell me what I am doing wrong? > > I am using the file > PythonCE22-HPC2000-ARM-020914.zip downloaded from > http://pages.ccapcable.com/lac/files-a/. I unzipped > that file and transferred the contents to a compact > flash storage card on my Jornada. I have edited > SITE.py so that the sys.path line reads sys.path = > ['\\Storage Card\\Python22', '\\Storage > Card\\Python22\\lib','\\My documents'], which is > consistent with my Jornada's directory structure. > > After encountering these problems, I then tried a > couple of superficial tactics to get Python to run, > without success: > - I looked in the Python22 directory and could not > find a module or file called ceshell, so I made a > duplicate of the file pcceshell.py and renamed it so > that it was called "ceshell.py". Unfortunately I > then got a different error, which was identical to > the first error described above, except that the > last message was "exceptions.ImportError: No Module > named win32gui". > - Finally, I transferred all the files from the > storage card to the main disk of the Jornada, and > changed the SITE.py sys.path variable accordingly. > This made no difference and I still encountered the > same problems as before. > > I'd really appreciate hearing about any tips or > pointers towards resources that might help me. > Thanks! > > Roy > > ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From mmellor1@yahoo.com Thu Sep 19 17:20:01 2002 From: mmellor1@yahoo.com (Mike Mellor) Date: Thu, 19 Sep 2002 12:20:01 -0400 Subject: [PythonCE] Re: PythonCE digest, Vol 1 #73 - 7 msgs References: <20020919160020.22172.78831.Mailman@mail.python.org> Message-ID: <3D89F931.9090203@yahoo.com> > > >--- Mike Mellor wrote: > >>I have installed Python CE 2.2 and it works great - >>I am currently using it to build simple models in >>SimPy. >> >>Here are my questions (probably old ones): >> >>How do I get the default icon? I have tried almost >>every combination I can think of without success. I >>moved the executable from the start menu to the >>windows folder, and renamed it python.exe. >> >>Is there any way to get around the problem of folder >>names with spaces in them (My Documents, Storage >>Card, Program Files)? >> >>Thanks. >> >>Mike >> >> >> > >As Brad has responded, which version of Python are you >using, and on which machine? > >If you are using PythonCE2.2+ for HPC2000, yes Icon >was totally missing, and I fixed half of that minor >problem. > >In that case, it has nothing to do with folders and >other thing. > >To show Icon, you have to download new Zip file from >my site, replace PythonCE22.exe and pcceshell.py, and >do some adjustment if necessary in site.py. > >Actually, to show Icon, I put LoadIcon and other lines >in the updated pcceshell.py >So, if you put pcceshell.py to somewhere, and if THAT >pcceshell is loaded, Icon would not show up. > >Anyway, please specify which version of Python you are >using. > > > > I'm using the latest release for MIPS (2.2+) (the April 02 release). First question - what do I need to do to get .py files to use the PythonCE icon in the file manager programs? I have an entry in the registry under PyFile (which is linked to .py and .pyc files) that has an entry for DefaultIcon. I have been able to get it to use icons from other programs (the wish/tk icon) but not Python. The entry I have for default icon is "Python.exe, 0". Second question - I cannot run .py files from any folder that has a space in the title, such as My Documents, Storage Card or Program Files. The error is that python is unable to find file (for example) /Program .... Is there a work around? Thanks. Mike From telionce@yahoo.com Thu Sep 19 17:49:36 2002 From: telionce@yahoo.com (Telion) Date: Thu, 19 Sep 2002 09:49:36 -0700 (PDT) Subject: [PythonCE] Re: PythonCE digest, Vol 1 #73 - 7 msgs In-Reply-To: <3D89F931.9090203@yahoo.com> Message-ID: <20020919164936.69398.qmail@web21109.mail.yahoo.com> --- Mike Mellor wrote: > I'm using the latest release for MIPS (2.2+) (the > April 02 release). Ok, then you have to update your files. I think you have to replace at least pythonCE22.exe, pcceshell.py, and win32gui.pyd. Maybe a few other files but I don't remember. > > First question - what do I need to do to get .py > files to use the > PythonCE icon in the file manager programs? I have > an entry in the > registry under PyFile (which is linked to .py and > .pyc files) that has > an entry for DefaultIcon. I have been able to get > it to use icons from > other programs (the wish/tk icon) but not Python. > The entry I have for > default icon is "Python.exe, 0". After updating PythonCE22.exe, you will see the icon. But you may see the quater of big icon, instead of whole small icon. I may fix this sometime lator. Meanwhile, you may recopy old python.exe (let's say, from 1.52) and specify to use the icon in that one. If you want to change icon, there is a great software called resourcehacker. And this will let you change Icons and resources as you wish. (Try on a copied file to be safe.) > > Second question - I cannot run .py files from any > folder that has a > space in the title, such as My Documents, Storage > Card or Program Files. > The error is that python is unable to find file > (for example) /Program > .... Is there a work around? > > Thanks. > > Mike Well, if you are trying something like; >>> import /program files/youscript >>> import /program files/youscript.py >>> import "/program files/youscript.py" >>> import "/program files/youscript" It dosn't work. You may do this; >>> execfile("/program files/yourscript.py") or, you can set sys.path to desired directory; >>> import sys >>> sys.path.append('/program files') >>> import yourscript I checked with my machine, and it worked with '/program files/'. What is your machine by the way? NEC? Sharp? Intermec? ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From ppcquicksoft@iespana.es Thu Sep 19 17:55:13 2002 From: ppcquicksoft@iespana.es (Javier) Date: Thu, 19 Sep 2002 18:55:13 +0200 Subject: [PythonCE] Re: PythonCE digest, Vol 1 #73 - 7 msgs In-Reply-To: <3D89F931.9090203@yahoo.com> References: <20020919160020.22172.78831.Mailman@mail.python.org> Message-ID: <5.1.0.14.0.20020919185509.00b8f370@pop.iespana.es> Change your registry to reflect "Python.exe, -102" That shoudl work. Javier At 12:20 19/09/2002 -0400, Mike Mellor wrote: >>--- Mike Mellor wrote: >> >>>I have installed Python CE 2.2 and it works great - >>>I am currently using it to build simple models in >>>SimPy. >>> >>>Here are my questions (probably old ones): >>> >>>How do I get the default icon? I have tried almost >>>every combination I can think of without success. I >>>moved the executable from the start menu to the >>>windows folder, and renamed it python.exe. >>> >>>Is there any way to get around the problem of folder >>>names with spaces in them (My Documents, Storage >>>Card, Program Files)? >>> >>>Thanks. >>> >>>Mike >>> >>> >> >>As Brad has responded, which version of Python are you >>using, and on which machine? >> >>If you are using PythonCE2.2+ for HPC2000, yes Icon >>was totally missing, and I fixed half of that minor >>problem. >> >>In that case, it has nothing to do with folders and >>other thing. >> >>To show Icon, you have to download new Zip file from >>my site, replace PythonCE22.exe and pcceshell.py, and >>do some adjustment if necessary in site.py. >> >>Actually, to show Icon, I put LoadIcon and other lines >>in the updated pcceshell.py >>So, if you put pcceshell.py to somewhere, and if THAT >>pcceshell is loaded, Icon would not show up. >> >>Anyway, please specify which version of Python you are >>using. >> >> >> >I'm using the latest release for MIPS (2.2+) (the April 02 release). > >First question - what do I need to do to get .py files to use the PythonCE >icon in the file manager programs? I have an entry in the registry under >PyFile (which is linked to .py and .pyc files) that has an entry for >DefaultIcon. I have been able to get it to use icons from other programs >(the wish/tk icon) but not Python. The entry I have for default icon is >"Python.exe, 0". > >Second question - I cannot run .py files from any folder that has a space >in the title, such as My Documents, Storage Card or Program Files. The >error is that python is unable to find file (for example) /Program >.... Is there a work around? > >Thanks. > >Mike > > > >_______________________________________________ >PythonCE mailing list >PythonCE@python.org >http://mail.python.org/mailman/listinfo/pythonce ______________________________________________________________________________ mensaje enviado desde http://www.iespana.es emails (pop)-paginas web (espacio ilimitado)-agenda-favoritos (bookmarks)-foros -Chat From rdev7@bigfoot.com Thu Sep 19 18:41:52 2002 From: rdev7@bigfoot.com (rdev7@bigfoot.com) Date: Thu, 19 Sep 2002 18:41:52 +0100 Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" References: <20020919154017.51401.qmail@web21106.mail.yahoo.com> Message-ID: <018901c26003$d7c36370$9ea2bd3e@Roy001> Hi Telion Thanks a lot for the tips. It turns out that the files were indeed being renamed to uppercase when I copied them across to the compact flash storage card using a PCMCIA card adaptor. It's weird - I have no idea why that happens. Anyway I then used Handyzip (www.cnetx.com) to unzip the archive on the Jornada itself (instead of unzipping the archive on the PC and copying it across), and that worked fine. I now have Python up and running - thanks again! Roy. From telionce@yahoo.com Thu Sep 19 19:30:27 2002 From: telionce@yahoo.com (Telion) Date: Thu, 19 Sep 2002 11:30:27 -0700 (PDT) Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" In-Reply-To: <018901c26003$d7c36370$9ea2bd3e@Roy001> Message-ID: <20020919183027.44712.qmail@web21108.mail.yahoo.com> Great! I'm glad to hear that it worked. I don't know why, but same thing happened to other people using Jordana 720. I guess some unzip program (especially old one?) copies everything in Upper case. Maybe another reason to consider using cab file. Let me know of bugs if you find some. Telion PS. Try the new CmdPy22.exe if you like. It's a minimal Python startup file. And it works on default console. Finding right setting for it could be a little tricky though. (sys.path, sys.prefix, sys.argv are not set) --- rdev7@bigfoot.com wrote: > Hi Telion > > Thanks a lot for the tips. It turns out that the > files were indeed being > renamed to uppercase when I copied them across to > the compact flash storage > card using a PCMCIA card adaptor. It's weird - I > have no idea why that > happens. Anyway I then used Handyzip > (www.cnetx.com) to unzip the archive > on the Jornada itself (instead of unzipping the > archive on the PC and > copying it across), and that worked fine. I now > have Python up and > running - thanks again! > > Roy. ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From mmellor1@yahoo.com Thu Sep 19 20:59:21 2002 From: mmellor1@yahoo.com (Mike Mellor) Date: Thu, 19 Sep 2002 15:59:21 -0400 Subject: [PythonCE] Re: PythonCE digest, Vol 1 #73 - 7 msgs References: <20020919160020.22172.78831.Mailman@mail.python.org> <5.1.0.14.0.20020919185509.00b8f370@pop.iespana.es> Message-ID: <3D8A2C99.1070706@yahoo.com> Javier wrote: > Change your registry to reflect "Python.exe, -102" > > That shoudl work. > > Javier > Javier - Still didn't work. BTW my PDA is a Cassiopeia E-125 (WinCE 3.0). Thanks. Mike From toddp@OrangeImagineering.com Thu Sep 19 21:01:34 2002 From: toddp@OrangeImagineering.com (Todd Pinkerton) Date: Thu, 19 Sep 2002 16:01:34 -0400 Subject: [PythonCE] pdb ? Message-ID: Hi all,=20 When I load up pdb and try to run() something, the ceshell prompt flakes out on me; (pdb) prompt gets repeated over and over and over and... this doesn't occur in my linux python env, so I'm wondering if ceshell.py doesn't like having it's prompt messed with? Is this a known issue? It makes the debugger pretty useless.=20 thanks, -Todd -----Original Message----- From: Mike Mellor [mailto:mmellor1@yahoo.com]=20 Sent: Wednesday, September 18, 2002 9:07 PM To: pythonce@python.org Subject: [PythonCE] Install Questions I have installed Python CE 2.2 and it works great - I am currently using it to build simple models in SimPy. Here are my questions (probably old ones): How do I get the default icon? I have tried almost every combination I can think of without success. I moved the executable from the start menu to the windows folder, and renamed it python.exe. Is there any way to get around the problem of folder names with spaces in them (My Documents, Storage Card, Program Files)? Thanks. Mike =20 From bkc@murkworks.com Thu Sep 19 21:08:58 2002 From: bkc@murkworks.com (Brad Clements) Date: Thu, 19 Sep 2002 16:08:58 -0400 Subject: [PythonCE] pdb ? In-Reply-To: Message-ID: <3D89F6B8.14799.2E48E74C@localhost> On 19 Sep 2002 at 16:01, Todd Pinkerton wrote: > Hi all, > > When I load up pdb and try to run() something, the ceshell prompt flakes > out on me; (pdb) prompt gets repeated over and over and over and... > > this doesn't occur in my linux python env, so I'm wondering if > ceshell.py doesn't like having it's prompt messed with? Is this a known > issue? It makes the debugger pretty useless. ceshell emulates a console window. Unlike Linux, CE doesn't have a console window, so its emulated in Python. running pdb probably puts the interpretter into single step mode, which breaks the emulated console. The best solution is porting HapDebugger.. it's on my to-do, with everything else. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From mmellor1@yahoo.com Thu Sep 19 22:48:08 2002 From: mmellor1@yahoo.com (Mike Mellor) Date: Thu, 19 Sep 2002 17:48:08 -0400 Subject: [PythonCE] Re: PythonCE digest, Vol 1 #73 - 7 msgs In-Reply-To: <5.1.0.14.0.20020919185509.00b8f370@pop.iespana.es> References: <20020919160020.22172.78831.Mailman@mail.python.org> <5.1.0.14.0.20020919185509.00b8f370@pop.iespana.es> Message-ID: <20020919174808.56dcf290.mmellor1@yahoo.com> --=.HSWJRdu'J8AUm( Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Javier - My mistake, when I renamed "Python CE" python.exe, it actually got renamed to python.exe.exe . Once I fixed that I got the icons! Thanks! Mike --=.HSWJRdu'J8AUm( Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) iD8DBQE9ikYe6438uuwmv8IRApD3AJ43UFvZ1bZjQk0jVYBfzI5YYGnzzgCfS2m6 Yc8pFVuD3oIG87seedYrVgM= =3akO -----END PGP SIGNATURE----- --=.HSWJRdu'J8AUm(-- From rdev7@bigfoot.com Fri Sep 20 11:19:04 2002 From: rdev7@bigfoot.com (rdev7@bigfoot.com) Date: Fri, 20 Sep 2002 11:19:04 +0100 Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" References: <20020919183027.44712.qmail@web21108.mail.yahoo.com> Message-ID: <021401c2608f$265bdea0$9ea2bd3e@Roy001> Dear Telion, Thanks for the helpful tips! Just to clarify, in case anyone else faces the same problem - the capitalization of filenames does not seem to be a result of the zip program. When you unzip on Windows using Windows XP's embedded decompression program, or using Winzip, the filenames are all correctly extracted in lower case. In fact the problem occurs not when unzipping the archive, but subsequently when you try to copy the unzipped files across to a compact flash card. For some reason this leads to capitalization of the filenames on the flash card. Presumably the solutions to this are: (a) to rename the files manually once they are on the compact flash card, which would be a little tedious as there are many files to rename; (b) to unzip the zip archive on the Jornada itself using Handyzip (www.cnetx.com); or (c) possibly to use the PC-Jornada Serial/USB/Infrared connection to transfer the files might work, but I have not tried it as it would probably take a long time to transfer the ~6MB of files. As you suggested, coming up with a CAB file distribution would be helpful longer term solution, but I am sure that it's just one of many development priorities on this project! Hope that helps in case anyone runs into the same problem, and thanks again for your help and for the great software. Roy ----- Original Message ----- From: "Telion" To: Sent: Thursday, September 19, 2002 7:30 PM Subject: Re: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" > Great! > > I'm glad to hear that it worked. > > I don't know why, but same thing > happened to other people using Jordana 720. > I guess some unzip program (especially old one?) > copies everything in Upper case. > > Maybe another reason to consider using cab file. > > Let me know of bugs if you find some. > > > Telion > > PS. Try the new CmdPy22.exe if you like. > It's a minimal Python startup file. > And it works on default console. > > Finding right setting for it > could be a little tricky though. > (sys.path, sys.prefix, sys.argv are not set) > > > > --- rdev7@bigfoot.com wrote: > > Hi Telion > > > > Thanks a lot for the tips. It turns out that the > > files were indeed being > > renamed to uppercase when I copied them across to > > the compact flash storage > > card using a PCMCIA card adaptor. It's weird - I > > have no idea why that > > happens. Anyway I then used Handyzip > > (www.cnetx.com) to unzip the archive > > on the Jornada itself (instead of unzipping the > > archive on the PC and > > copying it across), and that worked fine. I now > > have Python up and > > running - thanks again! > > > > Roy. > > > > ===== > Telion > - telionce@yahoo.com - > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.yahoo.com > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce From telionce@yahoo.com Fri Sep 20 14:56:34 2002 From: telionce@yahoo.com (Telion) Date: Fri, 20 Sep 2002 06:56:34 -0700 (PDT) Subject: [PythonCE] pdb ? In-Reply-To: <3D89F6B8.14799.2E48E74C@localhost> Message-ID: <20020920135634.24889.qmail@web21104.mail.yahoo.com> I tried pdb on my Console version of Python. Loading was not problem. But when I tried pdb.help(), I saw... sts = os.system('${PAGER-more}.... HPC2000 version of PythonCE could handle os.system, but ENV variable and "more" part was bit too much. Nevertheless, by changing code here and there, pdb may run on PythonCE for HPC2000 if minishell.py + CmdPy22.exe combination is used. Maybe one of HPC2000 user can try that ... one day. Simply I can't do everything. I don't have time for everything and all, especially if you want it quick. Telion --- Brad Clements wrote: > > ceshell emulates a console window. Unlike Linux, CE > doesn't have a console window, > so its emulated in Python. > > running pdb probably puts the interpretter into > single step mode, which breaks the > emulated console. > > The best solution is porting HapDebugger.. it's on > my to-do, with everything else. > > > Brad Clements, bkc@murkworks.com > (315)268-1000 > http://www.murkworks.com > (315)268-9812 Fax > AOL-IM: BKClements > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From toddp@OrangeImagineering.com Fri Sep 20 15:05:14 2002 From: toddp@OrangeImagineering.com (Todd Pinkerton) Date: Fri, 20 Sep 2002 10:05:14 -0400 Subject: [PythonCE] pdb ? Message-ID: Hi Telion,=20 Thanks for your response. =20 No rush on pdb. Just trying to debug my xml/expat woes... speaking of which, did you do the expat port? I'm having some issues, wondering if you knew of any outstanding bugs there.=20 And what is minishell.py? It's not in the distro I have.=20 thanks,=20 -Todd -----Original Message----- From: Telion [mailto:telionce@yahoo.com]=20 Sent: Friday, September 20, 2002 9:57 AM To: PythonCE@python.org Subject: Re: [PythonCE] pdb ? I tried pdb on my Console version of Python. Loading was not problem. But when I tried pdb.help(), I saw... sts =3D os.system('${PAGER-more}.... HPC2000 version of PythonCE could handle os.system,=20 but ENV variable and "more" part was bit too much. Nevertheless, by changing code here and there, pdb may run on PythonCE for HPC2000 if minishell.py + CmdPy22.exe combination is used.=20 Maybe one of HPC2000 user can try that ... one day. Simply I can't do everything. I don't have time for everything and all, especially if you want it quick. Telion --- Brad Clements wrote: >=20 > ceshell emulates a console window. Unlike Linux, CE > doesn't have a console window, > so its emulated in Python. >=20 > running pdb probably puts the interpretter into > single step mode, which breaks the > emulated console. >=20 > The best solution is porting HapDebugger.. it's on > my to-do, with everything else. >=20 >=20 > Brad Clements, bkc@murkworks.com =20 > (315)268-1000 > http://www.murkworks.com =20 > (315)268-9812 Fax > AOL-IM: BKClements >=20 >=20 > _______________________________________________ > PythonCE mailing list > PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce =3D=3D=3D=3D=3D Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com _______________________________________________ PythonCE mailing list PythonCE@python.org http://mail.python.org/mailman/listinfo/pythonce From telionce@yahoo.com Fri Sep 20 15:30:48 2002 From: telionce@yahoo.com (Telion) Date: Fri, 20 Sep 2002 07:30:48 -0700 (PDT) Subject: [PythonCE] Newbie error installing PythonCE22 on Jornada 720: "No module named ceshell" In-Reply-To: <021401c2608f$265bdea0$9ea2bd3e@Roy001> Message-ID: <20020920143048.27985.qmail@web21102.mail.yahoo.com> --- rdev7@bigfoot.com wrote: > Dear Telion, > > Thanks for the helpful tips! > > Just to clarify, in case anyone else faces the same > problem - the > capitalization of filenames does not seem to be a > result of the zip program. > When you unzip on Windows using Windows XP's > embedded decompression program, > or using Winzip, the filenames are all correctly > extracted in lower case. > > In fact the problem occurs not when unzipping the > archive, but subsequently > when you try to copy the unzipped files across to a > compact flash card. For > some reason this leads to capitalization of the > filenames on the flash card. Thank you Roy. I will specify this in Readme file. > Presumably the solutions to this are: > (a) to rename > the files manually once > they are on the compact flash card, which would be a > little tedious as there > are many files to rename; I would reject this solution. I know that someone has done this, though. > (b) to unzip the zip > archive on the Jornada itself > using Handyzip (www.cnetx.com); or There are other unzip on your HPC/PPC/PsPC programs, too. Pocket unzip is one. Another one is Xacrett http://www.geocities.com/s_k_s_k_s_kru/index.html But this may require lots of free memory. > (c) possibly to > use the PC-Jornada > Serial/USB/Infrared connection to transfer the files > might work, but I have > not tried it as it would probably take a long time > to transfer the ~6MB of > files. If your CE is connected via Lan, HPC user may use your CMD.EXE. >From Start menu, Run, and type "cmd" and enter. You will see the CMD.EXE console. (You know this alredy, I guess) There, type "dir \\desktop\" I mean type in using the computer name of the desktop machine. If your MS network Folder sharing is enabled, and the Disk is set for sharing, you will see the Disks of desktop. So, you can copy from desktop to HPC by simply using copy command. > copy \\desktop\diskname\dirname\*.* \HPC-dir You can do similar thing using Explorer. Type \\computername-for-desktop\diskname\ as the directory address, and you can browse desktop disks from HPC very easily. > > As you suggested, coming up with a CAB file > distribution would be helpful > longer term solution, but I am sure that it's just > one of many development > priorities on this project! I'm seriously considering about this. But I'm a newbie myself for developping software for windows, and I don't know .inf file format yet. If someone sen me a .inf example for pythonCE distro, probably I can just modify directories and make cab within a minutes. I will ask about this to Javier, since he knows very well in these area, among other. So, in several days, you will see cab file, if everything goes well. > > Hope that helps in case anyone runs into the same > problem, and thanks again > for your help and for the great software. > > Roy I'm sure it does. I run search on Google and other search engine every time I got in mess. And sure enough, I find one of these messages. I would like to ask you one thing. When you copied files to flash card, which software did you use? I mean, did you do that with Explorer, or other stuff? Because that is the real cause. And you may encounter similar problel in other occasion. In other words, if you correct that software or configration, copying files to flash card would not be a problem for Python installation. Anyway, I'll make cab, but keep zip, as well. Personally, I like zip distro a little better. ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From telionce@yahoo.com Fri Sep 20 15:56:15 2002 From: telionce@yahoo.com (Telion) Date: Fri, 20 Sep 2002 07:56:15 -0700 (PDT) Subject: [PythonCE] pdb ? In-Reply-To: Message-ID: <20020920145615.36192.qmail@web21108.mail.yahoo.com> Hi Todd, --- Todd Pinkerton wrote: > Hi Telion, > > > Thanks for your response. > > No rush on pdb. Just trying to debug my xml/expat > woes... > > speaking of which, did you do the expat port? I'm > having some issues, > wondering if you knew of any outstanding bugs there. No. I didn't have time for that, yet. I did not even ask for the source, yet. But I will do that sometime. > And what is minishell.py? It's not in the distro I > have. > > thanks, > > > -Todd That one is in my distro for HPC2000. Because HPC comes with the console similar to the DOS-indow of Win9x/NT/2K, I made (accidently) PythonCE that runs in it. ---CmdPy22.exe minishell.py is something similar to pcceshell.py that offer Python Interpreter command-ine-loop. So, naturally, it's not applicable for PPC. I know that you may have console window on PPC, though. There are a few way (not one) to do that. I can give URL for these things, but I'm not willing to take care of this issue by myself. I'm busy enough right now. And Brad seems to be busy, too. So, to get things done, definitly we need more people with eVC setup for Python developpement. Probably, Javier may be able to help us. He knows a lot better than me, too. I'm still hoping to gather all the works already done for Python CE. I know that other than expat, win32reg and win32db is already available for PPC. I want bring these for HPC. At the same time, calldll module would be very usefull for PPC users, too. So, I want better communication among us, and a kind of central resource deposit for all CE based Python stuff, FAQ, thigs like that. But again. we need a few more people for setting up FTP, CVS, wiki, or other sort of things, and Maintain these. Another thing I'm dreaming about is, search capability on this mailing list. (Is it already there? I didn't find it) ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From uku@snafu.de Sat Sep 21 06:10:18 2002 From: uku@snafu.de (Ulrich Kuestner) Date: Sat, 21 Sep 2002 07:10:18 +0200 Subject: [PythonCE] PythonCE2.2 and Tk/Tkinter? Message-ID: Thank you for the encouraging answer. Unfortunately, I am a user, not a developer, and compiling/linking/porting is way beyond my abilities. So I am hoping somebody can do it some time. Thank you for your efforts! Ulrich ---Telion wrote: >I thought about this, too. >Since Tcl/Tk is already ported, and Perl/tk >seems to work, why not Python tkinter? > >But I do not know well in that area, much less than >other things, and I had many other priority. >So I didn't totally forget about this, but I was >hoping that someone else would port it. > >Why don't you give it a try? >Compile _tkinter and related files (I don't know >which) >and see what have to be done. > >By linking with Rainer's celib (only where it is >needed), either statically or dynamic, >I think there is a good chance of success. >I would be glad to see that! > >===== >Telion >- telionce@yahoo.com - --- Ulrich Kuestner wrote: > I would like to run the Leo Outliner on my Jornada > 720. > > To quote: > "Leo is portable. Leo.py is 100% pure Python and > will run on any platform > supporting Python and Tk/tcl" > > Is this possible with PythonCE and Rainer Keuchel's > Tcl/Tk 8.4a2 for WinCE? > Any suggestions how to go about it would be > gratefully received. > > Ulrich From telionce@yahoo.com Mon Sep 23 18:15:36 2002 From: telionce@yahoo.com (Telion) Date: Mon, 23 Sep 2002 10:15:36 -0700 (PDT) Subject: [PythonCE] PythonCE2.2 and Tk/Tkinter? In-Reply-To: Message-ID: <20020923171536.75346.qmail@web21103.mail.yahoo.com> --- Ulrich Kuestner wrote: > Thank you for the encouraging answer. > Unfortunately, I am a user, not a developer, and > compiling/linking/porting is > way beyond my abilities. > So I am hoping somebody can do it some time. > Thank you for your efforts! > > Ulrich Well.. until last spring, I knew nothing about Python, nothing about CE, practically nothing about Windows programming. I just wanted to use a extension module named "calldll". And I was hoping that someone would do it for me. But I understood; I would not get it unless I did it by myself. That's how I started to install eVC, trying to build just that simple small extension....without much success, and finally ended up in building Python2.2 itself. So, I was a simple user much like you. Probably, I knew much less about Python at that moment than you know now. Anyway, if you want to try, eVC is FREE, Windows CE3.0 is one of ONLY MS operating system source code is available. If you have eVC, it's relatively easy to make extension module or modify python itself. That means, NO MORE waiting and hoping. Surely, there are lots of things to learn, and there would be unpleasant surprises of some sorts. Yet it is very rewording in terms of FREEDOM. Maybe you can learn about TK and its dll. Then, use edll.py to test some of its API from Python. Maybe tkinter can be emulated (if you want) by edll.py + Python code only, without touching C if you don't like C. I'm just pushing a little because I would be happy to see more people with Python builing capability :). ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From bkc@murkworks.com Fri Sep 27 15:21:24 2002 From: bkc@murkworks.com (Brad Clements) Date: Fri, 27 Sep 2002 10:21:24 -0400 Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <000501c26609$1b1d9ea0$5401a8c0@martinstest> Message-ID: <3D94311B.7464.E1D5E10@localhost> On 27 Sep 2002 at 11:34, Martin Strubel wrote: > Hello, > > I've downloaded your Python2.2 StrongARM binary release, but couldn't get > it running on my HP Jornada 710 (Win CE 3.0) due to missing libraries > (coredll.dll, aygshell.dll) which seem to be no longer existant on 3.0. Now > I was wondering whether you disclose the sources as well, since I'd like to > try myself on a port to CE 3.0. > > Looking forward to your answer & best regards, > Martin, I'm answering you and cc'ing the PythonCE list so this goes in the archive. 1. Please do not send requests to support@murkworks.com.. Although MurkWorks is hosting a python-ce website, it is not in any way involved with the port.. that's a pet project of mine 2. I have posted my "build tree", you can download it via FTP from ftp://ftp.murkworks.com/pub/beta/pyceall3.zip It's 39 megabytes! 3. Is the 710 a Pocket PC? It works fine on my iPaQ.. uh, that's PC 2002 I guess. Which came first, 3.0 or 2002? 4. We're moving towards branching the main python CVS or creating a new SF project to put our stuff in. Stay tuned to the list.. I'm working on python-dev to determine the best solution to the errno issue, which is what has been holding up integrating CE patches back into core. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From bkc@murkworks.com Fri Sep 27 16:10:50 2002 From: bkc@murkworks.com (Brad Clements) Date: Fri, 27 Sep 2002 11:10:50 -0400 Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <000a01c26637$24f73390$5401a8c0@martinstest> Message-ID: <3D943CB1.30223.E4AA005@localhost> On 27 Sep 2002 at 17:04, Martin Strubel wrote: > > thanks for your quick reply and the source link. Will try this evening! Okay, but include the list in your post/reply. > > ftp://ftp.murkworks.com/pub/beta/pyceall3.zip oops, its ftp://ftp.murkworks.com/beta/pyceall3.zip > I'm afraid, I have no idea - got the Box 2 days ago - I think it exists > since 2000, so I'd rather vote for 3.0 being first.. The PC is a hand held > PC with a real keyboard, though made for baby fingers. Ah, so it's an HPC running CE 3.0, not a PPC platform. You will need to recompile using EVT. > I hope to find the time to contribute something. Will try and see whether > it compiles at least without these obscure CE2.11 libraries. It's not CE 2.11, its 3.0. So use Microsoft EVT, not the older "C for Windows CE" plug in for studio. I think even the binaries should work as-is, but use ceshell.py instead of pcceshell.py Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From bkc@murkworks.com Fri Sep 27 16:16:24 2002 From: bkc@murkworks.com (Brad Clements) Date: Fri, 27 Sep 2002 11:16:24 -0400 Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <3D943CB1.30223.E4AA005@localhost> References: <000a01c26637$24f73390$5401a8c0@martinstest> Message-ID: <3D943E00.18158.E4FBA8C@localhost> On 27 Sep 2002 at 11:10, Brad Clements wrote: > It's not CE 2.11, its 3.0. So use Microsoft EVT, not the older "C for > Windows CE" plug in for studio. > > I think even the binaries should work as-is, but use ceshell.py instead of > pcceshell.py > Oh wait, the binaries won't work because of the missing libs. You will need to recompile and maybe remove references to command-bar stuff in win32gui. Hmm, would be nice to have a single binary that works on HPC and PPC platforms. Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From telionce@yahoo.com Fri Sep 27 18:22:29 2002 From: telionce@yahoo.com (Telion) Date: Fri, 27 Sep 2002 10:22:29 -0700 (PDT) Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <3D943E00.18158.E4FBA8C@localhost> Message-ID: <20020927172229.96580.qmail@web21107.mail.yahoo.com> To make one binary that works for HPC and PPC, you can put all PPC specific code into separate dll, and load it at run time. Acutually, if we port for CE2.11 HPCPro, and then add or modify for PsPC, PPC and CE3.0 specific stuff, things could go much easier. Telion --- Brad Clements wrote: > On 27 Sep 2002 at 11:10, Brad Clements wrote: > > > It's not CE 2.11, its 3.0. So use Microsoft EVT, > not the older "C for > > Windows CE" plug in for studio. > > > > I think even the binaries should work as-is, but > use ceshell.py instead of > > pcceshell.py > > > > Oh wait, the binaries won't work because of the > missing libs. You will need to recompile > and maybe remove references to command-bar stuff in > win32gui. > > Hmm, would be nice to have a single binary that > works on HPC and PPC platforms. > > > Brad Clements, bkc@murkworks.com > (315)268-1000 > http://www.murkworks.com > (315)268-9812 Fax > AOL-IM: BKClements > > > _______________________________________________ > PythonCE mailing list > PythonCE@python.org > http://mail.python.org/mailman/listinfo/pythonce ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com From strubel@photonfocus.com Mon Sep 30 09:25:55 2002 From: strubel@photonfocus.com (Martin Strubel) Date: Mon, 30 Sep 2002 10:25:55 +0200 Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) References: <3D943CB1.30223.E4AA005@localhost> Message-ID: <001601c2685a$ffc8f2e0$5401a8c0@martinstest> Hi Brad, >... > > Ah, so it's an HPC running CE 3.0, not a PPC platform. You will need to recompile > using EVT. > > > I hope to find the time to contribute something. Will try and see whether > > it compiles at least without these obscure CE2.11 libraries. > > It's not CE 2.11, its 3.0. So use Microsoft EVT, not the older "C for Windows CE" plug > in for studio. > > I think even the binaries should work as-is, but use ceshell.py instead of pcceshell.py > The whole tree compiled almost fine with EVT 3.0, but I had to compile Modules/main.c (Py_Main) with minor changes to get the original python.c to run (It doesn't recognize the CE console as a tty though, so it needs a "-i" to run interactively. The win32*.pyd's won't run or compile, since that (to me still obscure) aygshell library is missing. I'm sure one of you guru's out there knows more about it :-) As I'm new to the list, please forgive me the following questions (if they were asked be4): - Did someone manage to port tkinter, PIL, or even Mesa/PyGL ? - Has someone written a replacement for aygshell on HPC2000 boxes (just to get older programs to run) ? Cheers, - Strubi | Martin Strubel // Photonfocus::SoftwareDeveloper | | Photonfocus AG, Switzerland Tel. +41 55 4510132 | | --------------------------------------------------------------------- | | VISIT US AS THIS YEAR'S VISION 2002! | | 12.-14.11.2002 Hall 5.0, Stand 215 | From bkc@murkworks.com Mon Sep 30 13:54:15 2002 From: bkc@murkworks.com (Brad Clements) Date: Mon, 30 Sep 2002 08:54:15 -0400 Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <001601c2685a$ffc8f2e0$5401a8c0@martinstest> Message-ID: <3D981120.13888.C9B4652@localhost> On 30 Sep 2002 at 10:25, Martin Strubel wrote: > "-i" to run interactively. The win32*.pyd's won't run or compile, since > that (to me still obscure) aygshell library is missing. I'm sure one of you > guru's out there knows more about it :-) > aygshell is being pulled in by the PPC specific command bar functionality. You should probably comment that out of win32gui and rebuild without the aygshell.lib in the linker list. Probably easiest to remove the .lib, link, see what unresolved externs you have and comment them out of win32gui Brad Clements, bkc@murkworks.com (315)268-1000 http://www.murkworks.com (315)268-9812 Fax AOL-IM: BKClements From telionce@yahoo.com Mon Sep 30 15:11:19 2002 From: telionce@yahoo.com (Telion) Date: Mon, 30 Sep 2002 07:11:19 -0700 (PDT) Subject: [PythonCE] Re: Python and Win CE 3.0 (ARM) In-Reply-To: <001601c2685a$ffc8f2e0$5401a8c0@martinstest> Message-ID: <20020930141119.1394.qmail@web21104.mail.yahoo.com> Martin, I have already done what Brad is telling you to do about win32gui module. I can send you modified source if you want. Furthermore, if Jordana 710 is HPC2000, the binary I made may run without modification. http://pages.ccapcable.com/lac/PythonCE.html ===== Telion - telionce@yahoo.com - __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com