Getting this error in as random, sometimes appear, sometimes not:
for i in range(1,32):
sezione = "GRP"+str(i)
dizionarioGRP = dict(config.items(sezione))
print int(dizionarioGRP['r'])
and this is the error
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/home/pi/gigi.py", line 436, in run
self.esegui()
File "/home/pi/gigi.py", line 307, in esegui
L.gruppo(idgruppo)
File "/home/pi/gigi1.py", line 282, in gruppo
dizionarioGRP = dict(config.items(sezione))
File "/usr/lib/python2.7/ConfigParser.py", line 655, in items
for option in options]
File "/usr/lib/python2.7/ConfigParser.py", line 663, in _interpolate
if value and "%(" in value:
TypeError: argument of type 'int' is not iterable
why it is referring as int, if I've converted it in a string?