Thanks again. Backing-off to 9.4.0, and using the modified sqlite.py to 
take care of the missing RADIAN function, has apparently done the trick!

Best - 

Sam

On Sunday, July 2, 2023 at 5:50:12 PM UTC-6 Tom Keffer wrote:

> Oops. Foiled by Issue #862 <https://github.com/weewx/weewx/issues/862>!
>
> Try an even earlier version of Pillow. Say, 9.4.0.
>
> -tk
>
> On Sun, Jul 2, 2023 at 4:39 PM Sam Finn <[email protected]> wrote:
>
>> Hi Tom - 
>>
>> Thanks much! I was running w/Pillow 10.0. I backed-off to 9.5.0 but am 
>> not getting a different error: 
>>
>> *weewx* sudo bin/wee_reports weewx.conf
>>
>> Generating as of last timestamp in the database.
>>
>> Using configuration file weewx.conf
>>
>> Traceback (most recent call last):
>>
>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 197, in run
>>
>>     obj.start()
>>
>>   File "/Users/Shared/weewx/bin/weewx/reportengine.py", line 385, in start
>>
>>     self.run()
>>
>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 42, in run
>>
>>     self.gen_images(self.gen_ts)
>>
>>   File "/Users/Shared/weewx/bin/weewx/imagegenerator.py", line 114, in 
>> gen_images
>>
>>     image = plot.render()
>>
>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 222, in render
>>
>>     self._renderDayNight(sdraw)
>>
>>   File "/Users/Shared/weewx/bin/weeplot/genplot.py", line 266, in 
>> _renderDayNight
>>
>>     sdraw.rectangle(((xleft,self.yscale[0]),
>>
>>   File "/Users/Shared/weewx/bin/weeplot/utilities.py", line 442, in 
>> rectangle
>>
>>     self.draw.rectangle(box_scaled, **options)
>>
>>   File "/Library/Python/3.9/site-packages/PIL/ImageDraw.py", line 294, in 
>> rectangle
>>
>>     self.draw.draw_rectangle(xy, fill, 1)
>>
>> ValueError: y1 must be greater than or equal to y0
>>
>> Are there further suggestions? 
>>
>> Again, thanks!
>>
>> Sam
>> On Sunday, July 2, 2023 at 4:10:30 PM UTC-6 Tom Keffer wrote:
>>
>>> This is a known problem caused by a change in Pillow, the imaging 
>>> library used by WeeWX.
>>>
>>> If you're on a Mac, you probably installed Pillow using pip. See what 
>>> version of Pillow you have by using these two methods.
>>>
>>> *python3 -m pip list -v*
>>>
>>> *python3 -c "import PIL;print(PIL.__version__)"*
>>>
>>>
>>> If it's 10.0, then this is the problem. The solution is to downgrade 
>>> your copy:
>>>
>>> *python3 -m pip install Pillow==9.5.0*
>>>
>>>
>>> If it's earlier than 10.0, then it's some other problem.
>>>
>>> -tk
>>>
>>>
>>> On Sun, Jul 2, 2023 at 2:30 PM Sam Finn <[email protected]> wrote:
>>>
>>>> Hi - 
>>>>
>>>> I'm hoping someone can help me get my weewx install working again. 
>>>>
>>>> Some time ago (last April) weewx stopped updating my web page. [Many 
>>>> things have been going on and I am only now and able to get to this.] 
>>>> There 
>>>> might have been a Mac OS update at that time; however, I simply don't 
>>>> know. 
>>>> The weewx.log file is showing the error message "AttributeError: tuype 
>>>> object 'ImageDraw' has no attribute 'textsize'". 
>>>>
>>>> I've updated my weewx installation to 4.9.1 and am using the vanilla 
>>>> weewx.conf file with the minimum system (Vantage) configuration: i.e., no 
>>>> special skins, etc. The weewx.log file shows the same error. 
>>>>
>>>> To my untrained eye I've checked that my python3 installation is 
>>>> complete, at least as far as packages specified in the docs go. 
>>>>
>>>> Attached are
>>>> * the section of the weewx.log file for the most recent weewx run; 
>>>> * the [Station] section of the weewx.conf file
>>>>
>>>> I'm running Vantage Vue h/w (2018) with an old-style weatherlink 
>>>> console connected to my desktop over ethernet via a Davis datalogger (also 
>>>> 2018 vintage). 
>>>>
>>>> Thanks much for any help/guidance. 
>>>>
>>>>
>>>>
>>>>
>>>> -- 
>>>> 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/704f5d10-8c3a-4727-85bb-ec3e616aeba5n%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/weewx-user/704f5d10-8c3a-4727-85bb-ec3e616aeba5n%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>> -- 
>> 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/749c7cc7-aa01-4aa8-83fa-55dca8d06619n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/weewx-user/749c7cc7-aa01-4aa8-83fa-55dca8d06619n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/1cbceed1-6d12-4652-8924-c737f396ee40n%40googlegroups.com.

Reply via email to