weewx not seeing python six.moves

75 views
Skip to first unread message

cat22

unread,
Mar 12, 2025, 10:41:20 PM3/12/25
to weewx-user
It looks like python got upgraded from 3.11 to 3.13 on my system. six is installed for both versions but weewx reports:
weewxd[550516]: Traceback (most recent call last):
weewxd[550516]: File "/usr/local/bin/weewx/bin/weewxd", line 22, in <module>
weewxd[550516]: import weecfg
weewxd[550516]: File "/usr/local/bin/weewx/bin/weecfg/__init__.py", line 21, in <module>
weewxd[550516]: from six.moves import StringIO, input
weewxd[550516]: ModuleNotFoundError: No module named 'six.moves'
systemd[1]: weewx.service: Control process exited, code=exited, status=1/FAILURE

How can i fix this? do i need to upgrade weewx? (I am using 4.10.2)

gjr80

unread,
Mar 16, 2025, 9:06:58 PM3/16/25
to weewx-user
Python2 reached end of life in January 2020 and some distributions no longer include the python3 six module. Try installing it manually with:

$ sudo apt install python3-six

(or with whatever package manager your bistro uses) 

then carry on with whatever you were doing.

Gary 

Reply all
Reply to author
Forward
0 new messages