Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: OrderedDict mutated during iteration #24

Open
anacrolix opened this issue Oct 19, 2015 · 1 comment
Open

RuntimeError: OrderedDict mutated during iteration #24

anacrolix opened this issue Oct 19, 2015 · 1 comment

Comments

@anacrolix
Copy link

mattjoiner@mattjoiners-LM-MBP:~$ ddlgenerator -i postgresql sample.json
Traceback (most recent call last):
File "/usr/local/bin/ddlgenerator", line 11, in
sys.exit(generate())
File "/usr/local/lib/python3.5/site-packages/ddlgenerator/console.py", line 112, in generate
generate_one(datafile, args, file=file)
File "/usr/local/lib/python3.5/site-packages/ddlgenerator/console.py", line 58, in generate_one
loglevel=args.log, limit=args.limit)
File "/usr/local/lib/python3.5/site-packages/ddlgenerator/ddlgenerator.py", line 170, in init
force_pk=force_pk)
File "/usr/local/lib/python3.5/site-packages/ddlgenerator/reshape.py", line 289, in unnest_children
for (key, val) in row.items():
RuntimeError: OrderedDict mutated during iteration

@RobertoUa
Copy link

any updates on this?

mdarmetko added a commit to mdarmetko/ddl-generator that referenced this issue Sep 1, 2016
Use copy of row.items() to iterate over and prevent "RuntimeError: OrderedDict mutated during iteration" when row is flattened
catherinedevlin added a commit that referenced this issue May 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants