problem reinstalling weewx

146 views
Skip to first unread message

J.L. Blom

unread,
Jul 5, 2021, 9:35:53 AM7/5/21
to weewx-user
I have been a long time away as I had A: other interests/problems to
solve and B weewx works still without problems. However I'm still
working with version 4.1.1 and I think it's becoming time to upgrade to
1.5. However there is a problem.When I try to upgrade using apt I get
the following message:
The following packages have unmet dependencies:
weewx : Depends: python3-cheetah but it is not installable.
I've tried to reinstall it (using synaptic) but no success. Can anybody
shine light on this problem and how to solve it?
Thanks in advance,
Joep L. Blom

Tom Keffer

unread,
Jul 5, 2021, 11:30:03 AM7/5/21
to weewx-user
You didn't say what operating system you are using, but a Python 3 version of Cheetah is not available on Debian 9 systems. What operating system are you using? Here are a few options:

1. Upgrade to Debian 10;
2. Or, use Python 2;
3. Or, install using pip:

pip3 install cheetah3

The last is probably the best solution.

-tk

--
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/dbf26dda-a8a2-625c-81d7-5252820a2562%40gmail.com.

J.L. Blom

unread,
Jul 6, 2021, 6:17:05 AM7/6/21
to weewx...@googlegroups.com
On 05-07-2021 17:29, Tom Keffer wrote:
> You didn't say what operating system you are using, but a Python 3
> version of Cheetah is not available on Debian 9 systems. What
> operating system are you using? Here are a few options:
>
> 1. Upgrade to Debian 10;
> 2. Or, use Python 2;
> 3. Or, install using pip:
>
> pip3 install cheetah3
>
> The last is probably the best solution.
>
> -tk
>
Tom,
Thanks and sorry I was what negligent. I'm running weewx on an old
raspberry with debian 9 I don't know if 10 is available for the
raspberry. I update it regularly but only using apt but perhaps I have
to upgrade to raspberry 10.
It  is controlling a Vantage Pro2 and still works perfectly but I will
more different displays and an upgrade.
You said "or install using pip" I assume that is possible with Debian 9.
I know pip only as a very old (1969) file manager for Dec of the OS
"OS4" where pip stood for "Peripheral Interchange Program".
Joep

J.L. Blom

unread,
Jul 6, 2021, 6:27:52 AM7/6/21
to weewx...@googlegroups.com
On 05-07-2021 17:29, Tom Keffer wrote:
> <mailto:weewx-user%2Bunsu...@googlegroups.com>.
> <https://groups.google.com/d/msgid/weewx-user/dbf26dda-a8a2-625c-81d7-5252820a2562%40gmail.com>.
>
> --
> 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
> <mailto:weewx-user+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEBvD7pZ8ab18TUiqwPTVZUg%2BxpJ%2BODEqNt_GMxGQt7BEg%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEBvD7pZ8ab18TUiqwPTVZUg%2BxpJ%2BODEqNt_GMxGQt7BEg%40mail.gmail.com?utm_medium=email&utm_source=footer>.
I followed your suggestion. However, it came with the following:
        except DistutilsPlatformError, x:
                                     ^
    SyntaxError: invalid syntax

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in
/tmp/pip-build-hod7_7mb/cheetah/
Is there a solution for this?

Tom Keffer

unread,
Jul 6, 2021, 7:53:01 AM7/6/21
to weewx-user
It looks like you're using an older version of pip, designed for Python 2. Make sure you have a more modern copy.

Check the documentation for pip: https://pip.pypa.io/en/stable/installing/

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/82b51692-8308-37d0-dc47-517d64a5fc8c%40gmail.com.

J.L. Blom

unread,
Jul 6, 2021, 8:50:57 AM7/6/21
to weewx...@googlegroups.com
On 06-07-2021 13:52, Tom Keffer wrote:
> It looks like you're using an older version of pip, designed for
> Python 2. Make sure you have a more modern copy.
>
> Check the documentation for pip:
> https://pip.pypa.io/en/stable/installing/
> <https://pip.pypa.io/en/stable/installing/>
>
> On Tue, Jul 6, 2021 at 3:27 AM J.L. Blom <jloui...@gmail.com
> <mailto:jloui...@gmail.com>> wrote:
>
> On 05-07-2021 17:29, Tom Keffer wrote:
> > You didn't say what operating system you are using, but a Python 3
> > version of Cheetah is not available on Debian 9 systems. What
> > operating system are you using? Here are a few options:
> >
> > 1. Upgrade to Debian 10;
> > 2. Or, use Python 2;
> > 3. Or, install using pip:
> >
> > pip3 install cheetah3
> >
> > The last is probably the best solution.
> >
> > -tk
> >
> > On Mon, Jul 5, 2021 at 6:35 AM J.L. Blom <jloui...@gmail.com
> <mailto:jloui...@gmail.com>
> > <mailto:jloui...@gmail.com <mailto:jloui...@gmail.com>>> wrote:
> >
> >     I have been a long time away as I had A: other
> interests/problems to
> >     solve and B weewx works still without problems. However I'm
> still
> >     working with version 4.1.1 and I think it's becoming time to
> >     upgrade to
> >     1.5. However there is a problem.When I try to upgrade using
> apt I get
> >     the following message:
> >     The following packages have unmet dependencies:
> >       weewx : Depends: python3-cheetah but it is not installable.
> >     I've tried to reinstall it (using synaptic) but no success. Can
> >     anybody
> >     shine light on this problem and how to solve it?
> >     Thanks in advance,
> >     Joep L. Blom
> >
> >     --
> >
>
>      ----------------------------------------
> Command "python setup.py egg_info" failed with error code 1 in
> /tmp/pip-build-hod7_7mb/cheetah/
> Is there a solution for this?
>
> --
> Y
>


