I get an AttributeError when I try to create a new image in PIL
I get the error:
AttributeError: type object 'Image' has no attribute 'new'
When I run the code:
from PIL import Image
image = Image.new("RGB", (100, 100))
Voters
Ask coding questions
I get the error:
AttributeError: type object 'Image' has no attribute 'new'
When I run the code:
from PIL import Image
image = Image.new("RGB", (100, 100))
Instead of
try
then use
@SixBeeps I get the same error.
@SixBeeps I just ran another repl with that code. I guess it had to do with something that come before the code snippet I showed, becouse it worked.
@SixBeeps I don't know what happened, I got it working now.