[pypy-issue] [issue1502] trouble translating with older pypy

dktc tracker at bugs.pypy.org
Thu May 30 12:23:17 CEST 2013

New submission from dktc <dkruglyak+pypy at gmail.com>:

First of all, here is why this is important.

On CentOS 5.x the latest pre-built PyPy binary that's really stable is v1.8, available through 
Yum repo. 
Unfortunately trying to translate PyPy 2.0.2 on this PyPy 1.8 binary causes an error below.

Could this be fixed? Without support for PyPy 1.8 it is problematic to translate PyPy on 
CentOS 5.x, since 
using CPython is way too slow and consumes way too much RAM...


[translation:ERROR]    File "/root/pypy/pypy-2.0.2-src/pypy/interpreter/baseobjspace.py", line 
282, in 
[translation:ERROR]     return self.build(key)
[translation:ERROR]    File "/root/pypy/pypy-2.0.2-src/pypy/interpreter/gateway.py", line 936, 
in build
[translation:ERROR]     defs = gateway._getdefaults(space) # needs to be implemented by 
[translation:ERROR]    File "/root/pypy/pypy-2.0.2-src/pypy/interpreter/gateway.py", line 884, 
[translation:ERROR]     self._code.identifier, name, defaultval))
[translation:ERROR]  AssertionError: ("pypy.module.__pypy__.interp_signal-signals_exit-*: 
default value for 
'w_ignored1' can only be None, got ''; use unwrap_spec(...=WrappedDefault(default))", <
[translation:ERROR]  v5 = getattr(w_dict_0, ('dstorage'))
[translation:ERROR] In <FunctionGraph of 
(pypy.objspace.std.celldict:51)_getdictvalue_no_unwrapping_pure at 
[translation:ERROR] Happened at file /root/pypy/pypy-2.0.2-src/pypy/objspace/std/celldict.py 
line 53
[translation:ERROR] ==>         return self.unerase(w_dict.dstorage).get(key, None)
[translation:ERROR] Known variable annotations:
[translation:ERROR]  w_dict_0 = SomeInstance(can_be_None=False, 
[translation:ERROR] Processing block:
[translation:ERROR]  block at 3 is a <class 'rpython.flowspace.flowcontext.SpamBlock'>
[translation:ERROR]  in (pypy.objspace.std.celldict:51)_getdictvalue_no_unwrapping_pure
[translation:ERROR]  containing the following operations:
[translation:ERROR]        v6 = getattr(self_0, ('unerase'))
[translation:ERROR]        v5 = getattr(w_dict_0, ('dstorage'))
[translation:ERROR]        v7 = simple_call(v6, v5)
[translation:ERROR]        v8 = getattr(v7, ('get'))
[translation:ERROR]        v9 = simple_call(v8, key_0, (None))
[translation:ERROR]  --end--

messages: 5790
nosy: pypy-issue
priority: bug
status: unread
title: trouble translating with older pypy

PyPy bug tracker <tracker at bugs.pypy.org>

More information about the pypy-issue mailing list