Import inbox error

mani kandan <[email protected]> Thu, 10 Dec 2009 20:06:46 +0530
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
--===============1618869190==
Content-Type: multipart/alternative; boundary=000e0cd6aa069844c8047a60bccf

--000e0cd6aa069844c8047a60bccf
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

hai martin,

The pypoom is really cool and let me go through that.Even though it might
not what i want, it may lead to some other useful things:).



On Thu, Dec 10, 2009 at 7:33 PM, Martin Echols <[email protected]>wr=
ote:

>  Hi Mani,
>
>
>
> 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 devi=
ce
> check out: http://pythonce.sourceforge.net/Wikka/PIMs which shows you how
> to use a module called pypoom to access mail resources.
>
> Regards, Martin
>
>
>
> *From:* [email protected] [mailto:
> pythonce-bounces+martinechols <pythonce-bounces%2Bmartinechols>=3D
> [email protected]] *On Behalf Of *mani kandan
> *Sent:* Wednesday, December 09, 2009 11:53 PM
> *To:* [email protected]
> *Subject:* [PythonCE] Import inbox error
>
>
>
>
>
>
>
> On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 <[email protected]>
> wrote:
>
> Hi,
>
>
>
>
>
>
>
> >>"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 sa=
d
> 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.
>
>
>
> 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
>     >
>     >
>
>
>
>
> --
> ALWAYS KEEP SMILING
>
> FOR U EVER,
>      G.MANIKANDAN
>
>  ------------------------------------------------------------------------
>
>
>
> _______________________________________________
> PythonCE mailing list
> [email protected]
> http://mail.python.org/mailman/listinfo/pythonce
>
>
>
>
>
>
> --
>
> ALWAYS KEEP SMILING
>
> FOR U EVER,
>
>     G.MANIKANDAN
>
>
>
>
> --
> ALWAYS KEEP SMILING
>
> FOR U EVER,
>
>     G.MANIKANDAN
>



--=20
ALWAYS KEEP SMILING

FOR U EVER,

    G.MANIKANDAN



--=20
ALWAYS KEEP SMILING

FOR U EVER,

    G.MANIKANDAN

--000e0cd6aa069844c8047a60bccf
Content-Type: text/html; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

<br><div class=3D"gmail_quote">hai martin,<br><br>The pypoom is really cool=
 and let me go through that.Even though it might not what i want, it may le=
ad to some other useful things:).<div><div></div><div class=3D"h5"><br><br>=
<br>
<div class=3D"gmail_quote">On Thu, Dec 10, 2009 at 7:33 PM, Martin Echols <=
span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"=
_blank">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">








<div link=3D"blue" vlink=3D"purple" lang=3D"EN-US">

<div>

<p class=3D"MsoNormal"><span style=3D"font-size: 11pt; color: rgb(31, 73, 1=
25);">Hi Mani,</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size: 11pt; color: rgb(31, 73, 1=
25);">=A0</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size: 11pt; color: rgb(31, 73, 1=
25);">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: <a href=3D"http://pythonce.sourceforge=
.net/Wikka/PIMs" target=3D"_blank">http://pythonce.sourceforge.net/Wikka/PI=
Ms</a>
which shows you how to use a module called pypoom to access mail resources.=
</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size: 11pt; color: rgb(31, 73, 1=
25);">Regards, Martin</span></p>

<p class=3D"MsoNormal"><span style=3D"font-size: 11pt; color: rgb(31, 73, 1=
25);">=A0</span></p>

<div style=3D"border-style: solid none none; border-color: rgb(181, 196, 22=
3) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium=
; padding: 3pt 0in 0in;">

<p class=3D"MsoNormal"><b><span style=3D"font-size: 10pt;">From:</span></b>=
<span style=3D"font-size: 10pt;"> pythonce-bounces+martinechols=3D<a href=
=3D"http://verizon.net" target=3D"_blank">verizon.net</a>@<a href=3D"http:/=
/python.org" target=3D"_blank">python.org</a>
[mailto:<a href=3D"mailto:pythonce-bounces%2Bmartinechols" target=3D"_blank=
">pythonce-bounces+martinechols</a>=3D<a href=3D"http://verizon.net" target=
=3D"_blank">verizon.net</a>@<a href=3D"http://python.org" target=3D"_blank"=
>python.org</a>] <b>On Behalf Of </b>mani
kandan<br>
<b>Sent:</b> Wednesday, December 09, 2009 11:53 PM<br>
<b>To:</b> <a href=3D"mailto:[email protected]" target=3D"_blank">PythonC=
[email protected]</a><br>
<b>Subject:</b> [PythonCE] Import inbox error</span></p>

</div><div><div></div><div>

<p class=3D"MsoNormal">=A0</p>

<p class=3D"MsoNormal">=A0</p>

<div>

<p class=3D"MsoNormal">=A0</p>

<div>

<p class=3D"MsoNormal">On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 &l=
t;<a href=3D"mailto:[email protected]" target=3D"_blank">sini.makela@gm=
ail.com</a>&gt;
wrote:</p>

<p class=3D"MsoNormal">Hi,</p>

<div>

<div>

<blockquote style=3D"border-style: none none none solid; border-color: -moz=
-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204);=
 border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-l=
eft: 4.8pt; margin-right: 0in;">



<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;">=A0</p>

<p class=3D"MsoNormal">=A0</p>

</blockquote>

<p class=3D"MsoNormal">=A0</p>

</div>

<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;">&gt;&gt;&quot;inbox&q=
uot; is
also a Python extension for S60, so you cannot use it with PythonCE just li=
ke
that.<br>
<br>
&gt;&gt;Sorry, this is probably not the answer you were looking for, but th=
e
sad truth.</p>

</div>

<p class=3D"MsoNormal">yeah Sini this is a sad truth for me.But can you ple=
ase
suggest me any other extension of pythonCE that can be used to access the s=
ms
inbox.</p>

<div>

<div>

<blockquote style=3D"border-style: none none none solid; border-color: -moz=
-use-text-color -moz-use-text-color -moz-use-text-color rgb(204, 204, 204);=
 border-width: medium medium medium 1pt; padding: 0in 0in 0in 6pt; margin-l=
eft: 4.8pt; margin-right: 0in;">



<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;">=A0</p>

<div>

<p class=3D"MsoNormal">On Wed, Dec 9, 2009 at 6:45 AM, Mark Doukidis &lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">[email protected]<=
/a>
&lt;mailto:<a href=3D"mailto:[email protected]" target=3D"_blank">mdoukid=
[email protected]</a>&gt;&gt;
wrote:<br>
<br>
=A0 =A0Hi Mani<br>
<br>
=A0 =A0It looks like you are trying to import a Symbian module on a
Windows<br>
=A0 =A0CE platform.<br>
<br>
=A0 =A0I think &quot;appuifw&quot; is a PYS60 module (python wrapper for
Symbian Series<br>
=A0 =A060 devices)<br>
<br>
=A0 =A0You should look for another GUI for a Windows CE device.<br>
<br>
=A0 =A0I know Tkinter works but their are other efforts for CE.<br>
<br>
=A0 =A0regards<br>
=A0 =A0mark<br>
<br>
=A0 =A0On Tue, Dec 8, 2009 at 10:40 PM, mani kandan &lt;<a href=3D"mailto:m=
[email protected]" target=3D"_blank">[email protected]</a></p>

</div>

<div>

<div>

