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 'ifdef' 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"><<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]= om</a>></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'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 <<a href=3D"mailto:[email protected]">bin.arthu= [email protected]</a>> wrote:<br> > Hi list,<br> ><br> > I have compiled stackless-2.6.5 for an ARM platform (ARMv7 architectur= e).<br> > No error occurred during the compilation except that the system failed= to<br> > find the necessary bits to build some modules. =C2=A0When I tried to i= mport the<br> > 'stackless' module, the system reported an error, "no mod= ule 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 &= quot;license" for more information.<br> >>>> import stackless<br> > Traceback (most recent call last):<br> > =C2=A0 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 shou= ldn't<br> > be able to launch the interpreter.<br> ><br> > I really don't have any clue here. I wonder if someone can offer m= e 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> --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==--