As an update to this, I uninstalled Pillow 9.5.0 and then installed Pillow 9.4.0 and now the error is gone.
However, I am still having some problem and I'm struggling to identify exactly what because I'm not sure how to check the logs on MacOS. I'm sorry for the noob question, but can someone please guide me on where weewx is logging to? I can confirm that it is not /var/log/weewx.log or /var/tmp/weewx.log. Originally I had added a [Logging] section in weewx.conf but now the weewx 4.10.2 has removed that functionality I am not sure how else to log weewx output to a different file. Appreciate the help, thanks. On Sunday, May 21, 2023 at 12:52:13 PM UTC+4 [email protected] wrote: > Hi Tom, > > Thanks for the reply. You are right, I removed the [Logging] section from > the weewx.conf file and then it ran successfully and I can see all the > output. Now I am running into another problem where the data is not being > posted to windguru. Please can you check the output here > <https://u.pcloud.link/publink/show?code=XZyMg6VZnvhMyWUEdMmUAIivQYom78uVLRUy> > > and give me your opinion of what is wrong? I also posted a small part of it > below. Thanks in advance. > > 'None', 'humidex': 'None', 'inDewpoint': 'None', 'maxSolarRad': 'None', > 'outHumidity': 'None', 'outTemp': 'None', 'outTempBatteryStatus': '2.76', > 'pressure': 'None', 'radiation': '692', 'rain': '0.0', 'rainRate': '0.0', > 'usUnits': '1', 'UV': '9.85', 'windBatteryStatus': '2.76', 'windchill': > 'None', 'windDir': '35', 'windrun': 'None' > REC: 2023-05-21 10:30:00 +04 (1684650600) 'altimeter': 'None', > 'appTemp': 'None', 'barometer': 'None', 'cloudbase': 'None', 'dateTime': > '1684650600', 'dewpoint': 'None', 'ET': '0.0008638609251008569', > 'heatindex': 'None', 'humidex': 'None', 'inDewpoint': 'None', 'interval': > '5.0', 'maxSolarRad': 'None', 'outHumidity': 'None', 'outTemp': 'None', > 'outTempBatteryStatus': '2.7618', 'pressure': 'None', 'radiation': '471.6', > 'rain': '0.0', 'rainRate': '0.0', 'usUnits': '1', 'UV': > '7.0120000000000005', 'windBatteryStatus': '2.7618', 'windchill': 'None', > 'windrun': 'None' > > 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 "/usr/local/lib/python3.10/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 > > On Saturday, May 20, 2023 at 3:40:00 PM UTC+4 Tom Keffer wrote: > >> By default, V4.10.2 does not include a 'rotate' logging handler. It has >> to be added. >> >> By any chance, do you have a [Logging] section in weewx.conf? If so, what >> does it say? >> >> On Sat, May 20, 2023 at 1:38 AM [email protected] <[email protected]> >> wrote: >> >>> Hi, >>> >>> I have done many successful installations of weewx on raspberry pi and I >>> previously installed weewx on MacOS successfully. About a month ago, the >>> MacOS station stopped reporting so I have been troubleshooting it. I can't >>> figure out what is going on because I am very poor with python. Can anyone >>> give me any suggestions? I have tried to remove and reinstall python3 using >>> brew - currently version 3.10.8 is running when I type 'python3 --version'. >>> >>> I also updated weewx to 4.10.2 and from what i can see everything is >>> installed and working, including all dependencies. But still when I >>> run 'sudo python3 ./bin/weewxd weewx.conf' I get python errors. Please can >>> someone see below and give me any suggestions? Thank you >>> >>> apple@Mac-mini weewx % sudo python3 ./bin/weewxd weewx.conf >>> Traceback (most recent call last): >>> File >>> "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", >>> >>> line 565, in configure >>> handler = self.configure_handler(handlers[name]) >>> File >>> "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", >>> >>> line 723, in configure_handler >>> klass = self.resolve(cname) >>> File >>> "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", >>> >>> line 383, in resolve >>> name = s.split('.') >>> AttributeError: 'NoneType' object has no attribute 'split' >>> >>> The above exception was the direct cause of the following exception: >>> >>> Traceback (most recent call last): >>> File "/Users/Shared/weewx/./bin/weewxd", line 249, in <module> >>> main() >>> File "/Users/Shared/weewx/./bin/weewxd", line 98, in main >>> weeutil.logger.setup(options.log_label, config_dict) >>> File "/Users/Shared/weewx/bin/weeutil/logger.py", line 139, in setup >>> logging.config.dictConfig(log_dict) >>> File >>> "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", >>> >>> line 811, in dictConfig >>> dictConfigClass(config).configure() >>> File >>> "/usr/local/Cellar/[email protected]/3.10.8/Frameworks/Python.framework/Versions/3.10/lib/python3.10/logging/config.py", >>> >>> line 572, in configure >>> raise ValueError('Unable to configure handler ' >>> ValueError: Unable to configure handler 'rotate' >>> apple@Mac-mini weewx % >>> >>> -- >>> 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/298c4f09-6ad2-40af-90c6-4469811ac778n%40googlegroups.com >>> >>> <https://groups.google.com/d/msgid/weewx-user/298c4f09-6ad2-40af-90c6-4469811ac778n%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/f43e421a-a238-463b-8756-50d26375ce98n%40googlegroups.com.
