setup.py on 4.9.1 won't run on latest raspbian os due to new python package

72 views
Skip to first unread message

messyp...@gmail.com

unread,
Nov 7, 2025, 2:03:39 PMNov 7
to weewx-user
pi@PI4B1:~/weewx-4.9.1 $ python3 -c "import six; print(six.__version__)"
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import six; print(six.__version__)
    ^^^^^^^^^^
ModuleNotFoundError: No module named 'six'
pi@PI4B1:~/weewx-4.9.1 $ sudo python3 ./setup.py install
warning: no previously-included files matching 'junk*' found anywhere in distribution
warning: no previously-included files matching '.' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
Traceback (most recent call last):
  File "/home/weewx/bin/wee_config", line 12, in <module>
    from weecfg.config import ConfigEngine, Logger
  File "/home/weewx/bin/weecfg/__init__.py", line 21, in <module>
    from six.moves import StringIO, input
ModuleNotFoundError: No module named 'six.moves'
pi@PI4B1:~/weewx-4.9.1 $ 
Searching for six.moves leads to suggestions to install or add the six modules, but all attempts at that fails for me (so far). I keep getting:
i@PI4B1:~/weewx-4.9.1 $ pip3 install six
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
    python3-xyz, where xyz is the package you are trying to
    install.
   
    If you wish to install a non-Debian-packaged Python package,
    create a virtual environment using python3 -m venv path/to/venv.
    Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
    sure you have python3-full installed.
   
    For more information visit http://rptl.io/venv

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
----
I have too many custom files in my setup to install a new weewx, I have to keep this version.  I had no idea after taking half a day to setup my pi4 with the latest raspberry pi os that it would lead to these problems. 

If you know I'm missing something please let me know, maybe just adding something to the current Python3 (Python 3.13.5) will fix this, but I can't seem to add the things needed by setup.py.
Here's my raspi os version:
pi@PI4B1:~ $ cat /usr/lib/os-release
PRETTY_NAME="Debian GNU/Linux 13 (trixie)"
NAME="Debian GNU/Linux"
VERSION_ID="13"
VERSION="13 (trixie)"
VERSION_CODENAME=trixie
DEBIAN_VERSION_FULL=13.1
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
pi@PI4B1:~ $
===========
I have the one-wire working on the pi though, that's always been a problem in the past.
===========
Anyone find a solution for this? 
Thank you!


Message has been deleted

vince

unread,
Nov 7, 2025, 2:13:35 PMNov 7
to weewx-user
sudo apt install python3-six

(deleted previous reply that had a typo)

messyp...@gmail.com

unread,
Nov 7, 2025, 5:36:09 PMNov 7
to weewx-user
I am currently installing weewx 5 per latest install instructions. I'm pleased with how much easier it was to get owfs working with this Pi os version. 
I will have to deal with my modified skins/Seasons when I get to it.
Thanks for responding.    

messyp...@gmail.com

unread,
Nov 8, 2025, 4:28:45 PMNov 8
to weewx-user
ADMIN(s)
Please remove this post, I see that I cannot do it myself. This is no longer an issue, I've installed Weewx 5.2 and the only problem I'm having has nothing to do with this thread. 
Thank you.
Reply all
Reply to author
Forward
0 new messages