Forum Archive

[Module Missing] No module named ImageColor

thangdo

Hi,

I have recently installed Pythonista on my iPad.
Upon running some of the sample codes, most of them produced this error: "No module named ImageColor" when I try this: "from ImageColor import getrgb"

Although, looking at the documentation suggests that such module should exist. Perhaps I was overlooking something.
Either way, please help me with this error.
Much appricated.

Thang

omz

Try from PIL import ImageColor instead.

Edit: In your example, it would be from PIL.ImageColor import getrgb.