pi@raspberrypi:/home/weewx $ sudo /etc/init.d/weewx status● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx; generated) Active: active (exited) since Sat 2020-03-07 08:24:46 GMT; 24h ago Docs: man:systemd-sysv-generator(8) Process: 13209 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS)
Mar 07 11:55:22 raspberrypi weewxd[13224]: weewx[13224] INFO botocore.credentials: Found credentials in shared credentials…edentialsMar 07 11:55:57 raspberrypi weewxd[13224]: weewx[13224] INFO user.s3backup: S3BackupGenerator: S3 copied files to S3 in 0 …7 secondsMar 07 12:00:16 raspberrypi weewxd[13224]: weewx[13224] INFO weewx.manager: Added record 2020-03-07 12:00:00 GMT (15835824…eewx.sdb'Mar 07 12:00:16 raspberrypi weewxd[13224]: weewx[13224] INFO weewx.manager: Added record 2020-03-07 12:00:00 GMT (15835824…eewx.sdb'Mar 07 12:00:18 raspberrypi weewxd[13224]: weewx[13224] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsR…0 secondsMar 07 12:00:23 raspberrypi weewxd[13224]: weewx[13224] INFO weewx.imagegenerator: Generated 27 images for report SeasonsR…1 secondsMar 07 12:00:23 raspberrypi weewxd[13224]: weewx[13224] INFO weewx.reportengine: Copied 0 files to /var/www/html/MountWeatherMar 07 12:00:23 raspberrypi weewxd[13224]: weewx[13224] INFO botocore.credentials: Found credentials in shared credentials…edentialsMar 07 12:00:29 raspberrypi weewxd[13224]: weewx[13224] INFO user.s3upload: S3UploadGenerator: AWS-S3 copied 34 files to S…0 secondsMar 07 12:00:30 raspberrypi weewxd[13224]: weewx[13224] INFO botocore.credentials: Found credentials in shared credentials…edentials
pi@raspberrypi:/home/weewx $ sudo /etc/init.d/weewx status● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx; generated) Active: active (running) since Sun 2020-03-08 08:45:32 GMT; 14min ago Docs: man:systemd-sysv-generator(8) Process: 29330 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS) Tasks: 2 (limit: 2200) Memory: 42.2M CGroup: /system.slice/weewx.service └─29345 /usr/bin/python /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] INFO weewx.manager: Added record 2020-03-08 09:00:00 GMT (1583658000) to daily summary in 'weewx.sdb'Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: Generate failed with exception '<class 'TypeError'>'Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/index.html.tmplMar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Reason: '>' not supported between instances of 'NoneType' and 'float'Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generateMar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_index_html_tmpl.py", line …, in respondMar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** TypeError: '>' not supported between instances of 'NoneType' and 'float'Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] INFO weewx.cheetahgenerator: Generated 6 files for report SeasonsReport in 1.50 secondsMar 08 09:00:21 raspberrypi weewxd[29345]: weewx[29345] INFO weewx.imagegenerator: Generated 27 images for report SeasonsReport in 4.65 secondsMar 08 09:00:21 raspberrypi weewxd[29345]: weewx[29345] INFO weewx.reportengine: Copied 0 files to /var/www/html/MountWeatherHint: Some lines were ellipsized, use -l to show in full.
def get_metadata(dist): # type: (Distribution) -> Message """ :raises NoneMetadataError: if the distribution reports `has_metadata()` True but `get_metadata()` returns None. """ metadata_name = 'METADATA' if (isinstance(dist, pkg_resources.DistInfoDistribution) and dist.has_metadata(metadata_name)): metadata = dist.get_metadata(metadata_name) elif dist.has_metadata('PKG-INFO'): metadata_name = 'PKG-INFO' metadata = dist.get_metadata(metadata_name) else: logger.warning("No metadata found in %s", display_path(dist.location)) metadata = ''
if metadata is None: raise NoneMetadataError(dist, metadata_name)
feed_parser = FeedParser() # The following line errors out if with a "NoneType" TypeError if # passed metadata=None. feed_parser.feed(metadata) return feed_parser.close()
pi@raspberrypi:~ $ sudo mv /home/weewx /home/weewx.brokenpi@raspberrypi:~ $ ls -al /hometotal 16drwxr-xr-x 4 root root 4096 Mar 8 10:12 .drwxr-xr-x 21 root root 4096 Feb 13 16:32 ..drwxr-xr-x 21 pi pi 4096 Mar 6 18:18 pidrwxr-xr-x 8 pi root 4096 Mar 8 10:08 weewx.broken
pi@raspberrypi:~ $ cd weewx-4.0.0b14/pi@raspberrypi:~/weewx-4.0.0b14 $ ./setup.py buildrunning buildrunning build_pyrunning build_scriptspi@raspberrypi:~/weewx-4.0.0b14 $ sudo ./bin/weewxd weewx.confTraceback (most recent call last): File "./bin/weewxd", line 261, in <module> main() File "./bin/weewxd", line 148, in main engine = weewx.engine.StdEngine(config_dict) File "/home/pi/weewx-4.0.0b14/bin/weewx/engine.py", line 69, in __init__ self.setupStation(config_dict) File "/home/pi/weewx-4.0.0b14/bin/weewx/engine.py", line 87, in setupStation driver = config_dict[station_type]['driver'] File "/usr/lib/python3/dist-packages/configobj.py", line 554, in __getitem__ val = dict.__getitem__(self, key)KeyError: 'unspecified'pi@raspberrypi:~/weewx-4.0.0b14 $ python -VPython 3.7.3
pi@raspberrypi:~ $ sudo rm -fr weewx-4.0.0b14
pi@raspberrypi:~ $ tar xvfz weewx-4.0.0b14.tar.gz
pi@raspberrypi:~ $ cd weewx-4.0.0b14/pi@raspberrypi:~/weewx-4.0.0b14 $ ./setup.py buildrunning buildrunning build_pycreating build
pi@raspberrypi:~/weewx-4.0.0b14 $ sudo ./setup.py installrunning installrunning buildrunning build_pyrunning build_scriptsrunning install_libcreating /home/weewxpi@raspberrypi:/home $ diff -qr weewx weewx.broken/Files weewx/archive/weewx.sdb and weewx.broken/archive/weewx.sdb differOnly in weewx.broken/bin/user/__pycache__: s3backup.cpython-37.pycOnly in weewx.broken/bin/user/__pycache__: s3upload.cpython-37.pycOnly in weewx.broken/bin/user/__pycache__: stats.cpython-37.pyc
pi@raspberrypi:/home $ sudo /etc/init.d/weewx status● weewx.service - LSB: weewx weather system Loaded: loaded (/etc/init.d/weewx; generated) Active: active (running) since Sun 2020-03-08 10:18:18 GMT; 10min ago Docs: man:systemd-sysv-generator(8) Process: 12254 ExecStart=/etc/init.d/weewx start (code=exited, status=0/SUCCESS) Tasks: 1 (limit: 2200) Memory: 37.8M CGroup: /system.slice/weewx.service └─12269 /usr/bin/python /home/weewx/bin/weewxd --daemon --pidfile=/var/run/weewx.pid /home/weewx/weewx.conf
Mar 08 10:21:20 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.reportengine: Copied 22 files to /var/www/html/MountWeatherMar 08 10:21:21 raspberrypi weewxd[12269]: weewx[12269] INFO botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentialsMar 08 10:21:46 raspberrypi weewxd[12269]: weewx[12269] INFO user.s3upload: S3UploadGenerator: AWS-S3 copied 147 files to S3 in 25.55 secondsMar 08 10:25:15 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.manager: Added record 2020-03-08 10:25:00 GMT (1583663100) to database 'weewx.sdb'Mar 08 10:25:15 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.manager: Added record 2020-03-08 10:25:00 GMT (1583663100) to daily summary in 'weewx.sdb'Mar 08 10:25:17 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.cheetahgenerator: Generated 7 files for report SeasonsReport in 1.60 secondsMar 08 10:25:18 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.imagegenerator: Generated 9 images for report SeasonsReport in 0.77 secondsMar 08 10:25:18 raspberrypi weewxd[12269]: weewx[12269] INFO weewx.reportengine: Copied 0 files to /var/www/html/MountWeatherMar 08 10:25:18 raspberrypi weewxd[12269]: weewx[12269] INFO botocore.credentials: Found credentials in shared credentials file: ~/.aws/credentialsMar 08 10:25:21 raspberrypi weewxd[12269]: weewx[12269] INFO user.s3upload: S3UploadGenerator: AWS-S3 copied 16 files to S3 in 3.23 seconds
pi@raspberrypi:/home $ diff -qr weewx weewx.broken/Files weewx/archive/weewx.sdb and weewx.broken/archive/weewx.sdb differOnly in weewx.broken/bin/user/__pycache__: s3backup.cpython-37.pycFiles weewx/bin/user/__pycache__/s3upload.cpython-37.pyc and weewx.broken/bin/user/__pycache__/s3upload.cpython-37.pyc differFiles weewx/bin/user/__pycache__/stats.cpython-37.pyc and weewx.broken/bin/user/__pycache__/stats.cpython-37.pyc differOnly in weewx: #S3.lastpi@raspberrypi:/home $
TypeError: '>' not supported between instances of 'NoneType' and 'float'
KeyError: 'unspecified'
--
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/9b44ac23-d8cf-44ec-ac17-ac654e15be6e%40googlegroups.com.
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Ignoring template /home/weewx/skins/Seasons/index.html.tmpl
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Reason: '>' not supported between instances of 'NoneType' and 'float'
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** Traceback (most recent call last):
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** File "/home/weewx/bin/weewx/cheetahgenerator.py", line 322, in generate
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** unicode_string = compiled_template.respond()
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** File "_home_weewx_skins_Seasons_index_html_tmpl.py", line …, in respond
Mar 08 09:00:16 raspberrypi weewxd[29345]: weewx[29345] ERROR weewx.cheetahgenerator: **** TypeError: '>' not supported between instances of 'NoneType' and 'float'#if $day.ET.has_data and $day.ET.sum.raw > 0.0#if $day.ET.has_data and $day.ET.sum.raw is not None and $day.ET.sum.raw > 0.0
save the files (no need for restart) and see if the problem disappears.
Gary
Trend : #if $trend.barometer.raw is not None #if $trend.barometer.raw > 2.0 'Rising Rapidly' #else if $trend.barometer.raw > 0.7 'Rising Slowly' #else if $trend.barometer.raw < -2.0 'Falling Rapidly' #else if $trend.barometer.raw < -0.7 'Falling Slowly' #else 'Steady' #end if #else 'Steady' #end ifSo is if fair to say Python3 is more stringent when it comes to these types of comparisons?