Sono giorni che stò lavorando su questo esercizio, però per tutti i test (Tranne i primi 2) mi dà sempre questo errore. Cosa sbaglio?
TypeError: an integer is required (got type tuple) png.py:795: TypeError
During handling of the above exception, another exception occurred:
test_02.py:151:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_02.py:45: in do_test
p.salva_immagine(fileOutPNG)
program02.py:203: in salva_immagine
immagini.save(self.matrice, filename)
immagini.py:31: in save
pngimg.save(filename)
png.py:1336: in save
w.write(file, self.rows)
png.py:656: in write
nrows = self.write_passes(outfile, rows)
png.py:805: in write_passes
extend(row)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'
TypeError: an integer is required (got type tuple) png.py:795: TypeError
During handling of the above exception, another exception occurred:
test_02.py:151:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
test_02.py:45: in do_test
p.salva_immagine(fileOutPNG)
program02.py:203: in salva_immagine
immagini.save(self.matrice, filename)
immagini.py:31: in save
pngimg.save(filename)
png.py:1336: in save
w.write(file, self.rows)
png.py:656: in write
nrows = self.write_passes(outfile, rows)
png.py:805: in write_passes
extend(row)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'tuple'