After spending time in the Pillow github issues, I ended up getting this 
working by installing several packages:



*RUN apt-get install zlib1g-dev libjpeg-dev build-essential -yRUN python -m 
pip install Pillow*

This allows me to install pillow, have it recognized by python, and 
therefore build my belchertown frontend!
On Monday, January 18, 2021 at 4:56:42 AM UTC-6 [email protected] wrote:

> Good point. Here are the startup logs <https://pastebin.com/PL1Vn0Zd> - 
> looks like it is running the python version I was expecting: 3.9.0. (Makes 
> sense since the base docker image is a python 3 base image)
>
> On Sunday, January 17, 2021 at 10:37:08 PM UTC-6 gjr80 wrote:
>
>> Appreciate you have installed PIL under python3 but are you sure that 
>> WeeWX is being run under python3 and not python2? I see nothing in what you 
>> have posted that confirms this one way or another. The python version is 
>> logged when starting WeeWX. What does the log say when you start WeeWX?
>>
>> Gary
>>
>> On Monday, 18 January 2021 at 14:14:24 UTC+10 [email protected] wrote:
>>
>>> Hey all,
>>> I've recently begun the process of migrating my existing weewx install 
>>> to my
>>> kubernetes cluster, using this base docker image 
>>> <https://github.com/felddy/weewx-docker/blob/develop/Dockerfile>
>>> I'm still getting used to the setup, but it seems to be pulling data 
>>> from my
>>> weather station and populating my sqlite db. However, I'm running into 
>>> problems
>>> generating images due to a ModuleNotFoundError. Below, take a look at 
>>> some of
>>> the results of my troubleshooting.
>>>
>>>
>>>    - Here's my setup:
>>>
>>> root@weewx-84bfc8b796-gwrr7:/home/weewx# python --version
>>> Python 3.9.0
>>> root@weewx-84bfc8b796-gwrr7:/home/weewx# pip --version
>>> pip 20.2.3 from /opt/venv/lib/python3.9/site-packages/pip (python 3.9)
>>> root@weewx-84bfc8b796-gwrr7:/home/weewx# cat version.txt
>>> __version__ = "4.1.1"
>>>
>>>    - Here's my weewx logs showing the ModuleNotFoundError 
>>>    <https://pastebin.com/6gUd9QVA>
>>>    - I found a previous thread 
>>>    <https://groups.google.com/g/weewx-user/c/_LFDf05fEIA>discussing 
>>>    this issue, but it didn't seem to describe successful workarounds. 
>>>    - Here's the output from working through that thread 
>>>       <https://pastebin.com/nUgMUbJ2>
>>>    - Looking at this issue outside the context of weewx, it seemed 
>>>    reasonable to try to install pillow via pip, but doing so resulted in 
>>> this 
>>>    long, ugly error <https://pastebin.com/uK27NWTY>
>>>    
>>> Wondering if anybody has navigated this issue before. Thanks!
>>>
>>>
>>>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/bb65b999-dca2-47a6-bd90-77e43e1c777an%40googlegroups.com.

Reply via email to