With this version against pillow 10.0.1, I am receiving an error for the
antialias use:
Caught unrecoverable exception in generator
'weewx.imagegenerator.ImageGenerator'
**** module 'PIL.Image' has no attribute 'ANTIALIAS'
**** Traceback (most recent call last):
**** File "/home/weewx/bin/weewx/reportengine.py", line 197, in
run
**** obj.start()
**** File "/home/weewx/bin/weewx/reportengine.py", line 385, in
start
**** self.run()
**** File "/home/weewx/bin/weewx/imagegenerator.py", line 42,
in run
**** self.gen_images(self.gen_ts)
**** File "/home/weewx/bin/weewx/imagegenerator.py", line 114,
in gen_images
**** image = plot.render()
**** ^^^^^^^^^^^^^
**** File "/home/weewx/bin/weeplot/genplot.py", line 230, in
render
**** image.thumbnail((self.image_width / self.anti_alias,
self.image_height / self.anti_alias), Image.ANTIALIAS)
****
^^^^^^^^^^^^^^^
**** AttributeError: module 'PIL.Image' has no attribute
'ANTIALIAS'
**** Generator terminated
On Monday, October 30, 2023 at 6:23:27 AM UTC-7 Tom Keffer wrote:
> I've done exactly this. The fix is in the master branch.
>
> Cat22: replace your version of genplot.py with this one
> <https://raw.githubusercontent.com/weewx/weewx/master/bin/weeplot/genplot.py>
> .
>
> I'm curious why you can't rollback your version of Pillow.
>
> On Mon, Oct 30, 2023 at 5:28 AM Greg Troxel <[email protected]> wrote:
>
>> [top posting repaired]
>>
>> Cat22 <[email protected]> writes:
>>
>> > On Tuesday, October 24, 2023 at 9:43:55 AM UTC-7 Greg Troxel wrote:
>> >
>> >> Tom Keffer <[email protected]> writes:
>> >>
>> >> > This was fixed in commit dc4ab54
>> >> > <
>> >>
>> https://github.com/weewx/weewx/commit/dc4ab54b9a5935e7334dc0e9de97e5854204d6e7
>> >> >,
>> >> > to appear in V5.
>> >>
>> >> I did a cherry-pick of this onto master, which succeeded with no
>> >> conflicts. Rerunning setup.py build/install, and then reinstalling
>> >> Pillow 10.0.1 (updating it from 9.x), I am able to run wee_reports with
>> >> no issues.
>> >>
>> >> I rebooted and waited for a new archive interval, and I am getting new
>> >> graphs reliably, as far as I can tell.
>> >>
>> >> So cherry-pick/push on master should be safe.
>>
>> > How do i get this fix? and how do i install it so it only upgrades my
>> weewx
>> > without loss of configuration data?
>> > I don't have the option to roll back pillow and I am currently on
>> pillow
>> > 10.0.1-1
>> >
>>
>> Ideally, someone who can write the repo would cherry-pick and push to
>> the stable branch, and then you'd just check that out and build.
>> Until then, you'll need to clone the repo, and
>> ```
>> git cherry-pick dc4ab54b9a5935e7334dc0e9de97e5854204d6e7
>> ```
>> and then build.
>>
>> If this sounds mysterious, read this book carefully, and then it will
>> make sense:
>>
>> https://git-scm.com/book/en/v2
>>
>>
>>
>>
>> --
>> 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/rmibkcgnvkk.fsf%40s1.lexort.com
>> .
>>
>
--
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/dabfda51-2859-480d-a725-8ecaf9a63405n%40googlegroups.com.