Hi Tom!
1. I'm trying to install an older version because anything 5+ requires python3-ephem of which the latest version for my distribution is 3.7.6.0-3 which in itself requires python3 under 3.6
2. I'm only showing the relevant error, otherwise the full process goes like this:
sudo apt-get install weewx=4.10.2-1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
sqlite ftp
The following NEW packages will be installed:
weewx
0 upgraded, 1 newly installed, 0 to remove and 223 not upgraded.
Need to get 0 B/1836 kB of archives.
After this operation, 6148 kB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package weewx.
(Reading database ... 124186 files and directories currently installed.)
Preparing to unpack .../weewx_4.10.2-1_all.deb ...
Unpacking weewx (4.10.2-1) ...
Setting up weewx (4.10.2-1) ...
Traceback (most recent call last):
File "/usr/share/weewx/wee_config", line 12, in <module>
from weecfg.config import ConfigEngine, Logger
File "/usr/share/weewx/weecfg/__init__.py", line 21, in <module>
from six.moves import StringIO, input
ModuleNotFoundError: No module named 'six.moves'
dpkg: error processing package weewx (--configure):
installed weewx package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
weewx
E: Sub-process /usr/bin/dpkg returned an error code (1)
3. Output of the commands
zed@debian:~$ python3 -V
Python 3.12.5
zed@debian:~$ pip -V
pip 24.2 from /usr/lib/python3/dist-packages/pip (python 3.12)
zed@debian:~$ pip3 -V
pip 24.2 from /usr/lib/python3/dist-packages/pip (python 3.12)
zed@debian:~$ python3 -m site
sys.path = [
'/home/zed',
'/usr/lib/python312.zip',
'/usr/lib/python3.12',
'/usr/lib/python3.12/lib-dynload',
'/usr/local/lib/python3.12/dist-packages',
'/usr/lib/python3/dist-packages',
]
USER_BASE: '/home/zed/.local' (exists)
USER_SITE: '/home/zed/.local/lib/python3.12/site-packages' (doesn't exist)
ENABLE_USER_SITE: True
Many thanks!