Should I be worried? Unable to instantiate generator 'weewx.cheetahgenerator.CheetahGenerator'

88 views
Skip to first unread message

themet...@gmail.com

unread,
Aug 25, 2020, 7:21:38 AM8/25/20
to weewx-user
Using the normal apt upgrade command I have had a bit of a party upgrading to Version 4.1.1-1  with missing Python 3 Modules in particular python3-serial, python3-configobj,  python3-mysqldb,  python3-pil this last one causing the graphs not to be created, I am left with this error:

weewx[11789] ERROR weewx.reportengine: Unable to instantiate generator 'weewx.cheetahgenerator.CheetahGenerator'
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****  No module named 'Cheetah'
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****  Traceback (most recent call last):
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/reportengine.py", line 180, in run
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****      obj = weeutil.weeutil.get_object(generator)(
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****      mod = __import__(module)
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****    File "/usr/share/weewx/weewx/cheetahgenerator.py", line 66, in <module>
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****      import Cheetah.Filters
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****  ImportError: No module named 'Cheetah'
Aug 25 11:11:06 picluster python3[11789]: weewx[11789] ERROR weewx.reportengine:         ****  Generator ignored

Should I be concerned? I have searched with apt search cheetah and found that I have python-cheetah/oldstable,now 2.4.4-4 armhf [installed]

No python3-cheetah though.

Regards
Francis

John Kline

unread,
Aug 25, 2020, 10:42:11 AM8/25/20
to weewx...@googlegroups.com
Install python3-cheetah.
(python-cheetah is for Python2)

On Aug 25, 2020, at 4:21 AM, themet...@gmail.com <themet...@gmail.com> wrote:


--
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/29824a2a-c784-4404-b797-3d45aa7fecc5n%40googlegroups.com.

Tom Keffer

unread,
Aug 25, 2020, 5:50:45 PM8/25/20
to weewx-user
You did not say what operating system you are using, but python3-cheetah is not available on all systems. In particular, it is not available for Debian 9. 

In that case, you must either use Python 2, or use pip to install a python3 version of Cheetah.

sudo apt install python3-distutils
sudo apt install python3-pip
sudo pip3 install cheetah3

-tk


--
Reply all
Reply to author
Forward
0 new messages