[PythonCE] xml on pocketpc

Ajay abra9823 at mail.usyd.edu.au
Fri Sep 3 16:13:59 CEST 2004


hi!


Quoting Isr Gish <isrgish at fastem.com>:

> Hi Ajay,
>
> Ajay Wrote:
>    >hi!
>    >
>    >yes i tried
>    >
>    >>>>from _xmlplus.dom.ext.reader import Sax2
>    >Traceback (most recent call last):
>    >   File "\Program Files\Python\pcceshell\interact.py line 58 in
> Interact
>    >          exec codeOb in locals
>    >   File "<input>", line 1, in ?
>    >   File "\Program Files\Python\_xmlplus\dom\ext\reader\__init__.py",
> line
>    >14, in ?
>    >          import string, urllib2, urlparse, cString, os
>    >   File "\Program Files\Python\lib\urllib2.py", line 91, in ?
>    >          import httplib
>    >   File "\Program Files\Python\lib\httplib.py", line 70, in ?
>    >          import mimetools
>    >   File "\Program Files\Python\lib\mimetools.py", line 6, in ?
>    >          import tempfile
>    >AttributeError: 'module' object has no attribute 'O_RDWR'
>
> When I try the above import it works fine.
> I'm using the newest version of python 2.3.4.
> I think you may be using an older version. In the older versions there
> wasn't the attribute 'O_RDWR'. In the newest version its there.

is that the pythonce2.3.4 available from http://fore.validus.com/~kashtan/
i remember trying the package with that version of python and i think i got
an application error. i'll give it another shot
>
>
>    >
>    >and:
>    >>>>from _xmlplus.dom.minidom import parse
>    >>>>d=parse('\um\proxy\p.xml')
>    >results in the shell exiting without any errors etc
>
> It seems that the pyexpat.pyd file in _xmlplus\parsers\ is where the
> problem is. when the program tries to use the parser that was created
> with  pyepat.ParserCreate thats when it exits without any errors.
> Maybe we need to compile it again, or atleast see whats in there. I
> don't know from where to get the source code for it.

would this be the same as the pyexpat that is present in the regular python
windows distribution.

