I found the answer when I looked at the code for WeeWx v4.4.0.  Old code 
simply has:

import Image

This needs amending to:

try:
    from PIL import Image, ImageDraw
except ImportError:
    import Image, ImageDraw

I had old code on a newly build SD card.


On Friday, 26 February 2021 at 12:17:28 UTC Auchtermuchty Weather wrote:

> I see the colour on first cell only problem is fixed, I like the new 
> images. I'll give it a go.
>
> BTW I had problems installing an earlier version as:
>
>    1. import Image cause an error, and the way to resolve it (apt-get) in 
>    the FAQ didn't work on a brand new Raspbian installation.  I suspect 
>    systems that have been upgraded already had the necessary library.  This 
>    URL seems to cover the necessary gound:  Why can't Python import Image 
>    from PIL? - Stack Overflow 
>    
> <https://stackoverflow.com/questions/26505958/why-cant-python-import-image-from-pil>
>    2. Again probably because I started with a new Raspbian image, I 
>    didn't have the necessary font loaded.  I put my solution to this in 
>    'issues'.
>
> I've got a spare SD card, I think I might start over to install this as 
> I've messed around somewhat.  I copied the database over from my live 
> system to get realistic data rather than turn on the simulator.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/546ad529-0a7e-48f1-b1fb-2ff70a2844d5n%40googlegroups.com.

Reply via email to