Thanks Tom. I went to the site and I followed the upgrade instructions
but I assume however that the raspberry OS is unwilling to follow the
rules and gave me the following:
Installing collected packages: pip
  Found existing installation: pip 9.0.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside
environment /usr
  Can't rollback pip, nothing uninstalled.
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 215,
in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line
360, in run
    prefix=options.prefix_path,
  File "/usr/lib/python2.7/dist-packages/pip/req/req_set.py", line 784,
in install
    **kwargs
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line
851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/usr/lib/python2.7/dist-packages/pip/req/req_install.py", line
1064, in move_wheel_files
    isolated=self.isolated,
  File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 462, in
move_wheel_files
    generated.extend(maker.make(spec))
  File
"/usr/share/python-wheels/distlib-0.2.4-py2.py3-none-any.whl/distlib/scripts.py",
line 372, in make
    self._make_script(entry, filenames, options=options)
  File
"/usr/share/python-wheels/distlib-0.2.4-py2.py3-none-any.whl/distlib/scripts.py",
line 276, in _make_script
    self._write_script(scriptnames, shebang, script, filenames, ext)
  File
"/usr/share/python-wheels/distlib-0.2.4-py2.py3-none-any.whl/distlib/scripts.py",
line 250, in _write_script
    self._fileop.write_binary_file(outname, script_bytes)
  File
"/usr/share/python-wheels/distlib-0.2.4-py2.py3-none-any.whl/distlib/util.py",
line 407, in write_binary_file
    with open(path, 'wb') as f:
IOError: [Errno 21] Is a directory: '/home/weewx/bin/pip'
To be honest. my programming days are long behind me (as you can
imagine) and interpreting error messages is a little difficult but maybe
you can she your light on it.
Joep

Tom Keffer

unread,
Jul 6, 2021, 10:10:02 AM7/6/21
to weewx-user
Honestly, I think you'll save yourself a lot of time by just upgrading your RPi to Raspbian 10 ("buster"). Security updates for Debian 9 ("stretch") were discontinued over a year ago.

Search the web for instructions. Here's an example: https://www.raspberrypi.org/documentation/raspbian/updating.md

-tk

--
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.

J.L. Blom

unread,
Jul 6, 2021, 6:29:22 PM7/6/21
to weewx...@googlegroups.com
Tom,
Thanks, I just came into my study and found your reply. I think you're
right, maybe use a new RPi as this one is already 7 years old but I give
it a try with a new Raspbian. Hope I can find tomorrow the time a it
takes a lot of restoring old date as I have now weather data for over 10
years and I will not destroy the time-series.
Joep


On 06-07-2021 16:09, Tom Keffer wrote:
> Honestly, I think you'll save yourself a lot of time by just upgrading
> your RPi to Raspbian 10 ("buster"). Security updates for Debian 9
> ("stretch") were discontinued over a year ago.
>
> Search the web for instructions. Here's an example:
> https://www.raspberrypi.org/documentation/raspbian/updating.md
> <https://www.raspberrypi.org/documentation/raspbian/updating.md>
>
> -tk
>
> On Tue, Jul 6, 2021 at 5:50 AM J.L. Blom <jloui...@gmail.com
> <mailto:jloui...@gmail.com>> wrote:
>
> On 06-07-2021 13:52, Tom Keffer wrote:
> > It looks like you're using an older version of pip, designed for
> > Python 2. Make sure you have a more modern copy.
> >
> > Check the documentation for pip:
> > https://pip.pypa.io/en/stable/installing/
> <https://pip.pypa.io/en/stable/installing/>
> > <https://pip.pypa.io/en/stable/installing/
> <https://pip.pypa.io/en/stable/installing/>>
> >
> > On Tue, Jul 6, 2021 at 3:27 AM J.L. Blom <jloui...@gmail.com
> <mailto:jloui...@gmail.com>
> <mailto:weewx-user%2Bunsu...@googlegroups.com>.
> <https://groups.google.com/d/msgid/weewx-user/8212be79-d0e8-9f06-825d-e0bca8ee047a%40gmail.com>.
>
> --
> 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
> <mailto:weewx-user+...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/CAPq0zEAyF5aCHU_zMfNLogueosASq_PkK7jFJLuRGGMr2_u5tQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-user/CAPq0zEAyF5aCHU_zMfNLogueosASq_PkK7jFJLuRGGMr2_u5tQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.

gjr80

unread,
Jul 6, 2021, 6:43:27 PM7/6/21
to weewx-user
Your hardware should be fine; this raspberrypi.org page claims the latest RPi OS is compatible with all RPi models.

Gary

Tom Keffer

unread,
Jul 6, 2021, 6:45:14 PM7/6/21
to weewx-user
It shouldn't be hard to preserve your old data. Just be sure to make a backup first. Here's what to back up.

An older Raspberry Pi, even one 7 years old, should have no problem running buster. I've got it running on a six year old RPi 2, and it works just fine.

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/b10978d6-8d46-a5e8-1bdc-de03e9994050%40gmail.com.
Reply all
Reply to author
Forward
0 new messages