I was able to figure out how to fix this. I had to delete the 'six.pyc' file in /usr/share/weewx/ . After doing that, the install was able to complete. Having some other issues now, but will create a new thread for them if I can't figure it out...
On Wednesday, January 17, 2024 at 8:58:12 AM UTC-8 Marty b wrote: > Hello, > > I tried upgrading to v5.0 and am getting errors: > pi@WeeWx2021:/var/log/apache2 $ sudo apt-get update > Hit:1 https://weewx.com/apt/python3 buster InRelease > Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease > Hit:3 http://archive.raspberrypi.org/debian buster InRelease > Reading package lists... Done > pi@WeeWx2021:/var/log/apache2 $ sudo apt-get upgrade > Reading package lists... Done > Building dependency tree > Reading state information... Done > Calculating upgrade... Done > 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. > 1 not fully installed or removed. > After this operation, 0 B of additional disk space will be used. > Do you want to continue? [Y/n] y > Setting up weewx (5.0.0-1) ... > Using root:root as user:group > Traceback (most recent call last): > File "/usr/share/weewx/weectl.py", line 74, in <module> > main() > File "/usr/share/weewx/weectl.py", line 58, in main > module = importlib.import_module(f'weectllib.{subcommand}_cmd') > File "/usr/lib/python3.7/importlib/__init__.py", line 127, in > import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "<frozen importlib._bootstrap>", line 1006, in _gcd_import > File "<frozen importlib._bootstrap>", line 983, in _find_and_load > File "<frozen importlib._bootstrap>", line 953, in > _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 219, in > _call_with_frames_removed > File "<frozen importlib._bootstrap>", line 1006, in _gcd_import > File "<frozen importlib._bootstrap>", line 983, in _find_and_load > File "<frozen importlib._bootstrap>", line 967, in > _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 677, in _load_unlocked > File "<frozen importlib._bootstrap_external>", line 728, in exec_module > File "<frozen importlib._bootstrap>", line 219, in > _call_with_frames_removed > File "/usr/share/weewx/weectllib/__init__.py", line 12, in <module> > import configobj > File "/usr/lib/python3/dist-packages/configobj.py", line 22, in <module> > import six > ImportError: bad magic number in 'six': b'\x03\xf3\r\n' > dpkg: error: --compare-versions takes three arguments: <version> > <relation> <version> > > Type dpkg --help for help about installing and deinstalling packages [*]; > Use 'apt' or 'aptitude' for user-friendly package management; > Type dpkg -Dhelp for a list of dpkg debug flag values; > Type dpkg --force-help for a list of forcing options; > Type dpkg-deb --help for help about manipulating *.deb files; > > Options marked [*] produce a lot of output - pipe it through 'less' or > 'more' ! > Using debconf configuration values from previous install > Traceback (most recent call last): > File "/usr/share/weewx/weectl.py", line 74, in <module> > main() > File "/usr/share/weewx/weectl.py", line 58, in main > module = importlib.import_module(f'weectllib.{subcommand}_cmd') > File "/usr/lib/python3.7/importlib/__init__.py", line 127, in > import_module > return _bootstrap._gcd_import(name[level:], package, level) > File "<frozen importlib._bootstrap>", line 1006, in _gcd_import > File "<frozen importlib._bootstrap>", line 983, in _find_and_load > File "<frozen importlib._bootstrap>", line 953, in > _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 219, in > _call_with_frames_removed > File "<frozen importlib._bootstrap>", line 1006, in _gcd_import > File "<frozen importlib._bootstrap>", line 983, in _find_and_load > File "<frozen importlib._bootstrap>", line 967, in > _find_and_load_unlocked > File "<frozen importlib._bootstrap>", line 677, in _load_unlocked > File "<frozen importlib._bootstrap_external>", line 728, in exec_module > File "<frozen importlib._bootstrap>", line 219, in > _call_with_frames_removed > File "/usr/share/weewx/weectllib/__init__.py", line 12, in <module> > import configobj > File "/usr/lib/python3/dist-packages/configobj.py", line 22, in <module> > import six > ImportError: bad magic number in 'six': b'\x03\xf3\r\n' > 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) > > Please let me know what I need to do to resolve this. > > Thank you! > -- 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/23047402-519e-40e8-be6c-ba051a4f8dd4n%40googlegroups.com.