[pypy-dev] "import signal" fails when running PyPy interpreted

Stefan Behnel stefan_ml at behnel.de
Sun Mar 11 17:36:37 CET 2012


Maciej Fijalkowski, 11.03.2012 17:30:
> On Sun, Mar 11, 2012 at 9:27 AM, Stefan Behnel wrote:
>> I get an ImportError when trying to import the "signal" module in an
>> interpreted PyPy (latest source checkout):
>>
>> """
>> python pypy/bin/py.py  -c 'import signal'
>> [...]
>> Traceback (application-level):
>>  File "<string>", line 1 in <module>
>> ImportError: No module named signal
>> """
>>
>> Any ideas what's broken here?
>>
>> I noticed this when trying to run a test from Cython's test suite in an
>> interpreted PyPy, and unittest failed to "import signal".
> 
> run with --allworkingmodules or with --withmod-signal, otherwise it
> does not come with any modules.

Interesting. Would be worth adding a comment on that to this doc section:

http://readthedocs.org/docs/pypy/en/latest/getting-started-python.html#running-the-python-interpreter-without-translation

Stefan



More information about the pypy-dev mailing list