Skip to content

Instantly share code, notes, and snippets.

@smarr
Created March 15, 2015 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save smarr/ed7f52ed3dc4a48cec61 to your computer and use it in GitHub Desktop.
Save smarr/ed7f52ed3dc4a48cec61 to your computer and use it in GitHub Desktop.
Translation issue
[translation:info] Error:
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/goal/translate.py", line 316, in main
[translation:info] drv.proceed(goals)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 531, in proceed
[translation:info] return self._execute(goals, task_skip = self._maybe_skip())
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/tool/taskengine.py", line 114, in _execute
[translation:info] res = self._do(goal, taskcallable, *args, **kwds)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 276, in _do
[translation:info] res = func()
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/translator/driver.py", line 343, in task_rtype_lltype
[translation:info] rtyper.specialize(dont_simplify_again=True)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 177, in specialize
[translation:info] self.specialize_more_blocks()
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 218, in specialize_more_blocks
[translation:info] self.specialize_block(block)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 336, in specialize_block
[translation:info] self.translate_hl_to_ll(hop, varmapping)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 465, in translate_hl_to_ll
[translation:info] resultvar = hop.dispatch()
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 687, in dispatch
[translation:info] return translate_meth(self)
[translation:info] File "<282-codegen /Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py:545>", line 5, in translate_op_is_
[translation:info] return pair(r_arg1, r_arg2).rtype_is_(hop)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rmodel.py", line 290, in rtype_is_
[translation:info] return hop.rtyper.type_system.generic_is(robj1, robj2, hop)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/typesystem.py", line 42, in generic_is
[translation:info] v_list = hop.inputargs(robj1, robj2)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 718, in inputargs
[translation:info] vars.append(self.inputarg(converted_to[i], i))
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rtyper.py", line 699, in inputarg
[translation:info] return inputconst(converted_to, v.value)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rmodel.py", line 353, in inputconst
[translation:info] value = reqtype.convert_const(value)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/rtyper/rclass.py", line 334, in convert_const
[translation:info] classdef = bk.getuniqueclassdef(value.__class__)
[translation:info] File "/Users/smarr/Projects/SOM/pypy/rpython/annotator/bookkeeper.py", line 173, in getuniqueclassdef
[translation:info] return desc.getuniqueclassdef()
[translation:ERROR] AttributeError: 'FrozenDesc' object has no attribute 'getuniqueclassdef'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment