wee_reports fails

183 views
Skip to first unread message

Cat22

unread,
Apr 17, 2023, 7:43:03 PM4/17/23
to weewx-user
A recent upgrade on openSuse Tumbleweed broke weewx 4.0.0. I fixed it by installing python 3.10 and the modules configobj, usb, Pillow, Cheetah3 and pyserial. so now i get my web output ok but wee_reports fails, can anyone help me?

# ./wee_reports  
Using configuration file /usr/local/bin/weewx/weewx.conf
Generating for all time
Traceback (most recent call last):
 File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 197, in run
   obj.start()
 File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 280, in start
   self.run()
 File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 41, in run
   self.genImages(self.gen_ts)
 File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 263, in genImages
   image = plot.render()
 File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 209, in render
   self._renderDayNight(sdraw)
 File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 245, in _renderDayNight
   sdraw.rectangle(((xleft,self.yscale[0]),
 File "/usr/local/bin/weewx/bin/weeplot/utilities.py", line 420, in rectangle
   self.draw.rectangle(box_scaled, **options)
 File "/usr/lib64/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
Traceback (most recent call last):
 File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 197, in run
   obj.start()
 File "/usr/local/bin/weewx/bin/weewx/reportengine.py", line 280, in start
   self.run()
 File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 41, in run
   self.genImages(self.gen_ts)
 File "/usr/local/bin/weewx/bin/weewx/imagegenerator.py", line 263, in genImages
   image = plot.render()
 File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 209, in render
   self._renderDayNight(sdraw)
 File "/usr/local/bin/weewx/bin/weeplot/genplot.py", line 245, in _renderDayNight
   sdraw.rectangle(((xleft,self.yscale[0]),
 File "/usr/local/bin/weewx/bin/weeplot/utilities.py", line 420, in rectangle
   self.draw.rectangle(box_scaled, **options)
 File "/usr/lib64/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


Tom Keffer

unread,
Apr 17, 2023, 7:58:20 PM4/17/23
to weewx...@googlegroups.com
See issue #862.

Bottom line: it's a problem with Pillow V9.5.0. Either install an earlier version of Pillow, or install the weewx workaround.

-tk

--
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 weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/02b87839-6bb3-4971-863e-7a0a23842f6dn%40googlegroups.com.

Cat22

unread,
Apr 17, 2023, 8:44:46 PM4/17/23
to weewx-user
I implemented the changes and now it seems to be working - thanks!

Cat22

unread,
Apr 18, 2023, 9:27:26 AM4/18/23
to weewx-user
I am getting a lot of core dumps now from weewx but i don't now how to narrow it down to whats wrong.
What version of python does weewx 4.0.0 require?

Cat22

unread,
Apr 18, 2023, 9:50:11 AM4/18/23
to weewx-user
Caught this in weewx.log
CRITICAL __main__: Caught unrecoverable exception:
CRITICAL __main__:     ****  'StdReportEngine' object has no attribute 'isAlive'
CRITICAL __main__:     ****  Traceback (most recent call last):
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 195, in run
CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.CHECK_LOOP, packet=packet))
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
CRITICAL __main__:     ****      callback(event)
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 578, in check_loop
CRITICAL __main__:     ****      raise BreakLoop
CRITICAL __main__:     ****  weewx.engine.BreakLoop
CRITICAL __main__:     ****
CRITICAL __main__:     ****  During handling of the above exception, another exception occurred:
CRITICAL __main__:     ****
CRITICAL __main__:     ****  Traceback (most recent call last):
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewxd", line 154, in main
CRITICAL __main__:     ****      engine.run()
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 202, in run
CRITICAL __main__:     ****      self.dispatchEvent(weewx.Event(weewx.POST_LOOP))
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 224, in dispatchEvent
CRITICAL __main__:     ****      callback(event)
CRITICAL __main__:     ****    File "/usr/local/bin/weewx/bin/weewx/engine.py", line 776, in launch_report_thread
CRITICAL __main__:     ****      if self.thread and self.thread.isAlive():
CRITICAL __main__:     ****                         ^^^^^^^^^^^^^^^^^^^
CRITICAL __main__:     ****  AttributeError: 'StdReportEngine' object has no attribute 'isAlive'

Tom Keffer

unread,
Apr 18, 2023, 10:14:51 AM4/18/23
to weewx...@googlegroups.com
Which version of Python did you use?

Message has been deleted

Cat22

unread,
Apr 22, 2023, 12:08:35 AM4/22/23
to weewx-user
I upgraded to the latest weewx and its run several days now and all is well
No more core dumps and no errors showing in the log or by journalctl
I have python 3.11.2 as default but there are a couple versions actually installed
ps: I deleted my replay post of a few hours ago, and replaced it with this one
because a typo completely changed its meaning and there didn't seem to be a
way to edit it - sorry
Reply all
Reply to author
Forward
0 new messages