PlatformIO Community

Runtime error atexit.py


#1

Good day everyone! Recently got the following errors doing flashing of AVR chips. Any idea how to fix this?
OS: macOS 10.14.2
Atom: 1.33.1
PIO: 2.3.1

Thanks!

Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Users/123/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
    backup_reports(MPDataPusher().get_items())
  File "/Users/123/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports
    for key in params:
RuntimeError: dictionary changed size during iteration
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/local/Cellar/python@2/2.7.15_1/Frameworks/Python.framework/Versions/2.7/lib/python2.7/atexit.py", line 24, in _run_exitfuncs
    func(*targs, **kargs)
  File "/Users/123/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
    backup_reports(MPDataPusher().get_items())
  File "/Users/123/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 391, in backup_reports
    for key in params:
RuntimeError: dictionary changed size during iteration

#2

Any idea how to fix this? And how does it affects anything?


#3

Upgrade using pio upgrade --dev or the GUI and retry, the most recent version is 4.0.0a1 (check is using pio --version). If it’s reproducable under this version, upload a minimal example which reproduces the problem for your PC and then open an issue.


#4

Looks like it does work now. Thanks!