Re: Fail to import the 'stackless' module

Bin Huang <[email protected]> Thu, 24 Jul 2014 14:47:41 -0400
Newsgroups gmane.comp.python.stackless
Message-ID <CAJkdMQbns+wy5DWArwaB1UnGCugsLQA8D5DFar8iwrwsu1XR_g@mail.gmail.com>
--===============6729913742020561001==
Content-Type: multipart/alternative; boundary=001a11c2a1d43da4d504fef4e40a

--001a11c2a1d43da4d504fef4e40a
Content-Type: text/plain; charset=UTF-8

Hi Anselm,

The reason I used Stackless 2.6.5 is because my project needs to support
the execution of a subset of the Python 2.6 bytecodes.

But I did try 2.7.8 as you suggested. Interestingly, I had the same problem
with the Stackless 2.7.8 on my ARM platform.

Specifically, here is the output I got:

-----------------------------------------------------------------------------------------------------
root@192:/opt/stackless-278/bin# ./python
Python 2.7.8 (default, Feb 18 1970, 19:12:51)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import stackless
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/opt/stackless-278/lib/python2.7/stackless.py", line 8, in <module>
    import _stackless
ImportError: No module named _stackless
-----------------------------------------------------------------------------------------------------

Is there a method I can get verbose error message in Python? I googled it
but did not get any useful tips.

Any comments?

Thanks.

Bin


On Thu, Jul 24, 2014 at 4:19 AM, Anselm Kruis <[email protected]>
wrote:

> Hi Bin,
>
> Why do you use such an old version? Did you already try 2.7.8? It contains
> many fixes, not available in 2.6.
>
> > necessary bits to build some modules.  When I tried to import the
> 'stackless'
> > module, the system reported an error, "no module named stackless", to me.
> Probably some internal error occurd during the initialisation of the
> module. The import mechanism of Python reports such errors as ImportErrors.
>
> Cheers
>   Anselm
>
>
>
> -----Original message-----
> From:   Bin Huang <[email protected]>
> Sent:   Thu 24-07-2014 06:32
> Subject:        [Stackless] Fail to import the 'stackless' module
> To:     The Stackless Python Mailing List <[email protected]>;
> > Hi list,
> >
> > I have compiled stackless-2.6.5 for an ARM platform (ARMv7
> architecture). No
> > error occurred during the compilation except that the system failed to
> find the
> > necessary bits to build some modules.  When I tried to import the
> 'stackless'
> > module, the system reported an error, "no module named stackless", to
> me.
> >
> > Specifically, the error message looks like this:
> >
> >
> --------------------------------------------------------------------------------
> > ----------------------------
> > root@192:/opt/stackless-2.6.5/bin# ./python
> > Python 2.6.5 (unknown, Feb 18 1970, 02:43:59)
> > [GCC 4.6.3] on linux3
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import stackless
> > Traceback (most recent call last):
> >   File "<stdin>", line 1, in <module>
> > ImportError: No module named stackless
> > >>>
> >
> --------------------------------------------------------------------------------
> > ----------------------------
> >
> > Also, I took the same source files and compiled them (with the same
> > configuration) for an X86 workstation. That worked well and I did not
> have any
> > problem with importing the 'stackless' module.
> >
> > I think Stackless-2.6.5 supports ARMv7 architecture. Otherwise, I
> shouldn't be
> > able to launch the interpreter.
> >
> > I really don't have any clue here. I wonder if someone can offer me some
> > insights. Thanks in advance.
> >
> > Bin
> >
> >
> > _______________________________________________
> >
> > Stackless mailing list
> >
> > [email protected]
> >
> > http://www.stackless.com/mailman/listinfo/stackless
> >
> >
> --
> Vorstandsvorsitzender/Chairman of the board of management:
> Gerd-Lothar Leonhart
> Vorstand/Board of Management:
> Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz
> Vorsitzender des Aufsichtsrats/
> Chairman of the Supervisory Board:
> Philippe Miltin
> Sitz/Registered Office: Tuebingen
> Registergericht/Registration Court: Stuttgart
> Registernummer/Commercial Register No.: HRB 382196
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless

--001a11c2a1d43da4d504fef4e40a
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi Anselm,<div><br></div><div>The reason I used Stackless =
2.6.5 is because my project needs to support the=C2=A0execution=C2=A0of a s=
ubset of the Python 2.6 bytecodes.=C2=A0</div><div><br></div><div>But I did=
 try 2.7.8 as you suggested. Interestingly, I had the same problem with the=
 Stackless 2.7.8 on my ARM platform.=C2=A0</div>
<div><br></div><div>Specifically, here is the output I got:</div><div><br><=
/div><div>-----------------------------------------------------------------=
------------------------------------</div><div><div>root@192:/opt/stackless=
-278/bin# ./python</div>
<div>Python 2.7.8 (default, Feb 18 1970, 19:12:51)=C2=A0</div><div>[GCC 4.6=
.3] on linux2</div><div>Type &quot;help&quot;, &quot;copyright&quot;, &quot=
;credits&quot; or &quot;license&quot; for more information.</div><div>&gt;&=
gt;&gt; import stackless</div>
<div>Traceback (most recent call last):</div><div>=C2=A0 File &quot;&lt;std=
in&gt;&quot;, line 1, in &lt;module&gt;</div><div>=C2=A0 File &quot;/opt/st=
ackless-278/lib/python2.7/stackless.py&quot;, line 8, in &lt;module&gt;</di=
v><div>
=C2=A0 =C2=A0 import _stackless</div><div>ImportError: No module named _sta=
ckless</div></div><div>----------------------------------------------------=
-------------------------------------------------<br></div><div><br></div><=
div>Is there a method I can get verbose error message in Python? I googled =
it but did not get any useful tips.</div>
<div><br></div><div>Any comments?</div><div><br></div><div>Thanks.</div><di=
v><br></div><div>Bin</div></div><div class=3D"gmail_extra"><br><br><div cla=
ss=3D"gmail_quote">On Thu, Jul 24, 2014 at 4:19 AM, Anselm Kruis <span dir=
=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=3D"_bla=
nk">[email protected]</a>&gt;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi Bin,<br>
<br>
Why do you use such an old version? Did you already try 2.7.8? It contains =
many fixes, not available in 2.6.<br>
<div class=3D""><br>
&gt; necessary bits to build some modules. =C2=A0When I tried to import the=
 &#39;stackless&#39;<br>
