After new installation problems with season skin / no site

280 views
Skip to first unread message

Thomas Hackler

unread,
Mar 17, 2024, 11:12:09 AM3/17/24
to weewx-user
Hello,
my raspberry pi crashed and I started with a new system. Fortunately I have copies from my database and the skins.
I started installing weewx and the gw1000 driver, then I copied the skin folder and the database.
I had some issues with permissions with the database but this works now.
I use two skins. The neowx skin works fine but I get errors for the season skin and no site is made and I don't understand why.

Mar 17 15:45:28 raspberrypi weewxd[114945]: ERROR weewx.reportengine: Caught unrecoverable exception in generator 'weewx.cheetahgenerator.CheetahGenerator'

Full log file attached.
Thank you for helping!
Thomas Hackler


logs.txt

vince

unread,
Mar 17, 2024, 1:33:09 PM3/17/24
to weewx-user
ModuleNotFoundError: No module named 'user.historygenerator'
You need to install all skins and extensions referenced in your .conf files....

You also have a variety of warnings from neowx:
_etc_weewx_skins_neowx_material_month__Y__m_html_tmpl.py:406: SyntaxWarning: "is not" with a literal. Did you mean "!="?

I 'think' this is related to newer versions of python being more strict.  I recall trying neowx once and simply editing all the places that weewx logged those warnings and they went away.

Thomas Hackler

unread,
Mar 17, 2024, 3:23:43 PM3/17/24
to weewx-user
sorry I don't understand, I followed this guide


I compared the weewx.conf file from the fresh installation with my old one and added all the missing things
so I guess everything should work after that? 
The neowx skin works normal at the moment, so I will check the warnings later

vince

unread,
Mar 17, 2024, 3:43:50 PM3/17/24
to weewx-user
Not quite.

You need to install all added user extensions and skins. In your case it looks like you had the bootstrap skin on your old system which has a file bin/user/historygenerator.py that you are missing on the new system. Either remove the reference to historygenerator in your weewx.conf or install the bootstrap skin to add the missing file.


gjr80

unread,
Mar 17, 2024, 4:26:05 PM3/17/24
to weewx-user
Agree the problem is a missing user.historygenerator search list extension which (from memory) is provided by the bootstrap skin, but user.historygenerator is being called by the Seasons skin. So I suspect you have modified your Season skin in the past and added user.historygenerator to the Seasons skin config file, skins/Seasons/skin.conf. This would explain why you missed it when checking your backup weewx.conf.

The solution is to obtain the historygenerator.py from the bootstrap skin and add it to your system. You could simply extract this file from the bootstrap skin and save it to you system, but the easiest way will be as Vince said - just install the bootstrap skin. I would go one step further and disable the bootstrap skin (set enable = False  under [StdReport] [[Bootstrap]] in weewx.conf). This will have no impact on the availability of user.historygenerator, but will prevent the Bootstrap skin from generating its content/output.

Gary

Thomas Hackler

unread,
Mar 17, 2024, 4:37:52 PM3/17/24
to weewx-user
I have a copy of my old /etc/weewx/bin/user. there is a historygenerator.py file
but there is no [[Bootstrap]] in my new or in my old weewx.conf file

so maybe it is enough to copy the file historygenerator.py from my old system to /etc/weewx/bin/user or should I install the bootstrap skin?

So I guess I should install the neowx skin again too ?

gjr80

unread,
Mar 17, 2024, 4:43:34 PM3/17/24
to weewx-user
Yes, that will be fine. [[Bootstrap]] is only created when you install the bootstrap skin.

Gary

michael.k...@gmx.at

unread,
Mar 18, 2024, 3:58:19 AM3/18/24
to weewx-user
He maybe never installed the Bootstrap skin, there are a couple of skins around that took the historygenerator from the skin, often many years ago, so usually, these are very outdated. Either try to get the historygenerator.py from the old installation, or from some outdated version of the Bootstrap skin, I doubt (but you can give it a try) that a recent version will work without updating the config, there were significant changes.

Thomas Hackler

unread,
Mar 18, 2024, 4:53:12 PM3/18/24
to weewx-user
Hello,
I copied the historygenerator.py file from my old backup to the bin/user directory and now it works
thank you!
The bootstrap skin looks nice but I am not sure if I ever installed it, I guess no

Vince is right too, there are new and corrected files at github for the neowx skin to remove the warnings because of new python versions
I hope that this system with the newest raspian and only necessary installations will run a long time.....
Reply all
Reply to author
Forward
0 new messages