I've just figured out that it's because of the format indicator. My file is P3. The Image constructor I used is not compatible with P3. I changed my file to P6 and it recognized the data. So I need another way of declaring an Image object for P3 format ppm file. Any ideas there?
Homework Statement
I'm writing a program that will do simple image editing with ppm files. I can only use the graphics library and things in there. No PIL or Image module.
My problem is that I get an error that says "couldn't recognize data in image file "sole.ppm"
I know for a fact it is...