Re: Fail to import the 'stackless' module

Jeff Senn <[email protected]> Thu, 24 Jul 2014 17:23:19 -0400
Newsgroups gmane.comp.python.stackless
Message-ID <[email protected]>
--===============2884528503307050143==
Content-Type: multipart/alternative; boundary="Apple-Mail=_3E42A5A5-8D19-4C5E-9CB0-D688D0357736"


--Apple-Mail=_3E42A5A5-8D19-4C5E-9CB0-D688D0357736
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

Make sure that your compile options are all correct and that that branch =
of code is actually being compiled.

Hint: try (temporarily) putting a syntax error or unresolvable link =
error into the code in the branch of the #ifdef
you think is being compiled and then =93make clean; make=94  and see if =
you get the error.  If not,
something in your config script or compiler options is not right=85.

On Jul 24, 2014, at 2:50 PM, Bin Huang <[email protected]> wrote:

> Hi Richard,
>=20
> Yes, I am pretty sure that the 'ifdef' that enables the Stackless =
functionality is there.=20
>=20
> Bin
>=20
>=20
> On Thu, Jul 24, 2014 at 2:23 AM, Richard Tew <[email protected]> =
wrote:
> Hi,
>=20
> The code that determines if the stackless module is compiled and
> available, is a set of ifdefs.
>=20
> You should see if those symbols for the given arm platform, are valid
> for your compiler.  Maybe correct them, if not.
>=20
> The files are in the stackless/ sub-directory.  I can't remember which
> one, offhand.
>=20
> Cheers,
> Richard.
>=20
> 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
> >
>=20
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless
>=20
> _______________________________________________
> Stackless mailing list
> [email protected]
> http://www.stackless.com/mailman/listinfo/stackless


--Apple-Mail=_3E42A5A5-8D19-4C5E-9CB0-D688D0357736
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Make =
sure that your compile options are all correct and that that branch of =
code is actually being compiled.<div><br></div><div>Hint: try =
(temporarily) putting a syntax error or unresolvable link error into the =
code in the branch of the #ifdef</div><div>you think is being compiled =
and then =93make clean; make=94 &nbsp;and see if you get the error. =
&nbsp;If not,</div><div>something in your config script or compiler =
options is not right=85.</div><div><br><div><div>On Jul 24, 2014, at =
2:50 PM, Bin Huang &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite"><div dir=3D"ltr">Hi Richard,<div><br></div><div>Yes, I am =
pretty sure that the 'ifdef' that enables the Stackless functionality is =
there.&nbsp;</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]</a>&gt;</span> =
wrote:<br><blockquote class=3D"gmail_quote" style=3D"margin: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. &nbsp;Maybe correct them, if not.<br>
<br>
The files are in the stackless/ sub-directory. &nbsp;I can't remember =
which<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]">[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 =
architecture).<br>
&gt; No error occurred during the compilation except that the system =
failed to<br>
&gt; find the necessary bits to build some modules. &nbsp;When I tried =
to import the<br>
&gt; 'stackless' module, the system reported an error, "no module =
named<br>
&gt; stackless", 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 "help", "copyright", "credits" or "license" for more =
information.<br>
&gt;&gt;&gt;&gt; import stackless<br>
&gt; Traceback (most recent call last):<br>
&gt; &nbsp; File "&lt;stdin&gt;", 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 'stackless' module.<br>
&gt;<br>
&gt; I think Stackless-2.6.5 supports ARMv7 architecture. Otherwise, I =
shouldn't<br>
&gt; be able to launch the interpreter.<br>
&gt;<br>
&gt; I really don't have any clue here. I wonder if someone can offer me =
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>
_______________________________________________<br>Stackless mailing =
list<br><a =
href=3D"mailto:[email protected]">[email protected]</a><br>htt=
p://www.stackless.com/mailman/listinfo/stackless</blockquote></div><br></d=
iv></body></html>=

--Apple-Mail=_3E42A5A5-8D19-4C5E-9CB0-D688D0357736--


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