Which version of Python did you use?

On Tue, Apr 18, 2023 at 6:50 AM Cat22 <[email protected]> wrote:

> 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'
>
> On Tuesday, April 18, 2023 at 6:27:26 AM UTC-7 Cat22 wrote:
>
>> 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?
>> On Monday, April 17, 2023 at 5:44:46 PM UTC-7 Cat22 wrote:
>>
>>> I implemented the changes and now it seems to be working - thanks!
>>>
>>> On Monday, April 17, 2023 at 4:58:20 PM UTC-7 Tom Keffer wrote:
>>>
>>>> See issue #862 <https://github.com/weewx/weewx/issues/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
>>>>
>>>> On Mon, Apr 17, 2023 at 4:43 PM Cat22 <[email protected]> wrote:
>>>>
>>>>> 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
>>>>>
>>>>>
>>>>> --
>>>>> 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/02b87839-6bb3-4971-863e-7a0a23842f6dn%40googlegroups.com
>>>>> <https://groups.google.com/d/msgid/weewx-user/02b87839-6bb3-4971-863e-7a0a23842f6dn%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/33daf836-8fc8-4154-8bc8-5cd21cfaf011n%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/33daf836-8fc8-4154-8bc8-5cd21cfaf011n%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/CAPq0zECNiXkWfRuWRbDbxMFn_05-hCbfgNKsOG1n9SVTpScdwQ%40mail.gmail.com.

Reply via email to