Closed ale-dd closed 7 months ago
Hey! could you paste some of the source code context on which stackprinter gives this error?
It happens in so many places I don't think it's a "local" problem. I wonder if it might have to do with the order of imports and with the use of asyncio + threadpools + nest_asyncio + uvloop?
can you give me access to a piece of code on which I can reproduce the problem?
(I can't guess the underlying bug, I need to see it fail and then look at the error traces and step through with a debugger)
update: we were able to isolate this to multi-line f-strings on python >= 3.12 (works on python < 3.12)
# fails on py 3.12:
try:
thing = 42
f"""bla
blub
{thing}
bla
"""
raise Exception()
except:
stackprinter.show()
investigating
Recently, quite often I end up struggling with this error: