Error when executing sudo pywws-hourly -vvv ~/weather/data

10 views
Skip to first unread message

Almayate Bajo

unread,
Jan 23, 2024, 3:15:08 PMJan 23
to py...@googlegroups.com
Hello 
When running "sudo pywws-hourly -vvv ~/weather/data". It gives the following error:


TorreB@pywws:~/weather/data $ sudo pywws-hourly -vvv ~/weather/data
21:38:58:pywws.logger:pywws version 23.2.0, build 1703 (e8dfaba)
21:38:58:pywws.logger:Python version 3.9.2 (default, Mar 12 2021, 04:06:34) 
[GCC 10.2.1 20210110]
21:38:58:pywws.weatherstation:trying USB module device_libusb1
21:38:58:pywws.weatherstation:using pywws.device_libusb1
21:39:00:pywws.logdata:Synchronising to weather station
21:39:00:pywws.weatherstation:read period 5
21:39:00:pywws.weatherstation:delay 1, pause 18.3433
21:39:19:pywws.weatherstation:status {'lost_connection': False, 'rain_overflow': False}
21:39:19:pywws.weatherstation:delay 1, pause 0.5
21:39:19:pywws.weatherstation:avoid 5.796512088242771
21:39:25:pywws.weatherstation:live_data new data
21:39:25:pywws.logdata:Reading time 20:39:22
21:39:25:pywws.logdata:log time 20:37:16
21:39:25:pywws.logdata:Fetching data
21:39:25:pywws.process:Generating summary data
21:39:25:pywws.calib:Using default calibration
21:39:27:pywws.storage:flushing
Traceback (most recent call last):
  File "/usr/local/bin/pywws-hourly", line 33, in <module>
    sys.exit(load_entry_point('pywws==23.6.0', 'console_scripts', 'pywws-hourly')())
  File "/usr/local/lib/python3.9/dist-packages/pywws/hourly.py", line 97, in main
    return hourly(args[0])
  File "/usr/local/lib/python3.9/dist-packages/pywws/hourly.py", line 68, in hourly
    pywws.regulartasks.RegularTasks(context).do_tasks()
  File "/usr/local/lib/python3.9/dist-packages/pywws/regulartasks.py", line 95, in __init__
    mod = importlib.import_module('pywws.service.' + name)
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'pywws.service.7days'
TorreB@pywws:~/weather/data $ 

Attachment Weather.ini
paths]
work = /tmp/weather
datastoretype = filedata
templates = /home/TorreB/weather/templates/
graph_templates = /home/TorreB/weather/graph_templates/
local_files = /home/TorreB/weather/results/
modules = /home/TorreB/weather/modules/

[config]
usb activity margin = 3.0
ws type = 1080
pressure offset = -7.3
logdata sync = 1
day end hour = 0, False
rain day threshold = 0.2
frequent writes = False
gnuplot version = 4.2
gnuplot encoding = iso_8859_1
template encoding = iso-8859-1

[hourly]
services = [('twitter', 'tweet.txt'),
            ('7days.png', '24hrs.png', 'rose_24hrs.png',
                    '24hrs.txt', '6hrs.txt', '7days.txt')]
plot = ['7days.png.xml', '24hrs.png.xml', 'rose_24hrs.png.xml']
text = ['tweet.txt', '24hrs.txt', '6hrs.txt', '7days.txt']

[12 hourly]
services = []
plot = []
text = []

[daily]
services = []
plot = ['24hrs.txt']
text = ['24hrs.txt']

[live]
services = []
plot = []
text = ['24hrs.txt’]


What is the reason for this error?
Greetings.

Jim Easterbrook

unread,
Jan 23, 2024, 3:25:50 PMJan 23
to py...@googlegroups.com
On 23/01/2024 19:17, Almayate Bajo wrote:

> When running "sudo pywws-hourly -vvv ~/weather/data". It gives the
> following error:
>
> ModuleNotFoundError: No module named 'pywws.service.7days'
> *TorreB@pywws*:*~/weather/data $*
>
> Attachment Weather.ini

> *[hourly]*
> services = [('twitter', 'tweet.txt'),
>             ('7days.png', '24hrs.png', 'rose_24hrs.png',
>                     '24hrs.txt', '6hrs.txt', '7days.txt')]

'7days.png' etc. are not services, they are files that I expect you want
a service to do something with. I think you are missing 'ftp' or 'sftp'
from the start of that group.
--
Jim Easterbrook <http://www.jim-easterbrook.me.uk/>

Reply all
Reply to author
Forward
0 new messages