Skip to content

Instantly share code, notes, and snippets.

@brownan
Created December 21, 2011 21:21
Show Gist options
  • Save brownan/1507762 to your computer and use it in GitHub Desktop.
Save brownan/1507762 to your computer and use it in GitHub Desktop.
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "translate.py", line 308, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/translator/driver.py", line 809, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "/home/andrew/pypy/source/pypy/translator/tool/taskengine.py", line 116, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/translator/driver.py", line 286, in _do
[translation:ERROR] res = func()
[translation:ERROR] File "/home/andrew/pypy/source/pypy/translator/driver.py", line 323, in task_annotate
[translation:ERROR] s = annotator.build_types(self.entry_point, self.inputtypes)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 103, in build_types
[translation:ERROR] return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 194, in build_graph_types
[translation:ERROR] self.complete()
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 250, in complete
[translation:ERROR] self.processblock(graph, block)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 448, in processblock
[translation:ERROR] self.flowin(graph, block)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 508, in flowin
[translation:ERROR] self.consider_op(block.operations[i])
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 710, in consider_op
[translation:ERROR] raise_nicer_exception(op, str(graph))
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 707, in consider_op
[translation:ERROR] resultcell = consider_meth(*argcells)
[translation:ERROR] File "<4287-codegen /home/andrew/pypy/source/pypy/annotation/annrpython.py:745>", line 3, in consider_op_simple_call
[translation:ERROR] return arg.simple_call(*args)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/unaryop.py", line 175, in simple_call
[translation:ERROR] return obj.call(getbookkeeper().build_args("simple_call", args_s))
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/unaryop.py", line 696, in call
[translation:ERROR] return bookkeeper.pbc_call(pbc, args)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/bookkeeper.py", line 667, in pbc_call
[translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result, op))
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/description.py", line 291, in pycall
[translation:ERROR] result = schedule(graph, inputcells)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/bookkeeper.py", line 663, in schedule
[translation:ERROR] return self.annotator.recursivecall(graph, whence, inputcells)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 391, in recursivecall
[translation:ERROR] position_key)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 239, in addpendingblock
[translation:ERROR] self.mergeinputargs(graph, block, cells, called_from_graph)
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/annrpython.py", line 485, in mergeinputargs
[translation:ERROR] unions = [annmodel.unionof(c1,c2) for c1, c2 in zip(oldcells,inputcells)]
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/model.py", line 695, in unionof
[translation:ERROR] s1 = pair(s1, s2).union()
[translation:ERROR] File "/home/andrew/pypy/source/pypy/annotation/binaryop.py", line 267, in union
[translation:ERROR] raise UnionError, "Merging %s and a possibly negative int is not allowed" % t1
[translation:ERROR] UnionError': Merging <class 'pypy.rlib.rarithmetic.r_uint'> and a possibly negative int is not allowed
[translation:ERROR] .. v356 = simple_call((function htonl), size_0)
[translation:ERROR] .. '(pypy.module._multiprocessing.interp_connection:250)W_FileConnection.do_send_string'
[translation:ERROR] Processing block:
[translation:ERROR] block@21 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'>
[translation:ERROR] in (pypy.module._multiprocessing.interp_connection:250)W_FileConnection.do_send_string
[translation:ERROR] containing the following operations:
[translation:ERROR] v357 = add(size_0, (4))
[translation:ERROR] v358 = call_args((function malloc), ((2, ('flavor',), False, False)), (Array array), v357, ('raw'))
[translation:ERROR] v356 = simple_call((function htonl), size_0)
[translation:ERROR] --end--
[translation] start debugger...
> /home/andrew/pypy/source/pypy/annotation/binaryop.py(267)union()
-> raise UnionError, "Merging %s and a possibly negative int is not allowed" % t1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment