Error in bin/weeplot/genplot.py

71 views
Skip to first unread message

hesf...@gmail.com

unread,
Apr 8, 2021, 2:07:28 AM4/8/21
to weewx-user

I did the update in genplot.py, now I get the following error

tkeffer committed 10 hours ago  bin/weeplot/genplot.py

Apr  8 07:45:58 wetter weewx-weewx[26692] INFO weewx.cheetahgenerator: Generated 1 files for report MobileReport in 0.04 seconds
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.imagegenerator.ImageGenerator'
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****  object of type 'map' has no len()
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 196, in run
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      obj.start()
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/reportengine.py", line 281, in start
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      self.run()
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 42, in run
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      self.genImages(self.gen_ts)
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weewx/imagegenerator.py", line 265, in genImages
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      image = plot.render()
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeplot/genplot.py", line 206, in render
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      self._renderTopBand(draw)
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****    File "/home/weewx/bin/weeplot/genplot.py", line 440, in _renderTopBand
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****      ncolors = len(self.chart_line_colors)
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****  TypeError: object of type 'map' has no len()
Apr  8 07:45:58 wetter weewx-weewx[26692] ERROR weewx.reportengine:         ****  Generator terminated
Apr  8 07:45:58 wetter weewx-weewx[26692] INFO weewx.reportengine: Copied 0 files to /home/weewx/public_html/mobile

in line 48 to 54

self.chart_line_widths = map(int, width_list)

I missed something in the settings in weewx.conf or skins.conf
I ask for help, the update ran without an error message
Thanks Hartmut

gjr80

unread,
Apr 8, 2021, 3:07:38 AM4/8/21
to weewx-user
There is nothing in your config files that is wrong, there is a bug in the code that Tom committed. I suggest you revert back to the WeeWX version you were previously using or install v4.5.1. Whilst the master branch is usually fairly stable there are no guarantees, you really should only install from direct from master if you have been told to to deal with a specific issue. The safest approach is to install a released version.

Gary

hesf...@gmail.com

unread,
Apr 8, 2021, 3:24:09 AM4/8/21
to weewx-user
Hallo Gary,

Currently I have on 4.5.1
Hartmut
Just a note from me

Tom Keffer

unread,
Apr 8, 2021, 10:40:54 AM4/8/21
to weewx-user
Hartmut,

Give it a try now.

--
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/5b925d99-a9c8-4fca-bdc7-fe2fe0b0be9cn%40googlegroups.com.

hesf...@gmail.com

unread,
Apr 9, 2021, 12:33:57 AM4/9/21
to weewx-user
Hallo
The version "master" commits on Apr 9, 2021 runs very well.
no ERROR
Hartmut
Reply all
Reply to author
Forward
0 new messages