Repository navigation
Belchertown with Python 3.12.x issues (maybe related to WSL and/or Ubuntu 24.04) #995
ehcloninger
started this conversation in
General
Replies: 2 comments 2 replies
|
This fork is no longer being actively maintained -- the bug has been fixed on the active fork, which is here: https://github.com/uajqq/weewx-belchertown-new |
0 replies
|
Hi @uajqq. Thanks for the heads-up. I'll fork the new repo and install when I have some time. |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TL;DR
I may be doing things wrong or this may become an issue in the future. It appears that Belchertown uses locale.format() which has been deprecated as of 3.12.
https://docs.python.org/3.12/whatsnew/3.12.html#locale
I'm running weewx on a mini-pc in a proxmox LXC running Debian 12. All is fine there.
I wanted to make a customization to Belchertown skin to show "yesterday" on the front page next to the current day totals. Rather than mess about with my working installation, I used WSL on my PC. WSL has Ubuntu 24.04.
I installed weewx and had it working in short order. I could launch the daemon as a simulator in one tab, while issuing
weectl report runin another. I could start a local lightweight python http server withpython -m http.server 8000in /var/www and see the output.All good so far.
I downloaded and used
weectl extension install weewx-belchertown-release.1.3.1.tar.gzand it installed. I modified the weewx.conf to enable the skin.When I issued
weectl report runwith the skin installed, I started getting errors on belchertown.py line 612 about locale.format() being deprecated. A web search showed this was true as of Python 3.12. I looked on my production system and I'm running 3.11.2 there.I messed around with trying to set up pyenv on WSL for a couple hours and kept going deeper down the rabbit hole with issues. I finally backed out and just installed 3.11.2 so that I could make some progress. Even that is plaqued by issues between Ubuntu 24.04 and Debian 12. I finally decided that I'd rather spend the rest of the afternoon in the pool with a cold beer. I'll wait for a rainy day to try again.
All reactions