[pypy-dev] [translation:ERROR] Exception: 'no_release_gil' function can release the GIL
Shubha Ramani
shubharamani at yahoo.com
Thu Dec 22 17:58:12 EST 2016
Why ? I cannot seem to open a file anywhere within assembly.py. When I use "NOT_RPYTHON"in method open_file then I cannot use it in functions like assemble_loop because it's NOT_RPYTHON.
Happens when I call the following function in x86/assembly.py:
def open_file(self): self.vtune_file = open('.\vtune.log', 'w')
self.fixup_target_tokens(rawstart) self.materialize_done(rawstart, full_size, "loop%d" % looptoken.number) self.open_file()
[translation:ERROR] Exception: 'no_release_gil' function can release the GIL: <function assemble_loop at 0x0000000070d4d2e0>[GilAnalyzer] analyze_direct_call((rpython.rtyper.lltypesystem.rffi:3)ccall_fopen__arrayPtr_arrayPtr): True[GilAnalyzer] analyze_direct_call((rpython.rtyper.lltypesystem.rffi:236)fopen__arrayPtr_arrayPtr_star_2): True[GilAnalyzer] analyze_direct_call((rpython.rlib.rfile:154)create_file): True[translation] start debugger...> /opt/vtune_pypy/rpython/translator/backendopt/gilanalysis.py(51)analyze()-> " %s\n%s" % (func, err.getvalue()))(Pdb+) print func<function assemble_loop at 0x0000000070d4d2e0>(Pdb+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20161222/c736e407/attachment.html>
More information about the pypy-dev
mailing list