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>&nbsp;</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 =
&#8216;ctypes&#8217; or
the &#8216;comtypes&#8217; 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>&nbsp;</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>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=3DMsoNormal>On Thu, Dec 10, 2009 at 12:24 AM, Sini M=E4kel=E4 =
&lt;<a
href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;
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>&nbsp;</o:p></p>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</blockquote>

<p class=3DMsoNormal><o:p>&nbsp;</o:p></p>

</div>

<p class=3DMsoNormal =
style=3D'margin-bottom:12.0pt'>&gt;&gt;&quot;inbox&quot; is
also a Python extension for S60, so you cannot use it with PythonCE just =
like
that.<br>
<br>
&gt;&gt;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>&nbsp;</o:p></p>

<div>

<p class=3DMsoNormal>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">[email protected]</a>&gt;&gt;
wrote:<br>
<br>
&nbsp; &nbsp;Hi Mani<br>
<br>
&nbsp; &nbsp;It looks like you are trying to import a Symbian module on =
a
Windows<br>
&nbsp; &nbsp;CE platform.<br>
<br>
&nbsp; &nbsp;I think &quot;appuifw&quot; is a PYS60 module (python =
wrapper for
Symbian Series<br>
&nbsp; &nbsp;60 devices)<br>
<br>
&nbsp; &nbsp;You should look for another GUI for a Windows CE =
device.<br>
<br>
&nbsp; &nbsp;I know Tkinter works but their are other efforts for =
CE.<br>
<br>
&nbsp; &nbsp;regards<br>
&nbsp; &nbsp;mark<br>
<br>
&nbsp; &nbsp;On Tue, Dec 8, 2009 at 10:40 PM, mani kandan &lt;<a
href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a><o:p></o:p></p>

</div>

<div>

<div>

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

</div>

</div>

<p class=3DMsoNormal>&nbsp; &nbsp; &gt; <a =
href=3D"mailto:[email protected]"
target=3D"_blank">[email protected]</a> &lt;mailto:<a
href=3D"mailto:[email protected]" =
target=3D"_blank">[email protected]</a>&gt;<o:p></o:p></p>

<div>

<p class=3DMsoNormal style=3D'margin-bottom:12.0pt'><br>
&nbsp; &nbsp; &gt; <a =
href=3D"http://mail.python.org/mailman/listinfo/pythonce"
target=3D"_blank">http://mail.python.org/mailman/listinfo/pythonce</a><br=
>
&nbsp; &nbsp; &gt;<br>
&nbsp; &nbsp; &gt;<br>
<br>
<br>
<br>
<br>
-- <br>
ALWAYS KEEP SMILING<br>
<br>
FOR U EVER,<br>
&nbsp; &nbsp; &nbsp;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>&nbsp;</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>
&nbsp;<br>
&nbsp; &nbsp; 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>
&nbsp;<br>
&nbsp; &nbsp; 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==--