argoproj-labs / argoproj-labs/argo-events-client-java
swaggerfilter.py script throws runtime error with python3
- Dominant language
- Java
- Stars
- 0
- Forks
- 2
- PR merge metrics
- No merged PRs in 30d
Description
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:
...
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in hack/swaggerfilter.py at line 29 and reproduce the failure by running the build with Python 3. Inspect the definitions iteration and verify that the build completes without the dictionary-changed-during-iteration runtime error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 45/100