Can't update weewx from 3.8.0.1 (Ubuntu / Cheetah)

133 views
Skip to first unread message

loonsailor

unread,
Aug 27, 2020, 12:45:42 PM8/27/20
to weewx-user
I'm trying to update my weewx installation.  When I use the python2 version, 'apt-get install weewx' gets me 'weewx is already the newest version (3.8.0-1).'.  I know that we're up to 4.x.  So I try the python3 version.  That gets me the following:

    $ sudo apt-get install weewx
    Reading package lists... Done
    Building dependency tree       
    Reading state information... Done
    Some packages could not be installed. This may mean that you have
    requested an impossible situation or if you are using the unstable
    distribution that some required packages have not yet been created
    or been moved out of Incoming.
    The following information may help to resolve the situation:
    The following packages have unmet dependencies:
      weewx : Depends: python3-cheetah but it is not installable
      E: Unable to correct problems, you have held broken packages.

I've tried to install Cheetah, but I get this:

    $ sudo apt-get install python3-cheetah

    Reading package lists... Done

    Building dependency tree       

    Reading state information... Done

    Package python3-cheetah is not available, but is referred to by another package.

    This may mean that the package is missing, has been obsoleted, or

    is only available from another source

    E: Package 'python3-cheetah' has no installation candidate

I did the alternate installation ('pip3 install cheetah3').  That succeeds, but I still can't install a python3 version of weewx, with the same error message. What am I missing?

(ubuntu 18.04LTS, python v2.7.17, python3 v 3.6.9)



Kevin Davis

unread,
Aug 27, 2020, 12:55:13 PM8/27/20
to weewx...@googlegroups.com
Did you do a “sudo apt-get update”?

On Aug 27, 2020, at 9:45 AM, 'loonsailor' via weewx-user <weewx...@googlegroups.com> wrote:

I'm trying to update my weewx installation.  When I use the python2 version, 'apt-get install weewx' gets me 'weewx is already the newest version (3.8.0-1).'.  I know that we're up to 4.x.  So I try the python3 version.  That gets me the following:
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/04098d72-909f-4f7b-a4f3-8a92efe6c6f4n%40googlegroups.com.

loonsailor

unread,
Aug 27, 2020, 2:09:00 PM8/27/20
to weewx-user
Well, I thought I had, but apparently not.  Talk about a rookie mistake!  (Doh!)  After the update, the python2 version updates properly to v4.1.1.  But, the python3 version (switched by 'wget -qO - http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list', then another apt-get update) still gives me the same error message , as does an attempted install of python3-cheetah.

Tom Keffer

unread,
Aug 27, 2020, 3:08:58 PM8/27/20
to weewx-user
Don't know what you mean by "the same error message," but python3-cheetah is not available on all operating systems. In particular, it is not available on Debian 9 systems. In that case, you need to use pip3 to install.

loonsailor

unread,
Aug 27, 2020, 6:46:52 PM8/27/20
to weewx-user
I'm on Ubuntu 18.04LTS, which is based on Debian 10 (/etc/debian_version = buster/sid).  So, I would have thought that it should be there.  Anyway, I did install it with pip3:

     $pip3 install cheetah3

     ...

     Successfully installed cheetah3-3.2.5

and it still won't allow me to install the python3 version of weewx

     $ sudo apt-get install weewx

     ...

     Some packages could not be installed. This may mean that you have

     requested an impossible situation or if you are using the unstable

     distribution that some required packages have not yet been created

     or been moved out of Incoming.

     ...

     The following packages have unmet dependencies:

      weewx : Depends: python3-cheetah but it is not installable

     E: Unable to correct problems, you have held broken packages.


So, I'm not sure what's happening.  Well, I think I'll use this an excuse to update to ubuntu 20.04LTS.  Maybe the problem will fix itself with the OS upgrade.




gjr80

unread,
Aug 27, 2020, 7:02:46 PM8/27/20
to weewx-user
@tkeffer Can’t lay my hands on your previous posts to check,  but this isn’t one of those quirks where if you install from the wrong directory pip picks up a config file it shouldn’t and installs to a location that the system can’t later find?

Gary

vince

unread,
Aug 27, 2020, 7:58:18 PM8/27/20
to weewx-user
On Thursday, August 27, 2020 at 3:46:52 PM UTC-7, loonsailor wrote:

     $ sudo apt-get install weewx

     ...

     Some packages could not be installed. This may mean that you have

     requested an impossible situation or if you are using the unstable

     distribution that some required packages have not yet been created

     or been moved out of Incoming.

     ...

     The following packages have unmet dependencies:

      weewx : Depends: python3-cheetah but it is not installable

     E: Unable to correct problems, you have held broken packages.


So, I'm not sure what's happening.  


Well you could google "E: Unable to correct problems, you have held broken packages." and you would find what's wrong and how to fix it, but considering you didn't even try to look up the error message, sure go for a wipe+reload of a different os version and think positive thoughts.

FWIW, you 'could' install weewx via setup.py using the python3 instructions since they work always regardless of how the python prerequisites got there, but if you're more comfortable going to the current LTS version and sticking with packages only, then that will surely work.



gjr80

unread,
Aug 27, 2020, 7:59:53 PM8/27/20
to weewx-user

Gary

loonsailor

unread,
Aug 27, 2020, 11:01:23 PM8/27/20
to weewx-user
Yeah, I know that I could have delved deeper and made it all work on Ubuntu 18.04, but I kind of wanted to move to 20.04 anyway, so after playing with it for a while I tried the upgrade.  Now it just works, no issues.

Thanks for the input.

Reply all
Reply to author
Forward
0 new messages