> TypeError: a bytes-like object is required, not 'str'
I do not use this extension, but the error is an indication that the extension 
was not ported to work with Python 3 (bytes and str are different types in 
Python 3).

I don’t know if it the author claims WeeWX 4 comparability, but if he does, he 
may not have tested it with WeeWX 4/Python 3.


> On May 1, 2020, at 9:53 AM, Manfred Maier <[email protected]> wrote:
> 
> 
> Apologies for talking to myself here :)
> 
> I've now updated the SFTP extension. 
> At least the error massaged changed:
> 
> pi@raspberrypi:~ $ sudo 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 280, in start
> 
>     self.run()
> 
>   File "/usr/share/weewx/user/sftp.py", line 259, in run
> 
>     n = uploader.run()
> 
>   File "/usr/share/weewx/user/sftp.py", line 89, in run
> 
>     (timestamp, fileset) = self.get_last_upload()
> 
>   File "/usr/share/weewx/user/sftp.py", line 158, in get_last_upload
> 
>     timestamp = cPickle.load(f)
> 
> TypeError: a bytes-like object is required, not 'str'
> 
> 
> 
> 
> 
> Now I'm really running out of ideas.
> 
> 
>> 
> 
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/1e213c8a-579e-44c8-9da6-c73b47071061%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/E485C8F2-58BB-4446-BC50-150A83DD4F27%40johnkline.com.

Reply via email to