Why does this not work - using pegen

I’m using 3.10.4 and matchimg source code, under windows 10

Following the instructions in the python developer’s guide I want to generate a python parser to experiment with.

I get ths

H:.\peg_generator> python -m pegen python python.gram
TypeError: cannot unpack non-iterable NoneType object
For full traceback, use -v

adding -v gives me a lot of unhelpful output and no insight.
John

Hi,

Can you paste the contents of python.gram? After pasting, use the Preformatted text icon button to format the code.

It’s known to me that pegen has some bugs (or bad error messages), so this might be one of them.