Re: Import inbox error

mani kandan <[email protected]> Wed, 9 Dec 2009 10:18:23 +0530
Newsgroups gmane.comp.python.windows-ce
Message-ID <[email protected]>
--===============0960634856==
Content-Type: multipart/alternative; boundary=00504501416d876c82047a4466b1

--00504501416d876c82047a4466b1
Content-Type: text/plain; charset=ISO-8859-1

Yeah you are rite juan.I'm trying to include an unavailabe header file.But
can you please help me with where can i download the required.

On Tue, Dec 8, 2009 at 10:36 PM, Juan Pedro Fisanotti <[email protected]>wrote:

> 2009/12/8 mani kandan <[email protected]>
>
>> 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 = inbox.Inbox()
>> query = appuifw.query(u"Search for:", "text").lower()
>>
>> hits = []
>> ids = []
>> for sms_id in box.sms_messages():
>>       msg = box.content(sms_id).lower()
>>       if msg.find(query) != -1:
>>            hits.append(msg[:25])
>>            ids.append(sms_id)
>>
>> index = appuifw.selection_list(hits, 1)
>> if index >= 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]
>> http://mail.python.org/mailman/listinfo/pythonce
>>
>>
> I'm not working with PythonCE at this moment, but that error is very
> simple: "inbox" is a module that you are trying to use, but is not installed
> on your system. Is not part of the standard library, so you must find and
> install it by yourself. Is like trying to use a software on your pc that has
> never been installed ;-)
>
> PS: sorry if my english isn't correct, I'm from Argentina :D
> --
> fisa  -  Juan Pedro Fisanotti
>



-- 
ALWAYS KEEP SMILING

FOR U EVER,

    G.MANIKANDAN

--00504501416d876c82047a4466b1
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Yeah you are rite juan.I&#39;m trying to include an unavailabe header file.=
But can you please help me with where can i download the required.<br><br><=
div class=3D"gmail_quote">On Tue, Dec 8, 2009 at 10:36 PM, Juan Pedro Fisan=
otti <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]">fisadev@gma=
il.com</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 class=3D"gma=
il_quote">2009/12/8 mani kandan <span dir=3D"ltr">&lt;<a href=3D"mailto:maj=
[email protected]" target=3D"_blank">[email protected]</a>&gt;</span><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><div></div><=
div class=3D"h5">

I am new to this forum and pythonCE please help me with this issue.I downlo=
aded and installed pythonCE on my device and when i tried to run the progra=
m <br><br>&lt;code&gt;<br>import inbox, appuifw<br><br>box =3D inbox.Inbox(=
)<br>



query =3D appuifw.query(u&quot;Search for:&quot;, &quot;text&quot;).lower()=
<br><br>hits =3D []<br>ids =3D []<br>for sms_id in box.sms_messages():<br>=
=A0=A0=A0=A0=A0 msg =3D box.content(sms_id).lower()<br>=A0=A0=A0=A0=A0 if m=
sg.find(query) !=3D -1:<br>



=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 hits.append(msg[:25])<br>=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0 ids.append(sms_id)<br><br>index =3D appuifw.selection_list(hit=
s, 1)<br>if index &gt;=3D 0:<br>=A0=A0=A0=A0=A0=A0=A0 appuifw.note(box.cont=
ent(ids[index]))<br>&lt;/code&gt;<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 clear=
=3D"all"><font color=3D"#888888"><br>-- <br>ALWAYS KEEP SMILING <br><br> FO=
R U EVER,<br> =A0<br> =A0 =A0 G.MANIKANDAN<br>
</font><br></div></div>_______________________________________________<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><br>
<br></blockquote></div><br>I&#39;m not working with PythonCE at this moment=
, but that error is very simple: &quot;inbox&quot; is a module that you are=
 trying to use, but is not installed on your system. Is not part of the sta=
ndard library, so you must find and install it by yourself. Is like trying =
to use a software on your pc that has never been installed ;-)<br clear=3D"=
all">


<br><div>PS: sorry if my english isn&#39;t correct, I&#39;m from Argentina =
:D<br>-- <br>fisa =A0- =A0Juan Pedro Fisanotti<br>
</div>
</blockquote></div><br><br clear=3D"all"><br>-- <br>ALWAYS KEEP SMILING <br=
><br> FOR U EVER,<br> =A0<br> =A0 =A0 G.MANIKANDAN<br>

--00504501416d876c82047a4466b1--

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

--===============0960634856==--