Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-08-05 Thread Alexandre Delattre

 Success!
 After manually copying the ...\ppygui-0.7\ppygui\*.py to a newly
 created $PYTHONHOME\Lib\site-packages\ppygui the demo application
 started (pretty damn fast!) and displayed correctly (as far as I
 know).

Glad to here that works :)

 Now... Do I need the Tkinter pack to use ppygui? I did not find any
 reference to that, and I am eager to trim down the Python
 distribution.

No, ppygui has no external dependence besides PythonCE and the system 
dlls that comes out of the box on wince devices. A byte-code only 
distribution of ppygui is around 250 kB.


 I'll be having problems creating a distribution pack for
 installing on the devices we'll be using.

These days I've been working on a script that helps producing easily 
.cab for pythonce applications and libraries. Hopefully I'll polish and 
publish it in the week.


 Hmm... I wonder if I could be converted into a Python Head.

You mean a python egg ?

Also, I remember from the time I played with evc++ that PythonCE is 
targeted for armv4 processors. From what I read XScale is armv5 but is 
supposed to be backward compatible with armv4.
Maybe the .cab installer check the processor type id without taking into 
account backward-compatibility stuff ?


I think you don't have to hurry on recompilation yet if you're able to 
make work what you need for your project. Also I'm afraid only Visual 
Studio 2005 allow to compile for armv5, in case you really want to 
recompile something optimized for your architecture.



Alexandre
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-31 Thread Lachezar Dobrev
  Update follows...

  People on this list were quite helpful in referencing a couple of
tools for Pocket PC CAB file mangling.
  1. I was able to extract the Python CE CAB file an uploaded the
extracted files to my device. The python executable had an icon, and I
was able to run it. It seemed to work. I was able to execute a few
minor tests my way: a few dir()-s, a few imports, a few Base64
encoding and decoding operations, and it seemed to work fine. Until I
tried to import Tkinter:

  import sys
  import Tkinter
 Traceback (most recent call last):
   File 
 C:\devl\release\PythonCE-2.5-20061219\Python-2.5-wince\Lib\lib-tk\Tkinter.py,
  line 38, in module
 RuntimeError: Could not find CeLib DLL
 

  Which led me to believe something is not right.
  Has anyone seen that? Does anyone know how to fix that?

  A similar error occurs when I try to install the PocketPyGui
(ppygui-0.7) which I thought I would use for the GUI part. However the
exception then has a bit longer stack trace (about 10 frames).

  2. Reading the documentation on the pocketpc-cab and lcab utilities
I found something that rang a bell:

Appendix A: a list of processor architectures
...
1824 - ARM 720
2080 - ARM 820
2336 - ARM 920
2577 - StrongARM
...

My device says in the System Properties: 'Intel, ARM920T-PXA27x'
Could this be the culprit of my problems? Is ARM920 compatible
with Strong ARM? Should I give-up on trying to install the current
version and try to compile a version for my device personally?

  I also noted that the CAB files state, that the allowed OS version
is 4.00 up to 5.00, shouldn't it be up to 5.99 or something? Not that
my device has Windows 5.1 or anything, but I saw a the Smart Phone
version note a MAX OS Version of 5.99...

  I hope I get more feed-back on the subject.
  I feel I am getting closer, but I am neither a Mobile-Device expert,
nor a Python expert. I am fairly new to this stuff.
___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Jared Forsyth
Firstly, the Active Sync method merely automates the copy .CAB/install
process--you're not missing out in anything.
The only problem I can thing of is that of your processor: your device runs
XSale, while I believe the .CABs are compiled for ARM

On Mon, Jul 28, 2008 at 4:27 AM, Lachezar Dobrev [EMAIL PROTECTED] wrote:

  * Apologies for the resending, the first message did not go through. *

  Hello list members.
  Recently our project (Java based) grew into the mobile devices range.
  However the devices had a serious flaw (for us): the Windows CE
 operating system.
  For some time we were able to develop based in the Pocket IE
 available on the device and use an AJAX+Server-Side approach to do our
 work.

  Recently we hit some use cases where this approach would not work,
 or would need serious development in order to provide the needed
 interaction requirements.

  We could not find a Java VM to suit our needs, and development using
 Microsoft's development frame is a No-No for us.

  That is why I undertook the challenge to evaluate Python based
 development.

  Here I took my first blow... The files on the SourceForge site did
 not install on the device.
  The device is: http://www.mobilecompia.co.kr/en/sub01/sub01_1.php
  It features Windows CE 5.0 on an Intel XScale PXA processor with a
 number of crucial features for our application (WLAN, WWAN, Barcode
 scanner).

  Since we are working with Linux/BSD workstations I was unable to try
 the Active Sync method, and was forced to download the CAB files,
 however when trying to install the application I get a 'Setup Failed'
 message:

   The application cannot run on this device type.
   Please install the application specific to this device type.

  This is with both CAB files:
  PythonCE-25-20061219.PPC2003_ARM.CAB
   and
  PythonCE.WM.CAB

  I tried also the 'Pocket PC Python' from
 http://www.murkworks.com/Research/Python/PocketPCPython/Overview
  That WORKS! But since it's Python 2.2 the GUI toolkits refuse to
 work (no annotations?).

  Can you please advise further?
 ___
 PythonCE mailing list
 PythonCE@python.org
 http://mail.python.org/mailman/listinfo/pythonce

___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce


Re: [PythonCE] Python CE on a Intel XScale industrial device.

2008-07-28 Thread Alex Mandel
The confusion about activesync is that if the program had been compiled 
for multiple architectures then the processor specific cabs would all be 
inside the exe installer and activesync would select the appropriate one 
for the particular device. It sounds like you're going to need to figure 
out a way to compile for the Xscale without the use of Visual Studio.


As Jared suggested in another thread, try http://cegcc.sourceforge.net/ 
or maybe http://www.ronetix.at/software.html


I'm not sure on the difference between ARM and XScale but maybe VS left 
out something your specific devices need that isn't on other devices.


Alex

Lachezar Dobrev wrote:

  Well...

  First thanks for the Active Sync explanation. Reading the mailing
list archives I was left with the impression, that Active Sync was
actually translating the application for the architecture of the
connected device.
  So I found a friend, tricked him into installing Active Sync, and
trying to install the .EXE distribution files. Both the ARM and the
SmartPhone versions failed to install with a similar message.

  Another thing I am not grasping is the difference between ARM,
StrongARM and XScale. Probably wrong, but I thought XScale was
backwards compatible with the ARM processors, however a quick tour
around the Wikipedia hints otherwise...

  Pardon my bluntness, but until recently I had Java on every platform
I had in mind...
  Can someone compile a Python version for an XScale processor? How
does this work? Do I need a Windows host? Is the Python CE compilable
with a GNU toolkit set?

  Like I've said Windows based development is a No-No for us.

2008/7/28, Jared Forsyth [EMAIL PROTECTED]:

Firstly, the Active Sync method merely automates the copy .CAB/install
process--you're not missing out in anything.
The only problem I can thing of is that of your processor: your device runs
XSale, while I believe the .CABs are compiled for ARM



___
PythonCE mailing list
PythonCE@python.org
http://mail.python.org/mailman/listinfo/pythonce