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

dictionary changed size during iteration #3

Open
petike779 opened this issue Jun 14, 2020 · 6 comments
Open

dictionary changed size during iteration #3

petike779 opened this issue Jun 14, 2020 · 6 comments

Comments

@petike779
Copy link

Hi
Nice project!!!
I solved the cv2 and ALSA errors on my Pi4 (I had my sound card turned off with another project)
Now my problem is that program starts, doing 0-180 degrees rotation, turning back and around half way stops and exits the program. I see that on the scope is drawed what is sensed but program exits with this message:
dictionary changed size during iteration
Some advice please?
Thank you

@vitorshaft
Copy link

I had exactly the same problem. It stops somwhere before 45°
radar_pygame

@tursunbaevshakhboz
Copy link

I had exactly the same problem. It stops somwhere before 45°
radar_pygame

hi! were you able to solve this problem?

@tursunbaevshakhboz
Copy link

Hi
Nice project!!!
I solved the cv2 and ALSA errors on my Pi4 (I had my sound card turned off with another project)
Now my problem is that program starts, doing 0-180 degrees rotation, turning back and around half way stops and exits the program. I see that on the scope is drawed what is sensed but program exits with this message:
dictionary changed size during iteration
Some advice please?
Thank you

were you able to solve this problem?

@petike779
Copy link
Author

Hi
Nope...did not found a solution.
I suspect that the del at the end is the problem. The variable should not be deleted.
Also the pi is busy doing other stuff this is the reason that working not smoothly. I will try to do it with an arduino soon.
Anyway if somebody solved this issue please share with us.
Thanks and good luck

@petike779 petike779 reopened this Jul 14, 2020
@vitorshaft
Copy link

I had exactly the same problem. It stops somwhere before 45°
radar_pygame

hi! were you able to solve this problem?

Unfortunately no,
I have just abandoned pygame and I am trying to work with opencv cv2 as well. It works fine for static image generation, but it does not look like a "RADAR".

Hope you find a solution!

@SathvikHegde
Copy link

Hey, this error does not come if its ran using python2. If you are using python3 then changing line 78 in display.py to for angle in list(targets) fixed it.

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

4 participants