Re: [weewx-user] Pillow and textsize/textwidth

2023-11-03 Thread Cat22
python 3.11.5 I see the issue tho (I think), I was using pip instead of pip3 On Thursday, November 2, 2023 at 12:03:58 AM UTC-7 vince wrote: > In a docker container using the most recent tumbleweed image "pip3 > install --break-system-packages --user paho-mqtt" worked for me, as one >

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-02 Thread vince
In a docker container using the most recent tumbleweed image "pip3 install --break-system-packages --user paho-mqtt" worked for me, as one example. I installed python311 and python311-pip if that matters. On Wednesday, November 1, 2023 at 10:57:58 PM UTC-7 Cat22 wrote: opesSuse Tumbleweed

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-02 Thread vince
And your python and versions ? On Wednesday, November 1, 2023 at 10:57:58 PM UTC-7 Cat22 wrote: > opesSuse Tumbleweed 10-16-2023 > > On Wednesday, November 1, 2023 at 8:12:22 PM UTC-7 vince wrote: > >> Which precise os version are you running ? >> I can try to recreate your issue but I don't

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread Cat22
opesSuse Tumbleweed 10-16-2023 On Wednesday, November 1, 2023 at 8:12:22 PM UTC-7 vince wrote: > Which precise os version are you running ? > I can try to recreate your issue but I don't understand which version is > which for anything SUSE. > > On Wednesday, November 1, 2023 at 8:46:06 AM

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread vince
Which precise os version are you running ? I can try to recreate your issue but I don't understand which version is which for anything SUSE. On Wednesday, November 1, 2023 at 8:46:06 AM UTC-7 Cat22 wrote: > *Tom Keffer: * > Thanks for the updated genplot.py, i just now copied it over, > I

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread Tom Keffer
I must admit, I've never tried it! But, virtual environments definitely work. Indeed, if you're using pip, they are the preferred installation method for V5. On Wed, Nov 1, 2023 at 6:30 PM Cat22 wrote: > I tried that --break-system-packages but no matter where i inserted it it > didn't like it

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread Cat22
I tried that --break-system-packages but no matter where i inserted it it didn't like it and I couldn't find an example of its proper use. also, pip --help doesn't list that option On Wednesday, November 1, 2023 at 5:35:16 PM UTC-7 Tom Keffer wrote: > This problem is caused by the

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread Tom Keffer
This problem is caused by the enforcement of PEP 668 . It will become more and more common in the future. The solution is to use a virtual environment. Alternatively you can tell pip, "I don't care! Install anyway!" by using the option "--break-system-packages".

Re: [weewx-user] Pillow and textsize/textwidth

2023-11-01 Thread Cat22
*Tom Keffer: * Thanks for the updated genplot.py, i just now copied it over, I watched it through a cycle and the problem has resolved itself. I'll double check after a few hours just to be sure. *As to your question:* I cant roil back because Ysat shows no previous version of pillow and when i

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-31 Thread Denny Page
That’s got it, thanks. > On Oct 31, 2023, at 09:50, Tom Keffer wrote: > > Sorry about that. Commit 2482eebf also needed to be cherry-picked. Try HEAD > now. > > On Tue, Oct 31, 2023 at 9:25 AM Greg Troxel > wrote: >> ANTIALIAS was also removed in 10: >> >>

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-31 Thread Tom Keffer
Sorry about that. Commit 2482eebf also needed to be cherry-picked. Try HEAD now. On Tue, Oct 31, 2023 at 9:25 AM Greg Troxel wrote: > ANTIALIAS was also removed in 10: > > https://pillow.readthedocs.io/en/stable/deprecations.html > > I suggest: > > don't set anti_alias > > change the code

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-31 Thread Greg Troxel
ANTIALIAS was also removed in 10: https://pillow.readthedocs.io/en/stable/deprecations.html I suggest: don't set anti_alias change the code per the above page -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-31 Thread Denny Page
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):

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Greg Troxel
Tom Keffer writes: > One of the reasons why I have come to prefer using pip and virtual > environments over the package installers. It's super easy to maintain > "known-good" versions of the Python run environment. Yes, but this leads to having multiple copies of everything and no way to audit

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Tom Keffer
One of the reasons why I have come to prefer using pip and virtual environments over the package installers. It's super easy to maintain "known-good" versions of the Python run environment. On Mon, Oct 30, 2023 at 7:21 AM Greg Troxel wrote: > Tom Keffer writes: > > > I've done exactly this.

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Greg Troxel
Tom Keffer writes: > I've done exactly this. The fix is in the master branch. Great, thanks. I've rebased and git has nicely decided that my cherry-pick and yours don't actually conflict and just taken yours. > I'm curious why you can't rollback your version of Pillow. I'm not the one

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Tom Keffer
I've done exactly this. The fix is in the master branch. Cat22: replace your version of genplot.py with this one . I'm curious why you can't rollback your version of Pillow. On Mon, Oct 30, 2023 at 5:28 AM Greg Troxel

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Greg Troxel
[top posting repaired] Cat22 writes: > On Tuesday, October 24, 2023 at 9:43:55 AM UTC-7 Greg Troxel wrote: > >> Tom Keffer writes: >> >> > This was fixed in commit dc4ab54 >> > < >> https://github.com/weewx/weewx/commit/dc4ab54b9a5935e7334dc0e9de97e5854204d6e7 >> >, >> > to appear in V5. >> >>

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-30 Thread Cat22
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 On Tuesday, October 24, 2023 at 9:43:55 AM UTC-7 Greg Troxel wrote: > Tom Keffer writes: > > > This

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Tom Keffer writes: > This was fixed in commit dc4ab54 > , > 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

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Tom Keffer writes: > This was fixed in commit dc4ab54 > , > to appear in V5. Thanks for pointing thta tout. Can that be cherrypicked to the v4 (current stabl AIUI) branch? I can certainly try it. (My impression

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Tom Keffer
This was fixed in commit dc4ab54 , to appear in V5. On Tue, Oct 24, 2023 at 6:22 AM Greg Troxel wrote: > Rolling back to py-Pillow 9.5.0, plots generate. That's ok for me today > because the box that runs weewx

Re: [weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Rolling back to py-Pillow 9.5.0, plots generate. That's ok for me today because the box that runs weewx runs only weewx, but it's obviously not long-term viable. (I'm not trying to run v5, because it's structurally different (no setup.py) and thus a fair bit of work, and because it's not

[weewx-user] Pillow and textsize/textwidth

2023-10-24 Thread Greg Troxel
Sorry if this has been discussed before, but tldr: the tip of master seems incompatible with Pillow 10 while declaring that it is compatible. I'm doing the usual quarterly updating of packages. I now have py311-Pillow-10.0.1 which is consistent with requirements.txt. My weewx sources are at