&gt; module, the system reported an error, &quot;no module named stackless&=
quot;, to me.<br>
</div>Probably some internal error occurd during the initialisation of the =
module. The import mechanism of Python reports such errors as ImportErrors.=
<br>
<br>
Cheers<br>
=C2=A0 Anselm<br>
<div><div class=3D"h5"><br>
<br>
<br>
-----Original message-----<br>
From: =C2=A0 Bin Huang &lt;<a href=3D"mailto:[email protected]">bin.arth=
[email protected]</a>&gt;<br>
Sent: =C2=A0 Thu <a href=3D"tel:24-07-2014%2006" value=3D"+12407201406">24-=
07-2014 06</a>:32<br>
Subject: =C2=A0 =C2=A0 =C2=A0 =C2=A0[Stackless] Fail to import the &#39;sta=
ckless&#39; module<br>
To: =C2=A0 =C2=A0 The Stackless Python Mailing List &lt;<a href=3D"mailto:s=
[email protected]">[email protected]</a>&gt;;<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I have compiled stackless-2.6.5 for an ARM platform (ARMv7 architectur=
e). No<br>
&gt; error occurred during the compilation except that the system failed to=
 find the<br>
&gt; necessary bits to build some modules. =C2=A0When I tried to import the=
 &#39;stackless&#39;<br>
&gt; module, the system reported an error, &quot;no module named stackless&=
quot;, to me.=C2=A0<br>
&gt;<br>
&gt; Specifically, the error message looks like this:<br>
&gt;<br>
&gt; ----------------------------------------------------------------------=
----------<br>
&gt; ----------------------------<br>
&gt; root@192:/opt/stackless-2.6.5/bin# ./python<br>
&gt; Python 2.6.5 (unknown, Feb 18 1970, 02:43:59)=C2=A0<br>
&gt; [GCC 4.6.3] on linux3<br>
&gt; Type &quot;help&quot;, &quot;copyright&quot;, &quot;credits&quot; or &=
quot;license&quot; for more information.<br>
&gt; &gt;&gt;&gt; import stackless<br>
&gt; Traceback (most recent call last):<br>
&gt; =C2=A0 File &quot;&lt;stdin&gt;&quot;, line 1, in &lt;module&gt;<br>
&gt; ImportError: No module named stackless<br>
&gt; &gt;&gt;&gt;=C2=A0<br>
&gt; ----------------------------------------------------------------------=
----------<br>
&gt; ----------------------------<br>
&gt;<br>
&gt; Also, I took the same source files and compiled them (with the same<br=
>
&gt; configuration) for an X86 workstation. That worked well and I did not =
have any<br>
&gt; problem with importing the &#39;stackless&#39; module.<br>
&gt;<br>
&gt; I think Stackless-2.6.5 supports ARMv7 architecture. Otherwise, I shou=
ldn&#39;t be<br>
&gt; able to launch the interpreter.=C2=A0<br>
&gt;<br>
&gt; I really don&#39;t have any clue here. I wonder if someone can offer m=
e some<br>
&gt; insights. Thanks in advance.=C2=A0<br>
&gt;<br>
&gt; Bin<br>
&gt; =C2=A0<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt;<br>
&gt; Stackless mailing list<br>
&gt;<br>
&gt; <a href=3D"mailto:[email protected]">[email protected]</a>=
<br>
&gt;<br>
&gt; <a href=3D"http://www.stackless.com/mailman/listinfo/stackless" target=
=3D"_blank">http://www.stackless.com/mailman/listinfo/stackless</a><br>
&gt;<br>
&gt;<br>
--<br>
Vorstandsvorsitzender/Chairman of the board of management:<br>
Gerd-Lothar Leonhart<br>
Vorstand/Board of Management:<br>
Dr. Bernd Finkbeiner, Michael Heinrichs, Dr. Arno Steitz<br>
Vorsitzender des Aufsichtsrats/<br>
Chairman of the Supervisory Board:<br>
Philippe Miltin<br>
Sitz/Registered Office: Tuebingen<br>
Registergericht/Registration Court: Stuttgart<br>
Registernummer/Commercial Register No.: HRB 382196<br>
_______________________________________________<br>
Stackless mailing list<br>
<a href=3D"mailto:[email protected]">[email protected]</a><br>
<a href=3D"http://www.stackless.com/mailman/listinfo/stackless" target=3D"_=
blank">http://www.stackless.com/mailman/listinfo/stackless</a></blockquote>=
</div><br></div>

--001a11c2a1d43da4d504fef4e40a--


--===============6729913742020561001==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Stackless mailing list
[email protected]
http://www.stackless.com/mailman/listinfo/stackless
--===============6729913742020561001==--