Re: Fail to import the 'stackless' module
Jeff Senn <[email protected]> Thu, 24 Jul 2014 19:37:25 -0400
| Newsgroups | gmane.comp.python.stackless |
|---|---|
| Message-ID | <[email protected]> |
--===============8234339394268842473== Content-Type: multipart/alternative; boundary="Apple-Mail=_A8E2DF01-CF85-405A-BC23-DF9F89FC0A88" --Apple-Mail=_A8E2DF01-CF85-405A-BC23-DF9F89FC0A88 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=windows-1252 On Jul 24, 2014, at 2:47 PM, Bin Huang <[email protected]> wrote: > Hi Anselm, >=20 > 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.=20 >=20 > 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.=20 >=20 > Specifically, here is the output I got: >=20 > = --------------------------------------------------------------------------= --------------------------- > root@192:/opt/stackless-278/bin# ./python > Python 2.7.8 (default, Feb 18 1970, 19:12:51)=20 ^^^^^^^^^^^^^ I think this is a clue. If your compile options were right for = compiling with stackless enabled it would=20 not say =93default=94 here =97 it would say =93Stackless=85<something>=85.= " > [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 > = --------------------------------------------------------------------------= --------------------------- >=20 > Is there a method I can get verbose error message in Python? I googled = it but did not get any useful tips. >=20 > Any comments? >=20 > Thanks. >=20 > Bin >=20 >=20 > On Thu, Jul 24, 2014 at 4:19 AM, Anselm Kruis = <[email protected]> wrote: > Hi Bin, >=20 > Why do you use such an old version? Did you already try 2.7.8? It = contains many fixes, not available in 2.6. >=20 > > 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. >=20 > Cheers > Anselm >=20 >=20 >=20 > -----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.=20 > > > > 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)=20 > > [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 > > >>>=20 > > = --------------------------------------------------------------------------= ------ > > ---------------------------- > > > > 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.=20 > > > > I really don't have any clue here. I wonder if someone can offer me = some > > insights. Thanks in advance.=20 > > > > Bin > > =20 > > > > _______________________________________________ > > > > 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 >=20 > _______________________________________________ > Stackless mailing list > [email protected] > http://www.stackless.com/mailman/listinfo/stackless --Apple-Mail=_A8E2DF01-CF85-405A-BC23-DF9F89FC0A88 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;"><br><div><div>On Jul 24, 2014, at 2:47 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 Anselm,<div><br></div><div>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. </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. </div> <div><br></div><div>Specifically, here is the output I = got:</div><div><br></div><div>--------------------------------------------= ---------------------------------------------------------</div><div><div>r= oot@192:/opt/stackless-278/bin# ./python</div> <div>Python 2.7.8 (default, Feb 18 1970, = 19:12:51) </div></div></div></blockquote> = = ^^^^^^^^^^^^^</div><div>I think this is a clue. If your = compile options were right for compiling with stackless enabled it = would </div><div>not say =93default=94 here =97 it would say = =93Stackless=85<something>=85."</div><div><br></div><div><blockquote= type=3D"cite"><div dir=3D"ltr"><div><div>[GCC 4.6.3] on = linux2</div><div>Type "help", "copyright", "credits" or "license" for = more information.</div><div>>>> import stackless</div> <div>Traceback (most recent call last):</div><div> File = "<stdin>", line 1, in <module></div><div> File = "/opt/stackless-278/lib/python2.7/stackless.py", line 8, in = <module></div><div> import _stackless</div><div>ImportError: No module named = _stackless</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><div><br></div><div>Bin</d= iv></div><div class=3D"gmail_extra"><br><br><div class=3D"gmail_quote">On = Thu, Jul 24, 2014 at 4:19 AM, Anselm Kruis <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 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> > necessary bits to build some modules. When I tried to import = the 'stackless'<br> > module, the system reported an error, "no module named stackless", = 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> Anselm<br> <div><div class=3D"h5"><br> <br> <br> -----Original message-----<br> From: Bin Huang <<a = href=3D"mailto:[email protected]">[email protected]</a>><br> Sent: Thu <a href=3D"tel:24-07-2014%2006" = value=3D"+12407201406">24-07-2014 06</a>:32<br> Subject: [Stackless] Fail to import the = 'stackless' module<br> To: The Stackless Python Mailing List <<a = href=3D"mailto:[email protected]">[email protected]</a>>;<b= r> > Hi list,<br> ><br> > I have compiled stackless-2.6.5 for an ARM platform (ARMv7 = architecture). No<br> > error occurred during the compilation except that the system failed = to find the<br> > necessary bits to build some modules. When I tried to import = the 'stackless'<br> > module, the system reported an error, "no module named stackless", = to me. <br> ><br> > Specifically, the error message looks like this:<br> ><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> ><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 any<br> > problem with importing the 'stackless' module.<br> ><br> > I think Stackless-2.6.5 supports ARMv7 architecture. Otherwise, I = shouldn't be<br> > 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>> _______________________________________________<br> ><br> > Stackless mailing list<br> ><br> > <a = href=3D"mailto:[email protected]">[email protected]</a><br> ><br> > <a href=3D"http://www.stackless.com/mailman/listinfo/stackless" = target=3D"_blank">http://www.stackless.com/mailman/listinfo/stackless</a><= br> ><br> ><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> _______________________________________________<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></b= ody></html>= --Apple-Mail=_A8E2DF01-CF85-405A-BC23-DF9F89FC0A88-- --===============8234339394268842473== 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 --===============8234339394268842473==--