Re: Fail to import the 'stackless' module

Bin Huang <[email protected]> Thu, 24 Jul 2014 14:50:03 -0400
Newsgroups gmane.comp.python.stackless
Message-ID <CAJkdMQbAO_7HTWGybwaPa_sGAitTMHNR1H+zJv27mGMo4wk3Pg@mail.gmail.com>
--===============4564339468752208144==
Content-Type: multipart/alternative; boundary=047d7b472012bafd2904fef4ec7c

--047d7b472012bafd2904fef4ec7c
Content-Type: text/plain; charset=UTF-8

Hi Richard,

Yes, I am pretty sure that the 'ifdef' that enables the Stackless
functionality is there.

Bin


On Thu, Jul 24, 2014 at 2:23 AM, Richard Tew <[email protected]>
wrote:

> Hi,
>
> The code that determines if the stackless module is compiled and
> available, is a set of ifdefs.
>
> You should see if those symbols for the given arm platform, are valid
> for your compiler.  Maybe correct them, if not.
>
> The files are in the stackless/ sub-directory.  I can't remember which
> one, offhand.
>
> Cheers,
> Richard.
>
> On 7/24/14, Bin Huang <[email protected]> wrote:
> > 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
>

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

<div dir=3D"ltr">Hi Richard,<div><br></div><div>Yes, I am pretty sure that =
the &#39;ifdef&#39; that enables the Stackless functionality is there.=C2=
=A0</div><div><br></div><div>Bin</div></div><div class=3D"gmail_extra"><br>=
<br><div class=3D"gmail_quote">
On Thu, Jul 24, 2014 at 2:23 AM, Richard Tew <span dir=3D"ltr">&lt;<a href=
=3D"mailto:[email protected]" target=3D"_blank">[email protected]=
om</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quote" style=3D"marg=
in:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
The code that determines if the stackless module is compiled and<br>
available, is a set of ifdefs.<br>
<br>
You should see if those symbols for the given arm platform, are valid<br>
for your compiler. =C2=A0Maybe correct them, if not.<br>
<br>
The files are in the stackless/ sub-directory. =C2=A0I can&#39;t remember w=
hich<br>
one, offhand.<br>
<br>
Cheers,<br>
Richard.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
On 7/24/14, Bin Huang &lt;<a href=3D"mailto:[email protected]">bin.arthu=
[email protected]</a>&gt; wrote:<br>
&gt; Hi list,<br>
&gt;<br>
&gt; I have compiled stackless-2.6.5 for an ARM platform (ARMv7 architectur=
e).<br>
&gt; No error occurred during the compilation except that the system failed=
 to<br>
&gt; find the necessary bits to build some modules. =C2=A0When I tried to i=
mport the<br>
&gt; &#39;stackless&#39; module, the system reported an error, &quot;no mod=
ule named<br>
&gt; stackless&quot;, to me.<br>
&gt;<br>
&gt; Specifically, the error message looks like this:<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)<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;<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<br>
&gt; any 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<br>
&gt; be able to launch the interpreter.<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.<br>
&gt;<br>
&gt; Bin<br>
&gt;<br>
<br>
</div></div><div class=3D"HOEnZb"><div class=3D"h5">_______________________=
________________________<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><br>
</div></div></blockquote></div><br></div>

--047d7b472012bafd2904fef4ec7c--


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