<p class=3D"MsoNormal">=A0 =A0&lt;mailto:<a href=3D"mailto:majafriend@gmail=
.com" target=3D"_blank">[email protected]</a>&gt;&gt; wrote:<br>
=A0 =A0 &gt; I am new to this forum and pythonCE please help me with this
issue.I<br>
=A0 =A0 &gt; downloaded and installed pythonCE on my device and when i
tried<br>
=A0 =A0to run the<br>
=A0 =A0 &gt; program<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; &lt;code&gt;<br>
=A0 =A0 &gt; import inbox, appuifw<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; box =3D inbox.Inbox()<br>
=A0 =A0 &gt; query =3D appuifw.query(u&quot;Search for:&quot;,
&quot;text&quot;).lower()<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; hits =3D []<br>
=A0 =A0 &gt; ids =3D []<br>
=A0 =A0 &gt; for sms_id in box.sms_messages():<br>
=A0 =A0 &gt; =A0 =A0 =A0 msg =3D box.content(sms_id).lower()<br>
=A0 =A0 &gt; =A0 =A0 =A0 if msg.find(query) !=3D -1:<br>
=A0 =A0 &gt; =A0 =A0 =A0 =A0 =A0
=A0hits.append(msg[:25])<br>
=A0 =A0 &gt; =A0 =A0 =A0 =A0 =A0 =A0ids.append(sms_id)<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; index =3D appuifw.selection_list(hits, 1)<br>
=A0 =A0 &gt; if index &gt;=3D 0:<br>
=A0 =A0 &gt; =A0 =A0 =A0 =A0
appuifw.note(box.content(ids[index]))<br>
=A0 =A0 &gt; &lt;/code&gt;<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; it shows me Import error:No module named inbox.<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; I not able to figure out how to include the particular file.<b=
r>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; --<br>
=A0 =A0 &gt; ALWAYS KEEP SMILING<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; FOR U EVER,<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; =A0 =A0 G.MANIKANDAN<br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt; _______________________________________________<br>
=A0 =A0 &gt; PythonCE mailing list</p>

</div>

</div>

<p class=3D"MsoNormal">=A0 =A0 &gt; <a href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a> &lt;mailto:<a href=3D"mailto:Pyth=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</p>

<div>

<p class=3D"MsoNormal" style=3D"margin-bottom: 12pt;"><br>
=A0 =A0 &gt; <a href=3D"http://mail.python.org/mailman/listinfo/pythonce" t=
arget=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br>
=A0 =A0 &gt;<br>
=A0 =A0 &gt;<br>
<br>
<br>
<br>
<br>
-- <br>
ALWAYS KEEP SMILING<br>
<br>
FOR U EVER,<br>
=A0 =A0 =A0G.MANIKANDAN<br>
<br>
</p>

</div>

<p class=3D"MsoNormal">----------------------------------------------------=
--------------------</p>

<div>

<p class=3D"MsoNormal"><br>
<br>
_______________________________________________<br>
PythonCE mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
g</a><br>
<a href=3D"http://mail.python.org/mailman/listinfo/pythonce" target=3D"_bla=
nk">http://mail.python.org/mailman/listinfo/pythonce</a></p>

</div>

</blockquote>

<p class=3D"MsoNormal">=A0</p>

</div>

</div>

</div>

<p class=3D"MsoNormal"><br>
<br clear=3D"all">
<br>
-- </p>

<div>

<div>

<p class=3D"MsoNormal">ALWAYS KEEP SMILING <br>
<br>
FOR U EVER,<br>
=A0<br>
=A0 =A0 G.MANIKANDAN</p>

</div>

</div>

</div>

<p class=3D"MsoNormal"><br>
<br clear=3D"all">
<br>
-- <br>
ALWAYS KEEP SMILING <br>
<br>
FOR U EVER,<br>
=A0<br>
=A0 =A0 G.MANIKANDAN</p>

</div></div></div>

</div>


</blockquote></div><br><br clear=3D"all"><br></div></div>-- <br><div><div><=
/div><div class=3D"h5">ALWAYS KEEP SMILING <br><br> FOR U EVER,<br> =A0<br>=
 =A0 =A0 G.MANIKANDAN<br>
</div></div></div><br><br clear=3D"all"><br>-- <br>ALWAYS KEEP SMILING <br>=
<br> FOR U EVER,<br> =A0<br> =A0 =A0 G.MANIKANDAN<br>

--000e0cd6aa069844c8047a60bccf--

--===============1618869190==
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

--===============1618869190==--