i am going to try and run the whole thing from c using msxml. hopefully
that should work. if i knew more about porting existing python packages
for winCE, i'd try compiling pyexpat myself, but i have no expertise in
that area :(

thanks

cheers

>
> All the best,
> Good luck
> Isr
>
>    >
>    >thanks
>    >
>    >cheers
>    >
>    >Quoting Isr Gish <isrgish at fastem.com>:
>    >
>    >> I understand thatbto be from the re>ular liberary. What I'm asking
> is if
>    >> you tried the PyXml liberary from:
>    >> http://debris.demon.nl/PythonCE-2.3
>    >>
>    >> All the best,
>    >> Isr
>    >>
>    >> -----Original Message-----
>    >>    >From: "Ajay"<abra9823 at mail.usyd.edu.au>
>    >>    >Sent: 9/2/04 7:53:54 PM
>    >>    >To: "Isr Gish"<isrgish at fastem.com>
>    >>    >Cc: "johnny at debris.demon.nl"<johnny at debris.demon.nl>,
>    >> "pythonce at python.org"<pythonce at python.org>
>    >>    >Subject: Re: [PythonCE] xml on pocketpc
>    >>    >
>    >>    >hi!
>    >>    >
>    >>    >i tried the statement:
>    >>    >from xml.dom.minidom import parse
>    >>    >d1 = parse('\um\proxy\p.xml')
>    >>    >this resulted in the shell terminating without displaying any
>    >> errors. the
>    >>    >shell just disappeared
>    >>    >
>    >>    >when i tried the statement:
>    >>    >from xml.dom.ext.reader import Sax2
>    >>    >i received an error:
>    >>    >'module' object has no attribute 'O_RDWR'
>    >>    >
>    >>    >thanks
>    >>    >
>    >>    >
>    >>    >Quoting Isr Gish <isrgish at fastem.com>:
>    >>    >
>    >>    >> What did you try in the PyXml, and what error did you get.
>    >>    >>
>    >>    >> Isr
>    >>    >>
>    >>    >> -----Original Message-----
>    >>    >>    >From: "Ajay"<abra9823 at mail.usyd.edu.au>
>    >>    >>    >Sent: 9/2/04 1:38:25 AM
>    >>    >>    >To: "Isr Gish"<isrgish at fastem.com>
>    >>    >>    >Cc: "johnny at debris.demon.nl"<johnny at debris.demon.nl>,
>    >>    >> "pythonce at python.org"<pythonce at python.org>
>    >>    >>    >Subject: Re: [PythonCE] xml on pocketpc
>    >>    >>      >hi!
>    >>    >>    >
>    >>    >>    >It still doesn't work.
>    >>    >>    >Doing -
>    >>    >>    >from xml.dom.minidom import parse
>    >>    >>    >dom1 = parse('\um\proxy\p.xml')
>    >>    >>    >
>    >>    >>    >results in the Python.exe shell terminating
>    >>    >>    >
>    >>    >>    >doing-
>    >>    >>    >from xml.dom.ext.reader import Sax2
>    >>    >>    >gives an error - module object has no attribute 'O-RDWR'
>    >>    >>    >
>    >>    >>    >cheers
>    >>    >>    >
>    >>    >>    >
>    >>    >>    >Quoting Isr Gish <isrgish at fastem.com>:
>    >>    >>    >
>    >>    >>    >> Ajay wrote:
>    >>    >>    >>      >how would you run the python version listed on
> the
>    >> website.
>    >>    >> I
>    >>    >>    >> copied them
>    >>    >>    >>    >over but when i click on the python executable i
> get an
>    >> error
>    >>    >> -
>    >>    >>    >> "'python'
>    >>    >>    >>    >is not a valid Pocket PC application". and running
>    >>    >>    >> \pcceshell\runcode or
>    >>    >>    >>    >\pcceshell\simpleshell throws errors saying -
> "couldn't
>    >> find
>    >>    >> the
>    >>    >>    >>    >application to run them"
>    >>    >>    >> There was a problem with the exe file.
>    >>    >>    >> Here is a good one that should work.
>    >>    >>    >>
>    >>    >>    >> All the best,
>    >>    >>    >> Isr
>    >>    >>    >>
>    >>    >>    >>
>    >>    >>    >>    >
>    >>    >>    >>    >thanks
>    >>    >>    >>    >
>    >>    >>    >>    >cheers
>    >>    >>    >>    >
>    >>    >>    >>    >
>    >>    >>    >>    >
>    >>    >>    >>    >
>    >>    >>    >>    >>
>    >>    >>    >>    >> Cheers,
>    >>    >>    >>    >>
>    >>    >>    >>    >> Guido
>    >>    >>    >>    >>
>    >>    >>    >>    >
>    >>    >>    >>    >
>    >>    >>    >>
>    >>    >>
> >----------------------------------------------------------------
>    >>    >>    >>    >This message was sent using IMP, the Internet
> Messaging
>    >>    >> Program.
>    >>    >>    >>    >_______________________________________________
>    >>    >>    >>    >PythonCE mailing list
>    >>    >>    >>    >PythonCE at python.org
>    >>    >>    >>    >http://mail.python.org/mailman/listinfo/pythonce
>    >>    >>    >>
>    >>    >>    >
>    >>    >>    >
>    >>    >>
>    >> >----------------------------------------------------------------
>    >>    >>    >This message was sent using IMP, the Internet Messaging
>    >> Program.
>    >>    >>    >
>    >>    >>
>    >>    >>
>    >>    >
>    >>    >
>    >>
> >----------------------------------------------------------------
>    >>    >This message was sent using IMP, the Internet Messaging
> Program.
>    >>
>    >>
>    >
>    >
>    >----------------------------------------------------------------
>    >This message was sent using IMP, the Internet Messaging Program.
>
>


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


More information about the PythonCE mailing list