Hallo
supplement

I have in weewx.conf under
        xtype_services = weewx.wxxtypes.StdWXXTypes, 
weewx.wxxtypes.StdPressureCooker, weewx.wxxtypes.StdRainRater, 
user.xaggs.XAggsService, weewx.wxxtypes.StdDelta, 
user.vaporpressure.VaporPressureService  
 set # , user.phenologyservice.PhenologyService

then in syslog

Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: Generate 
failed with exception '<class 'SyntaxError'>'
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: **** 
Ignoring template /home/weewx/skins/Phenology/index.html.tmpl
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: **** 
Reason: invalid syntax (growing_degrees.py, line 294)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Traceback (most recent call last):
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
828, in compile
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
source, file, generatedModuleCode, exception=e)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
2045, in genParserErrorFromPythonException
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
reader = SourceReader(source, filename=filename)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/SourceReader.py", line 
19, in __init__
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
self._srcLen = len(src)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
TypeError: object of type 'NoneType' has no len()
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
During handling of the above exception, another exception occurred:
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Traceback (most recent call last):
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
filtersLib=weewx.cheetahgenerator)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
1337, in __init__
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
self._compile(source, file, compilerSettings=compilerSettings)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
1638, in _compile
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
keepRefToGeneratedCode=True)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
832, in compile
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
raise e
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
824, in compile
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
exec(co, mod.__dict__)
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "_home_weewx_skins_Phenology_index_html_tmpl.py", line 27, in <module>
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/user/phenologyservice.py", line 35, in <module>
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
import user.growing_degrees
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/user/growing_degrees.py", line 294
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
**dummies,
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: 
****               ^
Mar  9 19:51:55 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
SyntaxError: invalid syntax
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: Generate 
failed with exception '<class 'SyntaxError'>'
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: **** 
Ignoring template 
/home/weewx/skins/Phenology/cumulative_growing_degree_days.html.tmpl
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: **** 
Reason: invalid syntax (growing_degrees.py, line 294)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Traceback (most recent call last):
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
828, in compile
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
source, file, generatedModuleCode, exception=e)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
2045, in genParserErrorFromPythonException
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
reader = SourceReader(source, filename=filename)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/SourceReader.py", line 
19, in __init__
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
self._srcLen = len(src)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
TypeError: object of type 'NoneType' has no len()
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
During handling of the above exception, another exception occurred:
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
Traceback (most recent call last):
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/weewx/cheetahgenerator.py", line 320, in generate
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
filtersLib=weewx.cheetahgenerator)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
1337, in __init__
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
self._compile(source, file, compilerSettings=compilerSettings)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
1638, in _compile
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
keepRefToGeneratedCode=True)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
832, in compile
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
raise e
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/usr/local/lib/python3.5/dist-packages/Cheetah/Template.py", line 
824, in compile
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
exec(co, mod.__dict__)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File 
"_home_weewx_skins_Phenology_cumulative_growing_degree_days_html_tmpl.py", 
line 30, in <module>
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/user/phenologyservice.py", line 35, in <module>
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
import user.growing_degrees
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****    
File "/home/weewx/bin/user/growing_degrees.py", line 294
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****      
**dummies,
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: 
****               ^
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.cheetahgenerator: ****  
SyntaxError: invalid syntax
Mar  9 19:52:00 hesba weewx[16315] INFO weewx.cheetahgenerator: Generated 4 
files for report PhenologyReport in 5.02 seconds
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine: Unable to 
instantiate generator 'user.phenologygenerator.PhenologyImageGenerator'
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         ****  
invalid syntax (growing_degrees.py, line 294)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         ****  
Traceback (most recent call last):
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****    File "/home/weewx/bin/weewx/reportengine.py", line 179, in run
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****      obj = weeutil.weeutil.get_object(generator)(
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****    File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****      mod = __import__(module)
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****    File "/home/weewx/bin/user/phenologygenerator.py", line 37, in 
<module>
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****      import user.phenologyservice
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****    File "/home/weewx/bin/user/phenologyservice.py", line 35, in 
<module>
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****      import user.growing_degrees
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****    File "/home/weewx/bin/user/growing_degrees.py", line 294
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****      **dummies,
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         
****               ^
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         ****  
SyntaxError: invalid syntax
Mar  9 19:52:00 hesba weewx[16315] ERROR weewx.reportengine:         ****  
Generator ignored
Mar  9 19:52:04 hesba weewx[16315] INFO weewx.reportengine: ftpgenerator: 
Ftp'd 37 files in 3.84 seconds

sorry, my weewx is weewx4.4.0 and python 3.5

Hartmut


hesf...@gmail.com schrieb am Dienstag, 9. März 2021 um 19:29:25 UTC+1:

> Hallo Chuck Rhode,
>
> I copied the file "growing_degrees.py" from the message   
>
> in to weewx / bin / user 
>
> and restarted weewx
>
> the result
> Mar  9 19:25:59 hesba weewx[14366] INFO weewx.engine: StdConvert target 
> unit is 0x10
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__: Caught unrecoverable 
> exception:
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****  invalid 
> syntax (growing_degrees.py, line 294)
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****  Traceback 
> (most recent call last):
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/weewxd", line 151, in main
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      engine 
> = weewx.engine.StdEngine(config_dict)
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/weewx/engine.py", line 93, in __init__
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      
> self.loadServices(config_dict)
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/weewx/engine.py", line 161, in loadServices
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      obj = 
> weeutil.weeutil.get_object(svc)(self, config_dict)
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      mod = 
> __import__(module)
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/user/phenologyservice.py", line 35, in <module>
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      import 
> user.growing_degrees
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****    File 
> "/home/weewx/bin/user/growing_degrees.py", line 294
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****      
> **dummies,
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     
> ****               ^
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****  
> SyntaxError: invalid syntax
> Mar  9 19:26:00 hesba weewx[14366] CRITICAL __main__:     ****  Exiting.
>
> Thanks
> Hartmut
> crh...@lacusveris.com schrieb am Dienstag, 9. März 2021 um 19:02:11 UTC+1:
>
>> -----BEGIN PGP SIGNED MESSAGE----- 
>> Hash: SHA1 
>>
>> Yes, that all looks good, and I am unable to guess what else could be 
>> wrong. Maybe there is an unclosed string literal close to the top of 
>> the module. It must be really late for you today. I'll attach a copy 
>> of the module to a private message to you for comparison. Please let 
>> me know if you see any differences. Thanks. 
>>
>> - -- 
>> .. Be Seeing You, 
>> .. Chuck Rhode, Sheboygan, WI, USA 
>> .. Weather: http://LacusVeris.com/WX 
>> .. 48° — Wind SE 9 mph 
>>
>> -----BEGIN PGP SIGNATURE----- 
>>
>> iF0EARECAB0WIQT+MY/5I/LMPSswTbVg2/xipKOWUgUCYEe25gAKCRBg2/xipKOW 
>> UlG7AJ9IqcrCYwrjh4+E7g7NmdE8TOqk9QCbBJ49ZaVaSTKK8/TeoIbRuYh4IZw= 
>> =V9Zc 
>> -----END PGP SIGNATURE----- 
>>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/a459903a-14cf-442d-bd88-1e3edec6e4e0n%40googlegroups.com.

Reply via email to