Re: Import inbox error
"Martin Echols" <[email protected]> Thu, 10 Dec 2009 09:03:32 -0500
| Newsgroups | gmane.comp.python.windows-ce |
|---|---|
| Message-ID | <003701ca79a1$8f0622c0$ad126840$@net> |
This is a multi-part message in MIME format. --===============1181105771== Content-type: multipart/alternative; boundary="----=_NextPart_000_0038_01CA7977.A6301AC0" Content-language: en-us This is a multi-part message in MIME format. ------=_NextPart_000_0038_01CA7977.A6301AC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi Mani, =20 I am not sure if this would help, but the =91ctypes=92 or the = =91comtypes=92 library for pythonce on windows ce PDAs might help you out. It allows you to = access dll libraries. If you are trying to access email on the wince device = check out: http://pythonce.sourceforge.net/Wikka/PIMs which shows you how to = use a module called pypoom to access mail resources. Regards, Martin =20 From: [email protected] [mailto:[email protected]] On = Behalf Of mani kandan Sent: Wednesday, December 09, 2009 11:53 PM To: [email protected] Subject: [PythonCE] Import inbox error =20 =20 =20 On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 = <[email protected]> wrote: Hi, =20 =20 =20 >>"inbox" is also a Python extension for S60, so you cannot use it with PythonCE just like that. >>Sorry, this is probably not the answer you were looking for, but the = sad truth. yeah Sini this is a sad truth for me.But can you please suggest me any = other extension of pythonCE that can be used to access the sms inbox. =20 On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis <[email protected] <mailto:[email protected]>> wrote: Hi Mani It looks like you are trying to import a Symbian module on a Windows CE platform. I think "appuifw" is a PYS60 module (python wrapper for Symbian = Series 60 devices) You should look for another GUI for a Windows CE device. I know Tkinter works but their are other efforts for CE. regards mark On Tue, Dec 8, 2009 at 10:40 PM, mani kandan <[email protected] <mailto:[email protected]>> wrote: > I am new to this forum and pythonCE please help me with this = issue.I > downloaded and installed pythonCE on my device and when i tried to run the > program > > <code> > import inbox, appuifw > > box =3D inbox.Inbox() > query =3D appuifw.query(u"Search for:", "text").lower() > > hits =3D [] > ids =3D [] > for sms_id in box.sms_messages(): > msg =3D box.content(sms_id).lower() > if msg.find(query) !=3D -1: > hits.append(msg[:25]) > ids.append(sms_id) > > index =3D appuifw.selection_list(hits, 1) > if index >=3D 0: > appuifw.note(box.content(ids[index])) > </code> > > it shows me Import error:No module named inbox. > > I not able to figure out how to include the particular file. > > -- > ALWAYS KEEP SMILING > > FOR U EVER, > > G.MANIKANDAN > > _______________________________________________ > PythonCE mailing list > [email protected] <mailto:[email protected]> > http://mail.python.org/mailman/listinfo/pythonce > > --=20 ALWAYS KEEP SMILING FOR U EVER, G.MANIKANDAN ------------------------------------------------------------------------ _______________________________________________ PythonCE mailing list [email protected] http://mail.python.org/mailman/listinfo/pythonce =20 --=20 ALWAYS KEEP SMILING=20 FOR U EVER, =20 G.MANIKANDAN --=20 ALWAYS KEEP SMILING=20 FOR U EVER, =20 G.MANIKANDAN ------=_NextPart_000_0038_01CA7977.A6301AC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" = xmlns:o=3D"urn:schemas-microsoft-com:office:office" = xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" = xmlns=3D"http://www.w3.org/TR/REC-html40"> <head> <meta http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <meta name=3DGenerator content=3D"Microsoft Word 12 (filtered medium)"> <style> <!-- /* Font Definitions */ @font-face {font-family:"Cambria Math"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0in; margin-bottom:.0001pt; font-size:12.0pt; font-family:"Times New Roman","serif";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} span.EmailStyle17 {mso-style-type:personal-reply; font-family:"Calibri","sans-serif"; color:#1F497D;} .MsoChpDefault {mso-style-type:export-only;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.Section1 {page:Section1;} --> </style> <!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--> </head> <body lang=3DEN-US link=3Dblue vlink=3Dpurple> <div class=3DSection1> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Hi Mani,<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>I am not sure if this would help, but the = ‘ctypes’ or the ‘comtypes’ library for pythonce on windows ce PDAs might = help you out. It allows you to access dll libraries. If you are trying to = access email on the wince device check out: <a href=3D"http://pythonce.sourceforge.net/Wikka/PIMs">http://pythonce.sourc= eforge.net/Wikka/PIMs</a> which shows you how to use a module called pypoom to access mail = resources.<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'>Regards, Martin<o:p></o:p></span></p> <p class=3DMsoNormal><span = style=3D'font-size:11.0pt;font-family:"Calibri","sans-serif"; color:#1F497D'><o:p> </o:p></span></p> <div style=3D'border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt = 0in 0in 0in'> <p class=3DMsoNormal><b><span = style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span>= </b><span style=3D'font-size:10.0pt;font-family:"Tahoma","sans-serif"'> = [email protected] [mailto:[email protected]] <b>On = Behalf Of </b>mani kandan<br> <b>Sent:</b> Wednesday, December 09, 2009 11:53 PM<br> <b>To:</b> [email protected]<br> <b>Subject:</b> [PythonCE] Import inbox error<o:p></o:p></span></p> </div> <p class=3DMsoNormal><o:p> </o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> <div> <p class=3DMsoNormal><o:p> </o:p></p> <div> <p class=3DMsoNormal>On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 = <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>> wrote:<o:p></o:p></p> <p class=3DMsoNormal>Hi,<o:p></o:p></p> <div> <div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0in 0in 0in 6.0pt; margin-left:4.8pt;margin-right:0in'> <p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><o:p> </o:p></p> <p class=3DMsoNormal><o:p> </o:p></p> </blockquote> <p class=3DMsoNormal><o:p> </o:p></p> </div> <p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'>>>"inbox" is also a Python extension for S60, so you cannot use it with PythonCE just = like that.<br> <br> >>Sorry, this is probably not the answer you were looking for, but = the sad truth.<o:p></o:p></p> </div> <p class=3DMsoNormal>yeah Sini this is a sad truth for me.But can you = please suggest me any other extension of pythonCE that can be used to access = the sms inbox.<o:p></o:p></p> <div> <div> <blockquote style=3D'border:none;border-left:solid #CCCCCC = 1.0pt;padding:0in 0in 0in 6.0pt; margin-left:4.8pt;margin-right:0in'> <p class=3DMsoNormal = style=3D'margin-bottom:12.0pt'><o:p> </o:p></p> <div> <p class=3DMsoNormal>On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis = <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>>> wrote:<br> <br> Hi Mani<br> <br> It looks like you are trying to import a Symbian module on = a Windows<br> CE platform.<br> <br> I think "appuifw" is a PYS60 module (python = wrapper for Symbian Series<br> 60 devices)<br> <br> You should look for another GUI for a Windows CE = device.<br> <br> I know Tkinter works but their are other efforts for = CE.<br> <br> regards<br> mark<br> <br> On Tue, Dec 8, 2009 at 10:40 PM, mani kandan <<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><o:p></o:p></p> </div> <div> <div> <p class=3DMsoNormal> <mailto:<a = href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>>> wrote:<br> > I am new to this forum and pythonCE please help me = with this issue.I<br> > downloaded and installed pythonCE on my device and = when i tried<br> to run the<br> > program<br> ><br> > <code><br> > import inbox, appuifw<br> ><br> > box =3D inbox.Inbox()<br> > query =3D appuifw.query(u"Search for:", "text").lower()<br> ><br> > hits =3D []<br> > ids =3D []<br> > for sms_id in box.sms_messages():<br> > msg =3D = box.content(sms_id).lower()<br> > if msg.find(query) !=3D -1:<br> > hits.append(msg[:25])<br> > = ids.append(sms_id)<br> ><br> > index =3D appuifw.selection_list(hits, 1)<br> > if index >=3D 0:<br> > appuifw.note(box.content(ids[index]))<br> > </code><br> ><br> > it shows me Import error:No module named inbox.<br> ><br> > I not able to figure out how to include the = particular file.<br> ><br> > --<br> > ALWAYS KEEP SMILING<br> ><br> > FOR U EVER,<br> ><br> > G.MANIKANDAN<br> ><br> > _______________________________________________<br> > PythonCE mailing list<o:p></o:p></p> </div> </div> <p class=3DMsoNormal> > <a = href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a> <mailto:<a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>><o:p></o:p></p> <div> <p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br> > <a = href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br= > ><br> ><br> <br> <br> <br> <br> -- <br> ALWAYS KEEP SMILING<br> <br> FOR U EVER,<br> G.MANIKANDAN<br> <br> <o:p></o:p></p> </div> <p = class=3DMsoNormal>-------------------------------------------------------= -----------------<o:p></o:p></p> <div> <p class=3DMsoNormal><br> <br> _______________________________________________<br> PythonCE mailing list<br> <a href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a><br> <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" = target=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><o:= p></o:p></p> </div> </blockquote> <p class=3DMsoNormal><o:p> </o:p></p> </div> </div> </div> <p class=3DMsoNormal><br> <br clear=3Dall> <br> -- <o:p></o:p></p> <div> <div> <p class=3DMsoNormal>ALWAYS KEEP SMILING <br> <br> FOR U EVER,<br> <br> G.MANIKANDAN<o:p></o:p></p> </div> </div> </div> <p class=3DMsoNormal><br> <br clear=3Dall> <br> -- <br> ALWAYS KEEP SMILING <br> <br> FOR U EVER,<br> <br> G.MANIKANDAN<o:p></o:p></p> </div> </body> </html> ------=_NextPart_000_0038_01CA7977.A6301AC0-- --===============1181105771== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ PythonCE mailing list [email protected] http://mail.python.org/mailman/listinfo/pythonce --===============1181105771==--