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

swaggerfilter.py script throws runtime error with python3 #1

Open
antoniosi opened this issue Dec 10, 2022 · 1 comment
Open

swaggerfilter.py script throws runtime error with python3 #1

antoniosi opened this issue Dec 10, 2022 · 1 comment

Comments

@antoniosi
Copy link
Contributor

When I run build with python3, I am getting the following runtime error:

File "/Users/asi/tools/argo-events-client-java/./hack/swaggerfilter.py", line 29, in main
for k in defs.keys():
RuntimeError: dictionary changed size during iteration

I have to modify the script to:

    keys = defs.keys()
    if sys.version_info[0] == 3:
        keys = defs.copy().keys()

    for k in keys:
          ...
@antoniosi
Copy link
Contributor Author

I will create a PR for the fix soon.

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

1 participant