Skip to content

Instantly share code, notes, and snippets.

@tav
Created June 10, 2009 20:49
Show Gist options
  • Save tav/127488 to your computer and use it in GitHub Desktop.
Save tav/127488 to your computer and use it in GitHub Desktop.
[translation:ERROR] Error:
[translation:ERROR] Traceback (most recent call last):
[translation:ERROR] File "third_party/generic/pypy/pypy/translator/goal/translate.py", line 273, in main
[translation:ERROR] drv.proceed(goals)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/driver.py", line 704, in proceed
[translation:ERROR] return self._execute(goals, task_skip = self._maybe_skip())
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/tool/taskengine.py", line 116, in _execute
[translation:ERROR] res = self._do(goal, taskcallable, *args, **kwds)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/driver.py", line 267, in _do
[translation:ERROR] res = func()
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/translator/driver.py", line 294, in task_annotate
[translation:ERROR] s = annotator.build_types(self.entry_point, self.inputtypes)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 99, in build_types
[translation:ERROR] return self.build_graph_types(flowgraph, inputcells, complete_now=complete_now)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 190, in build_graph_types
[translation:ERROR] self.complete()
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 246, in complete
[translation:ERROR] self.processblock(graph, block)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 471, in processblock
[translation:ERROR] self.flowin(graph, block)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 531, in flowin
[translation:ERROR] self.consider_op(block.operations[i])
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 735, in consider_op
[translation:ERROR] raise_nicer_exception(op, str(graph))
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/annrpython.py", line 732, in consider_op
[translation:ERROR] resultcell = consider_meth(*argcells)
[translation:ERROR] File "<string>", line 3, in consider_op_simple_call
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/unaryop.py", line 173, in simple_call
[translation:ERROR] return obj.call(getbookkeeper().build_args("simple_call", args_s))
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/unaryop.py", line 659, in call
[translation:ERROR] return bookkeeper.pbc_call(pbc, args)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/bookkeeper.py", line 634, in pbc_call
[translation:ERROR] results.append(desc.pycall(schedule, args, s_previous_result))
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/description.py", line 269, in pycall
[translation:ERROR] result = self.specialize(inputcells)
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/description.py", line 264, in specialize
[translation:ERROR] enforceargs(self, inputcells) # can modify inputcells in-place
[translation:ERROR] File "/Users/tav/work/third_party/generic/pypy/pypy/annotation/signature.py", line 135, in __call__
[translation:ERROR] s_input))
[translation:ERROR] Exception': <FunctionDesc for <function str2charp at 0x149d9f0>> argument 1:
[translation:ERROR] expected SomeString(can_be_None=False),
[translation:ERROR] got SomeString(can_be_None=True)
[translation:ERROR] .. v1773 = simple_call((function str2charp), libname_0)
[translation:ERROR] .. '(pypy.rlib.libffi:604)CDLL.__init__'
[translation:ERROR] Processing block:
[translation:ERROR] block@6 is a <class 'pypy.objspace.flow.flowcontext.SpamBlock'>
[translation:ERROR] in (pypy.rlib.libffi:604)CDLL.__init__
[translation:ERROR] containing the following operations:
[translation:ERROR] v1774 = setattr(self_129, ('unload_on_finalization'), unload_on_finalization_0)
[translation:ERROR] v1775 = simple_call((function nullptr), (Array array))
[translation:ERROR] v1776 = setattr(self_129, ('lib'), v1775)
[translation:ERROR] v1773 = simple_call((function str2charp), libname_0)
[translation:ERROR] v1777 = simple_call((function dlopen), v1773)
[translation:ERROR] v1778 = setattr(self_129, ('lib'), v1777)
[translation:ERROR] v1779 = call_args((function free), ((1, ('flavor',), False, False)), v1773, ('raw'))
[translation:ERROR] --end--
[translation] start debugger...
> /Users/tav/work/third_party/generic/pypy/pypy/annotation/signature.py(135)__call__()
-> s_input))
(Pdb+)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment