Skip to content

Picked an invalid source context #71

Description

@ale-dd

Ran into a "Picked an invalid source context".

I've only seen this once thus far. On python 3.12.0 with StackPrinter 0.2.12.

Stackprinter failed while formatting <FrameInfo xyz.py, line 2249, scope main>:
  File "venv312/lib/python3.12/site-packages/stackprinter/frame_formatting.py", line 225, in select_scope
    raise Exception("Picked an invalid source context: %s" % info)
Exception: Picked an invalid source context: [2249], [2233], dict_keys([2233, 2234, 2235, 2236, 2237, 2238, 2239])

So here is your original traceback at least:

Traceback (most recent call last):
...
KeyError: 0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions