Ah, the changed behaviour of max() under python3. Try this: 1. rename your existing /Users/rycweather/weewx/bin/user/stackedwindrose.py to stackedwindrose_300.py 2. download this version of stackedwindrose.py <https://raw.githubusercontent.com/gjr80/weewx-stackedwindrose/master/bin/user/stackedwindrose.py> to the /Users/rycweather/weewx/bin/user directory 3. restart WeeWX
Gary On Sunday, 7 June 2020 08:13:16 UTC+10, Jerry Keefe wrote: > > Getting errors with V 3.0 and Weewx 4.1.1, macOS 10.15.5 python3 3.8.3 > > weewx[86199] INFO __main__: Starting up weewx version 4.1.1 > weewx[86199] INFO weewx.engine: Clock error is -3.87 seconds (positive is > fast) > weewx[86199] INFO weewx.engine: Using binding 'wx_binding' to database > 'weewx.sdb' > weewx[86199] INFO weewx.manager: Starting backfill of daily summaries > weewx[86199] INFO weewx.engine: Starting main packet loop. > weewx[86199] INFO weewx.manager: Added record 2020-06-06 14:55:00 PDT > (1591480500) to database 'weewx.sdb' > weewx[86199] INFO weewx.manager: Added record 2020-06-06 14:55:00 PDT > (1591480500) to daily summary in 'weewx.sdb' > weewx[86199] INFO weewx.restx: Wunderground-PWS: Published record > 2020-06-06 14:55:00 PDT (1591480500) > weewx[86199] INFO weewx.restx: StationRegistry: Published record > 2020-06-06 14:55:00 PDT (1591480500) > weewx[86199] INFO weewx.cheetahgenerator: Generated 14 files for report > StandardReport in 1.00 seconds > weewx[86199] INFO weewx.imagegenerator: Generated 12 images for report > StandardReport in 0.47 seconds > weewx[86199] INFO weewx.reportengine: Copied 14 files to > /Users/rycweather/www > weewx[86199] INFO weewx.cheetahgenerator: Generated 8 files for report > SeasonsReport in 1.23 seconds > weewx[86199] INFO weewx.imagegenerator: Generated 14 images for report > SeasonsReport in 0.40 seconds > weewx[86199] INFO weewx.reportengine: Copied 5 files to > /Users/rycweather/www/seasons > weewx[86199] INFO weewx.cheetahgenerator: Generated 6 files for report > SmartphoneReport in 0.09 seconds > weewx[86199] INFO weewx.imagegenerator: Generated 6 images for report > SmartphoneReport in 0.10 seconds > weewx[86199] INFO weewx.reportengine: Copied 6 files to > /Users/rycweather/www/smartphone > weewx[86199] ERROR weewx.reportengine: Caught unrecoverable exception in > generator 'user.stackedwindrose.StackedWindRoseImageGenerator' > weewx[86199] ERROR weewx.reportengine: **** '>' not supported > between instances of 'NoneType' and 'float' > weewx[86199] ERROR weewx.reportengine: **** Traceback (most > recent call last): > > weewx[86199] ERROR weewx.reportengine: **** File > "/Users/rycweather/weewx/bin/weewx/reportengine.py", line 197, in run > > weewx[86199] ERROR weewx.reportengine: **** obj.start() > > weewx[86199] ERROR weewx.reportengine: **** File > "/Users/rycweather/weewx/bin/weewx/reportengine.py", line 280, in start > > weewx[86199] ERROR weewx.reportengine: **** self.run() > > weewx[86199] ERROR weewx.reportengine: **** File > "/Users/rycweather/weewx/bin/user/stackedwindrose.py", line 226, in run > > weewx[86199] ERROR weewx.reportengine: **** > self.gen_images(self.gen_ts) > > weewx[86199] ERROR weewx.reportengine: **** File > "/Users/rycweather/weewx/bin/user/stackedwindrose.py", line 336, in > gen_images > > weewx[86199] ERROR weewx.reportengine: **** _max_speed = > max(speed_data.value) > > weewx[86199] ERROR weewx.reportengine: **** TypeError: '>' not > supported between instances of 'NoneType' and 'float' > > weewx[86199] ERROR weewx.reportengine: **** Generator terminated > > > On Friday, June 5, 2020 at 11:45:58 PM UTC-7, gjr80 wrote: >> >> My apologies for the delays, a few issues merging the stacked windrose >> code from WeeWX-WD and weewx-stackedwindrose. Should be taken care of now >> and weewx-stackedwidrose will run under WeeWX 3.2+ or 4.x with python 2.7 >> or 3.x. The release can be found here >> <https://github.com/gjr80/weewx-stackedwindrose/releases>. >> >> I should point out there are a couple of manual edits/actions you will >> need to take if upgrading from v2.1.1 or earlier. These are covered in the >> Upgrading Instructions in the readme. >> >> As usual if any issues please let me know. >> >> Gary >> >> On Saturday, 6 June 2020 01:42:04 UTC+10, Darth Weber wrote: >>> >>> Dear Gary, love your windrose - but have same issue with my new weewx 4 >>> - is there any solution for that error ? >>> >>> Am Dienstag, 5. Mai 2020 05:16:06 UTC+2 schrieb gjr80: >>>> >>>> Yes I will post here when released. >>>> >>>> Gary >>>> >>>> >>>> -- 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/bf64527e-9908-4d36-8c45-8622c60f28d0o%40googlegroups.com.
