How to fix this python error? RuntimeError: dictionary changed size during iteration

Posted by aF on Stack Overflow See other posts from Stack Overflow or by aF
Published on 2010-05-16T18:02:17Z Indexed on 2010/05/16 18:10 UTC
Read the original article Hit count: 189

Filed under:
|

Hello,

it gives me this error:

Exception in thread Thread-163:
Traceback (most recent call last):
  File "C:\Python26\lib\threading.py", line 532, in __bootstrap_inner
    self.run()
  File "C:\Python26\lib\threading.py", line 736, in run
    self.function(*self.args, **self.kwargs)
  File "C:\Users\Public\SoundLog\Code\Código Python\SoundLog\SoundLog.py", line 337, in getInfo
    self.data1 = copy.deepcopy(Auxiliar.DataCollection.getInfo(1))
  File "C:\Python26\lib\copy.py", line 162, in deepcopy
    y = copier(x, memo)
  File "C:\Python26\lib\copy.py", line 254, in _deepcopy_dict
    for key, value in x.iteritems():
RuntimeError: dictionary changed size during iteration

while executing my python program.

How can I avoid this to happen?

Thanks in advance ;)

© Stack Overflow or respective owner

Related posts about python

Related posts about error