try to swich weewx skin to blechertown 1.6 - errors with mysqldb

126 views
Skip to first unread message

Christian Peters

unread,
Dec 21, 2025, 4:04:39 PM12/21/25
to weewx-user
Hi all, 

I have  a quite heavy modifed responsive skin running with a mysql mariadb and VP2 on a Debian trixie VM. 
As image creation now raises 100sec I had to switch form 1min intervall  to 5min interval to get it working well again. But now the data is quite 'old' I thougt about trying to install blechertown skin 1.6 woth mqtt live data and let weewx run it. As I have no problemw with my responsive skin I now get this error running blechertown. 
Attached the error log. 

Any idea what could cause this? Should I start with the original blechertown skin. Or better start a new VM and build up a weewx installation with blechertown step by step from scratch!? But would be nixe to keep my mysql database (5 years)....

Thanks in advance!

Regards,

Christian
I


blechertown_error_log.rtf

John Smith

unread,
Dec 21, 2025, 6:46:25 PM12/21/25
to weewx...@googlegroups.com
Quick skim of your log, what else did you upgrade?

"/usr/lib/python3/dist-packages/MySQLdb/cursors.py", line 204
TypeError: not enough arguments for format string


--
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 visit https://groups.google.com/d/msgid/weewx-user/d0f2aa45-f7a6-45dc-bc7b-39a429ba32e3n%40googlegroups.com.

Christian Peters

unread,
Dec 22, 2025, 1:14:54 AM12/22/25
to weewx-user
John, 

nothing so far. It's a very old weewx first install, there is no venv install, it's installed via dpgk paket manager (.deb packet of weewx). 
The strange thing: it works flwaless with my responsive skin, only blechertown seems to raise the error!? 
I usually do regular the  apt updat&& apt upgrade on my Debian 13 VM to be on track. 

Christian Peters

unread,
Dec 22, 2025, 1:37:44 AM12/22/25
to weewx-user
Ok..I found this: 


But it seems not solved so I will give up for the moment, installing Blechertown 1.3.1 raises errors, too...
blechertown_error_log_1-3-1.rtf

Tom Keffer

unread,
Dec 22, 2025, 4:01:29 PM12/22/25
to weewx...@googlegroups.com
The function locale.format() was deprecated in Python 3.7, then removed in 3.12. 




Christian Peters

unread,
Dec 22, 2025, 4:17:03 PM12/22/25
to weewx-user
Tom, 

thanks for the info. 
Following the link, vince wrote Pat did the fix last summer, but I tried this version version 1.3.1 from May 1, 2023..it wasn't fixed there...!? 
So does anyone forked the skin and can provide the link to a working Belchertown skin on weewx 5.2 and  python 3.13. fwith the fixed locale.format()...!?
Thanks in advance! 

Christian Peters

unread,
Dec 22, 2025, 5:01:08 PM12/22/25
to weewx-user

Ok...already addressed in 

Sorry for the rumor, but somtimes hard to find posts and already addressed issues here.....

vince

unread,
Dec 22, 2025, 5:02:48 PM12/22/25
to weewx-user
The current version sure looks fixed to me.

Try "weectl extension install https://github.com/poblabs/weewx-belchertown/archive/refs/heads/master.zip" to install the latest version available.  There is no locale.format( ) in belchertown.py since June 21 2024 based on looking at the commits to belchertown.py

You can't necessarily rely on the version string you see in extensions.  Looks like Pat neglected to cut a new release with an updated version string after 1.3.1 came out in April 2023.  There have a been a lot of updates since that date.

vince

unread,
Dec 22, 2025, 5:05:01 PM12/22/25
to weewx-user
Be aware of whether you're using Pat's reference copy or the fork with more changes in it.  You might also run into version and content confusion between the two.  Make sure you say 'which' belchertown skin you are using.  User uajqq still calls his fork Belchertown too.

Christian Peters

unread,
Dec 22, 2025, 5:10:01 PM12/22/25
to weewx-user
Yes, this is all al little bit cnfusing as I can't uninstall any blecheertown extension:

weectl extension uninstall Blechertown
Using configuration file /etc/weewx/weewx.conf
Uninstall extension 'Blechertown' (y/n)? y
Unable to find extension 'Blechertown'.

So I did another install...I hope it will be overwritten... ? 
So better to start with the master.zip from Pat...!? 
Tricky....! :-P 

vince

unread,
Dec 22, 2025, 5:10:42 PM12/22/25
to weewx-user
It would help much if you spelled it correctly.

Christian Peters

unread,
Dec 22, 2025, 5:13:40 PM12/22/25
to weewx-user
Yes....it helped a lot....! :-D Gosh...! :-D 
Reply all
Reply to author
Forward
0 new messages