Hey, just as an additional info: I just upgraded my Ubuntu to 24.04 LTS (running weewx 5.0.2) and ran into exactly the same issue. Thanks to this thread I was saved! :-)
Thank you all for providing this solution. Jose Maria T.J. schrieb am Donnerstag, 28. Dezember 2023 um 20:32:58 UTC+1: > This worked for me, thanks! > > I had weewx already installed in F38, so no needed to install the RPM. > > El sábado, 11 de noviembre de 2023 a las 19:54:35 UTC+1, vince escribió: > > That actually works on fedora39. Great find ! > Simply remove the six.py that weewx v4 installs. > > # install weewx the hard way because > # the rpm signing key is not accepted > # by modern fedora 39 > sudo yum install -y wget > wget > http://weewx.com/downloads/released_versions/weewx-4.10.2-1.el8.noarch.rpm > sudo yum localinstall weewx-4.10.2-1.el8.noarch.rpm > > # get weewx's six.py out of the way > cd /usr/share/weewx/ > sudo mv six.py six.py.keepme > > # set debug=1 and save the file > sudo vi /etc/weewx/weewx.conf > > # make sure it's running simulator > sudo wee_config --reconfigure > > # start it up interactively > sudo weewxd > > On Saturday, November 11, 2023 at 2:29:10 AM UTC-8 bell...@gmail.com > wrote: > > Sorry I wasn't clear. I was wondering what would happen if the 1.15 > version of six.py in the WeeWX bin directory was updated to 1.16. > > FWIW: MQTTSubscribe test on Ubuntu 22.04, Python 3.12 fails. If I delete > six.py from WeeWX bin directory it passes. > rich > > On Friday, 10 November 2023 at 22:27:44 UTC-5 vince wrote: > > Yeah - many such threads here and there. I did try reverting 'six' via > pip to 1.15.0 on F39 but it didn't help. Somebody upstream has some > serious breakage. (I didn't try python-3.12 but this might be one of those > places where you can break the os potentially if you tried to install it in > a system location. Yet another reason the new venv/pip stuff is great) > > On Friday, November 10, 2023 at 6:38:12 PM UTC-8 bell...@gmail.com wrote: > > When I added Python 3.12 to my automated tests of MQTTSubscribe I saw > this. I did minimal digging and found this, > https://bugzilla.mozilla.org/show_bug.cgi?id=1857492. > Perhaps updating the six.py that WeeWX ships might fix it… With WeeWX v5 > imminent (?)… I decided that MQTTSubscribe doesn’t support python 3.12. > I’d try using Python 3.11. > rich > > On Friday, 10 November 2023 at 15:12:16 UTC-5 Lee Holstege wrote: > > I have happily used weewx for many years. Earlier this week I upgraded my > system from fedora 38 to fedora 39. The upgrade was uneventful. However > weewx will no longer start. Everyting else seems to work normally. > Setting debug=1 in the config file made no difference. > The log output is > > Traceback (most recent call last): > File "/usr/share/weewx/weewxd", line 22, in <module> > import weecfg > "/usr/share/weewx/weecfg/__init__.py", line 21, in <module> > from six.moves import StringIO, input > ModuleNotFoundError: No module named 'six.moves' > weewx[53224]: [FAILED] > weewx.service: Control process exited, code=exited, status=1/FAILURE > weewx.service: Failed with result 'exit-code'. > Failed to start weewx.service - SYSV: start and stop the weewx weather > system. > > Looked pretty simple at first. Missing file six.moves. Just replace > missing file and move on. > > Now I have learned "six" is actually a compatibility library designed to > allow seamless detection between Python2 and Python3 and that the routine > (dynamically?) creates the missing file six.moves. So it appears that the > proper file either i not being created at all or is not being imported > correctly. I am running Python3.12. > > I have worked on this for the past couple of days and have made no > progress. I am not even sure whether the problem is in weewx or python. I > would appreciate any help that anyone may be able to provide. > > Admin details: > weewx installed and upgraded from rpms downloaded from the weewx website > Current version is weewx-4.10.2-1.el8.noarch > Fedora 39 upgrade (earlier this week) and then updated again this morning > Weather station Davis Vantage Vue > > > > > > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b468e204-4357-4561-b5b2-203cc515f2b0n%40googlegroups.com.