No, we used the normal build, not sandbox. And "select" option is by default enabled.
On Tue, Jun 9, 2015 at 7:21 PM, William ML Leslie < william.leslie....@gmail.com> wrote: > On 9 June 2015 at 19:39, Amaury Forgeot d'Arc <amaur...@gmail.com> wrote: > >> 2015-06-09 11:34 GMT+02:00 Yicong Huang <hengha....@gmail.com>: >> >>> No, I' am trying to call interp code from app code, and found the module >>> could not be imported: >>> >>> import select => ImportError: No module named select >>> import pypy.module.select =>ImportError: No module named pypy >>> >> >> "import select" is the one which should work at applevel. >> But for this, the PyPy object space must have the option "spaceconfig = >> dict(usemodules=['select'])", or be translated with --withmod-select. >> In which context are you running the code above? >> > > Are you using a pypy sandbox Huang? > > If so, many built-in modules are disabled by default, you have to enable > them during translation. > > -- > William Leslie > > Notice: > Likely much of this email is, by the nature of copyright, covered under > copyright law. You absolutely MAY reproduce any part of it in accordance > with the copyright law of the nation you are reading this in. Any attempt > to DENY YOU THOSE RIGHTS would be illegal without prior contractual > agreement. >
_______________________________________________ pypy-dev mailing list pypy-dev@python.org https://mail.python.org/mailman/listinfo/pypy-dev