Platformio-core: Runtime Error: Dictionary size changed during iteration --- Visual Studio Code

Created on 30 Dec 2018  路  6Comments  路  Source: platformio/platformio-core

I'm trying to install a library u8glib2 by Oliver and getting a "Runtime Error: Dictionary changed during iteration."

There was no other way of reporting the issue as I was getting a "success" message though I'm failing to install the library. see screenshot below.

Update:
It looks like the library has installed since it is appearing under installed libraries. The issue is I'm getting the same "Runtime Error: dictionary changed size during iteration" error when building projects which include the u8g2 library.


Retrieving maximum program size .pioenvs/esp32doit-devkit-v1/firmware.elf
Checking size .pioenvs/esp32doit-devkit-v1/firmware.elf
Memory Usage -> http://bit.ly/pio-memory-usage
DATA: [ ] 4.6% (used 14932 bytes from 327680 bytes)
PROGRAM: [= ] 10.6% (used 222216 bytes from 2097152 bytes)
================================================= [SUCCESS] Took 82.48 seconds =================================================
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "/usr/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
backup_reports(MPDataPusher().get_items())
File "/home/object-undefined/.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/lib64/python2.7/atexit.py", line 24, in _run_exitfuncs
func(targs, *kargs)
File "/home/object-undefined/.platformio/penv/lib/python2.7/site-packages/platformio/telemetry.py", line 375, in _finalize
backup_reports(MPDataPusher().get_items())
File "/home/object-undefined/.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

Terminal will be reused by tasks, press any key to close it.

How do I solve the issue?
I'm running Solus Mate.

bug

Most helpful comment

  1. Please enable development version of PIO Core in VSCode, see https://docs.platformio.org/en/latest/ide/vscode.html#platformio-ide-usedevelopmentpiocore
  2. Open VSCode Terminal and type pio upgrade --dev.

Does it work now?

All 6 comments

screenshot at 2018-12-30 15-09-39

same here

Error in atexit._run_exitfuncs:

Traceback (most recent call last):

File "c:\users\nils.platformio\python27\lib\atexit.py", line 24, in _run_exitfuncs

func(*targs, **kargs)

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 375, in _finalize

backup_reports(MPDataPusher().get_items())

File "c:\users\nils.platformio\python27\lib\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 "c:\users\nils.platformio\python27\lib\atexit.py", line 24, in _run_exitfuncs

func(*targs, **kargs)

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 375, in _finalize

backup_reports(MPDataPusher().get_items())

File "c:\users\nils.platformio\python27\lib\site-packages\platformio\telemetry.py", line 391, in backup_reports

for key in params:

RuntimeError: dictionary changed size during iteration

again and again disappointed of atom+platformio.
so how many days i have to wait now till i can create a new firmware?
worked fine a few weeks, nothing changed in that time.

could be related with https://github.com/platformio/platform-atmelsam/releases/tag/v3.4.2

  1. Please enable development version of PIO Core in VSCode, see https://docs.platformio.org/en/latest/ide/vscode.html#platformio-ide-usedevelopmentpiocore
  2. Open VSCode Terminal and type pio upgrade --dev.

Does it work now?

I did the first step, when I try the second step I'm getting an error :

bash: pio: command not found

yes it works, thank you!

ill try a little more now

1. Please enable development version of PIO Core in VSCode, see https://docs.platformio.org/en/latest/ide/vscode.html#platformio-ide-usedevelopmentpiocore

2. Open VSCode Terminal and type `pio upgrade --dev`.

Does it work now?

Yes, it's now working. Thanks!

Was this page helpful?
0 / 5 - 0 ratings