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 and see if you get the error. = 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 <<a = href=3D"mailto:[email protected]">[email protected]</a>> = 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. </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"><<a = href=3D"mailto:[email protected]" = target=3D"_blank">[email protected]</a>></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. Maybe correct them, if not.<br> <br> The files are in the stackless/ sub-directory. 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 <<a = href=3D"mailto:[email protected]">[email protected]</a>> = wrote:<br> > Hi list,<br> ><br> > I have compiled stackless-2.6.5 for an ARM platform (ARMv7 = architecture).<br> > No error occurred during the compilation except that the system = failed to<br> > find the necessary bits to build some modules. When I tried = to import the<br> > 'stackless' module, the system reported an error, "no module = named<br> > stackless", to me.<br> ><br> > Specifically, the error message looks like this:<br> ><br> > = --------------------------------------------------------------------------= ----------------------------------<br> > root@192:/opt/stackless-2.6.5/bin# ./python<br> > Python 2.6.5 (unknown, Feb 18 1970, 02:43:59)<br> > [GCC 4.6.3] on linux3<br> > Type "help", "copyright", "credits" or "license" for more = information.<br> >>>> import stackless<br> > Traceback (most recent call last):<br> > File "<stdin>", line 1, in <module><br> > ImportError: No module named stackless<br> >>>><br> > = --------------------------------------------------------------------------= ----------------------------------<br> ><br> > Also, I took the same source files and compiled them (with the = same<br> > configuration) for an X86 workstation. That worked well and I did = not have<br> > any problem with importing the 'stackless' module.<br> ><br> > I think Stackless-2.6.5 supports ARMv7 architecture. Otherwise, I = shouldn't<br> > be able to launch the interpreter.<br> ><br> > I really don't have any clue here. I wonder if someone can offer me = some<br> > insights. Thanks in advance.<br> ><br> > Bin<br> ><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==--