ProtocolError: Expected 15 values but got 16 values, in row 0 [poll]

A
Akubuof (220 points)
1 2 3
asked Nov 22, 2021 in Programming in Python by Akubuof (220 points)
closed Nov 22, 2021 by andrea.sterbini
I tried working on the replit mario on programming unit1, after adjusting the matrix and i turn all red colours to green and try to save it as luigi.png i get this error "ProtocolError: Expected 15 values but got 16 values, in row 0". Ok that doesnt work, then i try saving the original mario into luigi.png without doing any adjustment to mario it still pops the same error" ProtocolError: Expected 15 values but got 16 values, in row 0". why?

###############

i just found out why i was getting the error right now, it was because i downloaded a module called pypng on anoconda thinking it was the same png module which was on replit. So i deleted the module i installed on anaconda and used the one on replit
### no choices found for poll!
109 views
closed with note: resolved

2 Answers

rokshana03 (7140 points)
1 3 27
answered Nov 22, 2021 by rokshana03 (7,140 points)
Are you sure you adjusted the matrix correctly?  I'm no expert in this matrix topic as I'm still trying to learn myself but that type of error makes me think something may still be wrong in the matrix or you assigned one more value than needed on row 0?

I know this wasn't very helpful sigh
A
Akubuof (220 points)
1 2 3
commented Nov 22, 2021 by Akubuof (220 points)
i just found out why i was getting the error right now, it was because i downloaded a module called pypng on anoconda thinking it was the same png module which was on replit. So i deleted the module i installed on anaconda and used the one on replit.
rokshana03 (7140 points)
1 3 27
commented Nov 22, 2021 by rokshana03 (7,140 points)
ohh alright then, glad the issue u had is solved now!
A
Akubuof (220 points)
1 2 3
commented Nov 22, 2021 by Akubuof (220 points)
yes thank you for your contribution
gianluca5539 (9820 points)
3 6 44
answered Nov 22, 2021 by gianluca5539 (9,820 points)
Try to print the matrix and check visually for inconsistencies in the matrix
A
Akubuof (220 points)
1 2 3
commented Nov 22, 2021 by Akubuof (220 points)
The error was caused by using a different module.