No module named 'user.xstats'

302 views
Skip to first unread message

Liz Dodd

unread,
Feb 16, 2022, 5:07:36 PM2/16/22
to weewx-user
This is a new install, because I'm replacing my server. I am using Debian 11
and install with the deb method. Weewx version is 4.6.0-1.
Having successfully setup weewx and some extensions, I have no reports.
I'm sure someone can tell me immediately which python module I'm missing. I can install that and all will work, but for others installing a new system through deb packages will also be missing this dependency.
$ wee_reports
Using configuration file /etc/weewx/weewx.conf
Generating for all time
Traceback (most recent call last):
  File "/usr/share/weewx/weewx/reportengine.py", line 197, in run
    obj.start()
  File "/usr/share/weewx/weewx/reportengine.py", line 378, in start
    self.run()
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 166, in run
    self.init_extensions(gen_dict[section_name])
  File "/usr/share/weewx/weewx/cheetahgenerator.py", line 197, in init_extensions
    klass = weeutil.weeutil.get_object(x)
  File "/usr/share/weewx/weeutil/weeutil.py", line 1149, in get_object
    mod = __import__(module)
ModuleNotFoundError: No module named 'user.xstats'

I've looked at reportengine.py and tried to work out what I am missing
# System imports:
import datetime
import ftplib
import glob
import logging
import os.path
import threading
import time
import traceback


I didn't find any python package on my system providing libftp, glob, logging, os.path, threading or traceback.
I have ensured that every package listed on the wiki for the install.py method is installed on my system. I installed packages I thought covered the needs of reportengine.py but the error persists.

Liz


Tom

unread,
Feb 16, 2022, 5:40:35 PM2/16/22
to weewx...@googlegroups.com

Look under /usr/share/doc/weewx/examples.  You will find xstats there and can install it.

 

Tom

--
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/a5fbfef7-3737-41ac-8250-db71df589ae1n%40googlegroups.com.

Liz

unread,
Feb 16, 2022, 7:42:32 PM2/16/22
to weewx...@googlegroups.com
On Wed, 16 Feb 2022 22:40:29 +0000
Tom <nine...@gmail.com> wrote:

> Look under /usr/share/doc/weewx/examples. You will find xstats there
> and can install it.
>
> Tom
>
Thanks Tom
Reply all
Reply to author
Forward
0 new messages