>
>
>> On 04 Jul 2019, at 08:56, steeple ian wrote:
>>
>> Matthew,
>>
>> Yes I did,
>>
>> This is from the syslog: -
>>
>> reportengine: Caught unrecoverable exception in generator 
>> 'weewx.reportengine.CopyGenerator'
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  [Errno 21] Is a 
>> directory: 'w34pages'
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  Traceback (most recent 
>> call last):
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>> "/home/weewx/bin/weewx/reportengine.py", line 204, in run
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      obj.start()
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>> "/home/weewx/bin/weewx/reportengine.py", line 300, in start
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      self.run()
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>> "/home/weewx/bin/weewx/reportengine.py", line 460, in run
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      shutil.copy(_file, 
>> dest_dir)
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>> "/usr/lib/python2.7/shutil.py", line 119, in copy
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      copyfile(src, dst)
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****    File 
>> "/usr/lib/python2.7/shutil.py", line 82, in copyfile
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****      with open(src, 
>> 'rb') as fsrc:
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  IOError: [Errno 21] Is 
>> a directory: 'w34pages'
>> Jul  4 13:40:44 DietPi weewx[7627]:         ****  Generator terminated
>>
>>
>> It seems to have choked on the fact that it was a directory!
>>
>
i thought i remembered something about this.  there was a fix in 3.9.2 (not 
yet released) for something similar - see #379:

https://github.com/weewx/weewx/issues/379

otherwise, just explicitly specify the patterns for files that you need to 
copy.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-development/ac202d6b-47ca-4e8c-a154-3c30549eaf8a%40googlegroups.com.

Reply via email to