Wow. It never even occurred to me that PIL shouldn't be there at all. The files were there from early May when I cut over to 4.1 and saw some graphics issues with an extension. It could be even older. I probably ran uninstall / reinstall on the Python dependencies from ~/weewx. The native macOS Python doesn't change often, so it didn't matter. But I just switched over to the HomeBrew version when graphics generation broke. Is that worth a caveat on the macOS installation page? Thanks for your help
On Saturday, August 1, 2020 at 5:28:54 AM UTC-7 [email protected] wrote: > Ah! So, it looks like the problem was caused by installing Pillow from the > weewx home directory at some point. > > I can't tell you how many times that has happened to me. > > -tk > > > On Fri, Jul 31, 2020 at 7:23 PM [email protected] <[email protected]> > wrote: > >> Solved. There were residual py*37 files in PIL, so >> rm -rf ~/weewx/bin/PIL/* >> followed by a python3 setup.py install (I'm not sure that was needed) >> and it's all good. >> On Friday, July 31, 2020 at 6:15:27 PM UTC-7 [email protected] wrote: >> >>> You've got me stumped. I would try the uninstall/install. Make sure you >>> don't do it from the weewx home directory. >>> >>> But, before you do, how about seeing what's in that home directory? >>> >>> *ls -l /Users/rycweather/weewx/* >>> >>> Then try the uninstall/install: >>> >>> *cd ~* >>> >>> >>> *pip3 uninstall PILpip3 uninstall Pillowpip3 install Pillow* >>> >>> On Fri, Jul 31, 2020 at 5:27 PM [email protected] <[email protected]> >>> wrote: >>> >>>> That looks ok also. >>>> └─[$] <> python3 -c "from PIL import _imaging; print(_imaging.__file__)" >>>> /usr/local/lib/python3.8/site-packages/PIL/_ >>>> imaging.cpython-38-darwin.so >>>> >>>> On Friday, July 31, 2020 at 3:32:19 PM UTC-7 [email protected] wrote: >>>> >>>>> Looking back at your original post, I'm wondering if you're missing >>>>> the C library _imaging. Try this: >>>>> >>>>> *python3 -c "from PIL import _imaging; print(_imaging.__file__)"* >>>>> >>>>> You should get something like >>>>> >>>>> /usr/local/lib/python3.8/site-packages/PIL/_ >>>>> imaging.cpython-37m-darwin.so >>>>> >>>>> If you get an exception, then try uninstalling both PIL (in case it is >>>>> present; it shouldn't be), and Pillow, then reinstalling just Pillow: >>>>> >>>>> >>>>> >>>>> >>>>> *pip3 uninstall PILpip3 uninstall Pillowpip3 install Pillow* >>>>> >>>>> See if that helps. >>>>> >>>>> -tk >>>>> >>>>> >>>>> >>>>> On Fri, Jul 31, 2020 at 2:12 PM [email protected] <[email protected]> >>>>> wrote: >>>>> >>>>>> Seems OK. >>>>>> └─[$] <> pip3 list -v >>>>>> Package Version Location Installer >>>>>> ---------- ------- -------------------------------------- --------- >>>>>> Cheetah3 3.2.5 /usr/local/lib/python3.8/site-packages pip >>>>>> configobj 5.0.6 /usr/local/lib/python3.8/site-packages pip >>>>>> ephem 3.7.7.0 /usr/local/lib/python3.8/site-packages pip >>>>>> Pillow 7.2.0 /usr/local/lib/python3.8/site-packages pip >>>>>> pip 20.2 /usr/local/lib/python3.8/site-packages pip >>>>>> pyephem 3.7.7.0 /usr/local/lib/python3.8/site-packages pip >>>>>> pyserial 3.4 /usr/local/lib/python3.8/site-packages pip >>>>>> pyusb 1.0.2 /usr/local/lib/python3.8/site-packages pip >>>>>> setuptools 49.2.0 /usr/local/lib/python3.8/site-packages >>>>>> six 1.15.0 /usr/local/lib/python3.8/site-packages pip >>>>>> wheel 0.34.2 /usr/local/lib/python3.8/site-packages >>>>>> >>>>>> >>>>>> -- >>>>>> 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/2ee63fd4-d60e-4ebe-85bd-adf2ae3e36adn%40googlegroups.com >>>>>> >>>>>> <https://groups.google.com/d/msgid/weewx-user/2ee63fd4-d60e-4ebe-85bd-adf2ae3e36adn%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/f220ff59-7d20-43c8-a024-8b860bada7ffn%40googlegroups.com >>>> >>>> <https://groups.google.com/d/msgid/weewx-user/f220ff59-7d20-43c8-a024-8b860bada7ffn%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/df2bbe7c-f403-4cb9-9a57-dfc717b7365bn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/df2bbe7c-f403-4cb9-9a57-dfc717b7365bn%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/8a424b58-49ad-4aa4-9013-da4c948b5f2cn%40googlegroups.com.
