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!


On Monday, September 2, 2024 at 5:41:27 PM UTC+3 Tom Keffer wrote:

Not sure why you're trying to install an old version of WeeWX. Why not the 
current version, V5.1.0?

There are many things that cause this error. You're not showing much about 
the error, so it's hard to diagnose. Are you trying to install WeeWX using 
apt-get? Or, dpkg? 

The Python used by the install process may not be the same one as used by 
your "pip show six" command. Or, it may not have access to 
/usr/lib/python3/dist-packages

What do you get with the command "python3 -V"?

How about "pip -V"?

How about "pip3 -V"?

How about "python3 -m site"?

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/7fc085e7-6c16-4ab5-9241-9636bd87a648n%40googlegroups.com.

Reply via email to