I noticed the typo already. It works now, Thanks a lot everyone. Why isn't the stats file included in the deb package? It's not an extension is it?
Eelco Op woensdag 15 maart 2017 15:39:16 UTC+1 schreef Tom Keffer: > > Simple typo. Should be MyStats, not Mystats. > > -tk > > On Wed, Mar 15, 2017 at 7:17 AM, Eelco F <[email protected] > <javascript:>> wrote: > >> Allright, I did check /usr/share/weewx/user but that isn't bin/user >> right? So I wasn't sure to where he was referring to. I know things are >> different for setup.py en deb install. >> >> Originally there was no stats.py in /usr/share/weewx/user, after the >> upgrade to 3.7.0. So i copied it manually now from github to this directory >> as instructed. >> my skin.conf now has this line: search_list_extensions = >> user.stats.Mystats >> >> >> >> I'm still having issues: >> Mar 15 15:10:15 kwsweerstation weewx[13955]: reportengine: Caught >> unrecoverable exception in generator weewx.cheetahgenerator.CheetahGenerator >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** Module >> 'user.stats' has no attribute 'Mystats' when searching for >> 'user.stats.Mystats' >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** Traceback >> (most recent call last): >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 239, in run >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** obj.start() >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** File >> "/usr/share/weewx/weewx/reportengine.py", line 273, in start >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** self.run() >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** File >> "/usr/share/weewx/weewx/cheetahgenerator.py", line 154, in run >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** >> self.initExtensions(gen_dict[section_name]) >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** File >> "/usr/share/weewx/weewx/cheetahgenerator.py", line 196, in initExtensions >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** class_ = >> weeutil.weeutil._get_object(x) >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** File >> "/usr/share/weewx/weeutil/weeutil.py", line 1140, in _get_object >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** raise >> AttributeError("Module '%s' has no attribute '%s' when searching for '%s'" >> % (mod.__name__, part, module_class)) >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** >> AttributeError: Module 'user.stats' has no attribute 'Mystats' when >> searching for 'user.stats.Mystats' >> Mar 15 15:10:15 kwsweerstation weewx[13955]: **** Generator >> terminated >> >> >> -- >> 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] <javascript:>. >> For more options, visit https://groups.google.com/d/optout. >> > > -- 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]. For more options, visit https://groups.google.com/d/optout.
