Re: [weewx-user] Re: Rasbian 10 - Update failed
> 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 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 weewx-user+unsubscr...@googlegroups.com. > 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/E485C8F2-58BB-4446-BC50-150A83DD4F27%40johnkline.com.
[weewx-user] Re: Rasbian 10 - Update failed
I've cheered too soon. The new version only worked with wee-Reports, but not in the normal reporting loop. Anyway, I'm using FTP instead of SFTP now. Am Freitag, 1. Mai 2020 21:37:25 UTC+2 schrieb Manfred Maier: > > Just FYI > > I was able to resolve the python 3 issue of the SFTP extension by making a > few changes in the sftp.py file. > > Thanks vince for pointing me in the right direction! > > > Am Freitag, 1. Mai 2020 20:00:51 UTC+2 schrieb Manfred Maier: >> >> I'll give it a try, once the kids are in bed. >> >> Thanks! >> >> >> -- 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/9d7879d1-e030-443e-a38a-c1c3f92ac5e7%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Just FYI I was able to resolve the python 3 issue of the SFTP extension by making a few changes in the sftp.py file. Thanks vince for pointing me in the right direction! Am Freitag, 1. Mai 2020 20:00:51 UTC+2 schrieb Manfred Maier: > > I'll give it a try, once the kids are in bed. > > Thanks! > > > -- 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/8fc87643-6941-4653-ab1f-991101e03027%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
I'll give it a try, once the kids are in bed. Thanks! -- 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/cd89faa2-8cb3-4850-b2c8-5e49b4cb6c83%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
On Friday, May 1, 2020 at 10:44:40 AM UTC-7, Manfred Maier wrote: > > That's Matthew Wall's SFTP extension and I haven't found an updated > version. > Anyway, I'll raise this issue directly in the Github project. > If you want to try something, since Matthew's busy I'm sure on more core stuff (plus having a life etc.), run the extension through "2to3 -w" and restart weewx and see if that helps any. That will try to do an upgrade to python3-compliant and will get pretty close. If you want to point me to a URL with the file you're using, I can take a look if you want. -- 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/27145527-f7a7-4b7e-9beb-2b59a3fbdec9%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
That's Matthew Wall's SFTP extension and I haven't found an updated version. Anyway, I'll raise this issue directly in the Github project. Thanks! Am Freitag, 1. Mai 2020 19:34:49 UTC+2 schrieb vince: > > On Friday, May 1, 2020 at 9:45:38 AM UTC-7, Manfred Maier wrote: >> >> except pysftp.ConnectionException, e: >> >> ^ >> >> SyntaxError: invalid syntax >> >> >> > > Any time you see something that looks like that, you are running python3 > against code written for python2 > > All the extensions written for python2 need to be updated to support > python3. > You should check to see if there is a more recent version of this > extension. > > > -- 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/8b52587a-af76-479c-a03d-614cb4ead062%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
On Friday, May 1, 2020 at 9:53:00 AM UTC-7, Manfred Maier wrote: > > 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' > This is another known python3 thing, which tells me your extension isn't fully updated to support python3 quite yet. Looking in google for the exact words on your 'TypeError' output above points me to: https://stackoverflow.com/questions/33054527/typeerror-a-bytes-like-object-is-required-not-str-when-writing-to-a-file-in and https://stackoverflow.com/questions/51940081/string-python-3-5-write-a-bytes-like-object-is-required-not-str -- 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/411c1c4f-4713-485e-a623-b4f45101c4da%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
On Friday, May 1, 2020 at 9:45:38 AM UTC-7, Manfred Maier wrote: > > except pysftp.ConnectionException, e: > > ^ > > SyntaxError: invalid syntax > > > Any time you see something that looks like that, you are running python3 against code written for python2 All the extensions written for python2 need to be updated to support python3. You should check to see if there is a more recent version of this extension. -- 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/bd4f803b-ce88-40ae-a3ec-67a0c6def303%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/1e213c8a-579e-44c8-9da6-c73b47071061%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Good. Next one solved. The Belchertown graphs.conf seems to be case sensitive with the new weewx 4.0 The observation "MaxSolarRad" worked in 3.9.2, but does not work in 4.0 After renaming it to "maxSolarRad" this issue was gone. But there's another issue - and hopefully the last one: Is that again a python 3 issue with an extension? In this case SFTP? Any hint welcome! *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 180, in run obj = weeutil.weeutil.get_object(generator)( File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object mod = __import__(module) File "/usr/share/weewx/user/sftp.py", line 81 except pysftp.ConnectionException, e: ^ SyntaxError: invalid syntax -- 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/d139513c-da5e-47bf-bcdd-a9c853d21817%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
So, the next issue has to do with MaxSolarRad I have that in my database, but as 'maxSolarRad' May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Caught unrecoverable exception in generator 'user.belchertown.HighchartsJsonGenerator' May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Error trying to use database binding wx_binding to graph observation MaxSolarRad. Error was: MaxSolarRad. May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Traceback (most recent call last): May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/user/belchertown.py", line 1821, in get_observation_data May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: (time_start_vt, time_stop_vt, obs_vt) = archive.getSqlVectors(TimeSpan(start_ts, end_ts), obs_lookup, aggregate_type, aggregate_in$ May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weewx/manager.py", line 452, in getSqlVectors May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: aggregate_type, aggregate_interval) May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weewx/xtypes.py", line 91, in get_series May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: raise weewx.UnknownType(obs_type) May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: weewx.UnknownType: MaxSolarRad May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: During handling of the above exception, another exception occurred: May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Traceback (most recent call last): May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weewx/reportengine.py", line 197, in run May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: obj.start() May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weewx/reportengine.py", line 280, in start May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: self.run() May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/user/belchertown.py", line 1370, in run May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: series_data = self.get_observation_data(binding, archive, observation_type, minstamp, maxstamp, aggregate_type, aggregate_interval$ May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/user/belchertown.py", line 1823, in get_observation_data May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: raise Warning( "Error trying to use database binding %s to graph observation %s. Error was: %s." % (binding, obs_lookup, e) ) May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Warning: Error trying to use database binding wx_binding to graph observation MaxSolarRad. Error was: MaxSolarRad. May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Generator terminated May 1 17:55:22 raspberrypi weewx[21194] DEBUG weewx.reportengine: Running report 'sftp' May 1 17:55:22 raspberrypi weewx[21194] DEBUG weewx.reportengine: Found configuration file /etc/weewx/skins/sftp/skin.conf for report 'sftp' May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Unable to instantiate generator 'user.sftp.SFTPGenerator' May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: invalid syntax (sftp.py, line 81) May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: Traceback (most recent call last): May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weewx/reportengine.py", line 180, in run May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: obj = weeutil.weeutil.get_object(generator)( May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: mod = __import__(module) May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: File "/usr/share/weewx/user/sftp.py", line 81 May 1 17:55:22 raspberrypi weewx[21194] ERROR weewx.reportengine: except pysftp.ConnectionException, e: May 1
[weewx-user] Re: Rasbian 10 - Update failed
Three more steps done! Extensions that crash with Python 3: * OpenWeatherMap * WCloud * Wetter For OWM I've tried to find a newer version (> 0.8), but could find any. Same for the other two :( So currently my only issue left: The JSON files for the Belchertown skin are still not produced. Am Freitag, 1. Mai 2020 17:41:16 UTC+2 schrieb Manfred Maier: > > Oh. That might be OpenWeatherMap > > Give me a minute. > > > -- 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/17581253-c600-44c6-9e85-89cbdbeab3b1%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Oh. That might be OpenWeatherMap Give me a minute. Am Freitag, 1. Mai 2020 17:38:48 UTC+2 schrieb Manfred Maier: > > Ok. One step done. > > Python 3 version still is crashing, but now with a slightly different > error message in the log: > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.engine: Finished > loading service user.windy.Windy > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.engine: Loading > service user.owm.OpenWeatherMap > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily > summary version is 2.0 > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily > summary version is 2.0 > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily > summary version is 2.0 > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily > summary version is 2.0 > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down > Windy thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down MQTT > thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down > AWEKAS thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down WOW > thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down CWOP > thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down > PWSWeather thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down > Wunderground-PWS thread. > > May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down > StationRegistry thread. > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: Caught > unrecoverable exception: > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > invalid syntax (owm.py, line 84) > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > Traceback (most recent call last): > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > File "/usr/share/weewx/weewxd", line 148, in main > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > engine = weewx.engine.StdEngine(config_dict) > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > self.loadServices(config_dict) > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > obj = weeutil.weeutil.get_object(svc)(self,config_dict) > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > mod = __import__(module) > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > File "/usr/share/weewx/user/owm.py", line 84 > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > except KeyError, e: > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > ^ > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > SyntaxError: invalid syntax > > May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: > Exiting. > > > Am Freitag, 1. Mai 2020 17:26:21 UTC+2 schrieb Michael: >> >> try it with >> >> >> sudo pip3 install paho-mqtt >> >> -- 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/4f9b71eb-fe29-4f6c-93c8-6f4a9b23141d%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Ok. One step done. Python 3 version still is crashing, but now with a slightly different error message in the log: May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.engine: Finished loading service user.windy.Windy May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.engine: Loading service user.owm.OpenWeatherMap May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily summary version is 2.0 May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily summary version is 2.0 May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily summary version is 2.0 May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.manager: Daily summary version is 2.0 May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down Windy thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down MQTT thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down AWEKAS thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down WOW thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down CWOP thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down PWSWeather thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down Wunderground-PWS thread. May 1 17:28:48 raspberrypi weewx[19064] DEBUG weewx.restx: Shut down StationRegistry thread. May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: Caught unrecoverable exception: May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: invalid syntax (owm.py, line 84) May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: Traceback (most recent call last): May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: File "/usr/share/weewx/weewxd", line 148, in main May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: engine = weewx.engine.StdEngine(config_dict) May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: self.loadServices(config_dict) May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: obj = weeutil.weeutil.get_object(svc)(self,config_dict) May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: mod = __import__(module) May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: File "/usr/share/weewx/user/owm.py", line 84 May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: except KeyError, e: May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: ^ May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: SyntaxError: invalid syntax May 1 17:28:48 raspberrypi weewx[19064] CRITICAL __main__: Exiting. Am Freitag, 1. Mai 2020 17:26:21 UTC+2 schrieb Michael: > > try it with > > > sudo pip3 install paho-mqtt > > -- 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/9a582b5d-7c5b-4fe5-903e-8018c11f67a2%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
try it with sudo pip3 install paho-mqtt -- 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/d822e8a9-9ead-450d-9ebc-4bf009d5c463%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Yes, I've used the wrong command for the download :/ Still, even after updating the MQTT extension, the python 3 version crashes. I've followed Matthew's instructions for installing the extension: mqtt - weewx extension that sends data to an MQTT broker Copyright 2014-2020 Matthew Wall Distributed under the terms of the GNU Public License (GPLv3) Installation instructions: 0) install the MQTT python bindings sudo pip install paho-mqtt When installing the MQTT python bindings, I get the following output: *Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple* *Requirement already satisfied: paho-mqtt in /usr/local/lib/python2.7/dist-packages (1.4.0)* This looks a lot like Python 2.7 -- 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/4ba01f40-c185-4b34-a2e4-3abd6e9bc650%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
it does not appear to be a ZIP. I would reload the file, e.g. with wget https://github.com/matthewwall/weewx-mqtt/archive/master.zip -- 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/70c0415e-3360-408d-be5a-5d17d3c2c420%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Thanks for your support! Tried that already - with not much success after downloading the master.zip *pi@raspberrypi*:*~ $* sudo wee_extension --install master.zip Request to install 'master.zip' Extracting from zip archive master.zip Traceback (most recent call last): File "/usr/share/weewx/wee_extension", line 88, in main() File "/usr/share/weewx/wee_extension", line 80, in main ext.install_extension(options.install) File "/usr/share/weewx/weecfg/extension.py", line 113, in install_extension self.tmpdir, self.logger) File "/usr/share/weewx/weecfg/__init__.py", line 1760, in extract_zip zip_archive = zipfile.ZipFile(filename) File "/usr/lib/python3.7/zipfile.py", line 1222, in __init__ self._RealGetContents() File "/usr/lib/python3.7/zipfile.py", line 1289, in _RealGetContents raise BadZipFile("File is not a zip file") zipfile.BadZipFile: File is not a zip file Am Freitag, 1. Mai 2020 17:03:36 UTC+2 schrieb Tarmo: > > grab it from here > https://github.com/matthewwall/weewx-mqtt/archive/master.zip > > wee_extension supports zip files as well > > On Friday, May 1, 2020 at 5:56:55 PM UTC+3, Manfred Maier wrote: >> >> A very stupid question: >> How do I update the extension? >> >> I don't find the weewx-mqtt.tgz that I need for the installation. >> >> >> >> >> Am Freitag, 1. Mai 2020 16:37:04 UTC+2 schrieb Tarmo: >>> >>> Hi Manfred! >>> >>> try to update mqtt extension https://github.com/matthewwall/weewx-mqtt >>> >>> >>> On Friday, May 1, 2020 at 5:34:11 PM UTC+3, Manfred Maier wrote: Also pulling my issues while updating in a separate thread. I was using version 3.9.2 on a RPi4 (Rasbian 10) with the Belchertown skin installed. I've tried to install the Python 3 version with: curl -s http://weewx.com/apt/weewx-python3.list | sudo tee /etc/apt/sources.list.d/weewx.list sudo apt-get update sudo apt-get install weewx The system crashed with the following lines in the log-file: May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Caught unrecoverable exception: May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: invalid syntax (mqtt.py, line 197) May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Traceback (most recent call last): May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: File "/usr/share/weewx/weewxd", line 148, in main May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: engine = weewx.engine.StdEngine(config_dict) May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: self.loadServices(config_dict) May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: obj = weeutil.weeutil.get_object(svc)(self,config_dict) May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: mod = __import__(module) May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: File "/usr/share/weewx/user/mqtt.py", line 197 May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: except KeyError, e: May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: ^ May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: SyntaxError: invalid syntax May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Exiting. I then installed the Python 2 version. Weewx at least started again. The MQTT is working, too. But the system stopped creating most of JSON files for the skins. The weewx_data.json gets created, but all the files for my belchertown graphs do not get generated. Ideally I would like to switch to the Python 3 version. Any thoughts what the problem of my Python 3 installation is? Manfred. >>> -- 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/2e8b6a82-127a-4fb1-a057-49961c42a98c%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
grab it from here https://github.com/matthewwall/weewx-mqtt/archive/master.zip wee_extension supports zip files as well On Friday, May 1, 2020 at 5:56:55 PM UTC+3, Manfred Maier wrote: > > A very stupid question: > How do I update the extension? > > I don't find the weewx-mqtt.tgz that I need for the installation. > > > > > Am Freitag, 1. Mai 2020 16:37:04 UTC+2 schrieb Tarmo: >> >> Hi Manfred! >> >> try to update mqtt extension https://github.com/matthewwall/weewx-mqtt >> >> >> On Friday, May 1, 2020 at 5:34:11 PM UTC+3, Manfred Maier wrote: >>> >>> Also pulling my issues while updating in a separate thread. >>> >>> I was using version 3.9.2 on a RPi4 (Rasbian 10) with the Belchertown >>> skin installed. >>> >>> I've tried to install the Python 3 version with: >>> >>> curl -s http://weewx.com/apt/weewx-python3.list | sudo tee >>> /etc/apt/sources.list.d/weewx.list >>> >>> sudo apt-get update >>> sudo apt-get install weewx >>> >>> >>> The system crashed with the following lines in the log-file: >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Caught >>> unrecoverable exception: >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> invalid syntax (mqtt.py, line 197) >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> Traceback (most recent call last): >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> File "/usr/share/weewx/weewxd", line 148, in main >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> engine = weewx.engine.StdEngine(config_dict) >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> self.loadServices(config_dict) >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> obj = weeutil.weeutil.get_object(svc)(self,config_dict) >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> mod = __import__(module) >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> File "/usr/share/weewx/user/mqtt.py", line 197 >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> except KeyError, e: >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> ^ >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> SyntaxError: invalid syntax >>> >>> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >>> Exiting. >>> >>> >>> I then installed the Python 2 version. >>> Weewx at least started again. The MQTT is working, too. >>> >>> But the system stopped creating most of JSON files for the skins. >>> The weewx_data.json gets created, but all the files for my belchertown >>> graphs do not get generated. >>> >>> >>> Ideally I would like to switch to the Python 3 version. >>> Any thoughts what the problem of my Python 3 installation is? >>> >>> >>> Manfred. >>> >> -- 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/8e0c417d-2b60-4f20-8593-ab502bd25e9f%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
A very stupid question: How do I update the extension? I don't find the weewx-mqtt.tgz that I need for the installation. Am Freitag, 1. Mai 2020 16:37:04 UTC+2 schrieb Tarmo: > > Hi Manfred! > > try to update mqtt extension https://github.com/matthewwall/weewx-mqtt > > > On Friday, May 1, 2020 at 5:34:11 PM UTC+3, Manfred Maier wrote: >> >> Also pulling my issues while updating in a separate thread. >> >> I was using version 3.9.2 on a RPi4 (Rasbian 10) with the Belchertown >> skin installed. >> >> I've tried to install the Python 3 version with: >> >> curl -s http://weewx.com/apt/weewx-python3.list | sudo tee >> /etc/apt/sources.list.d/weewx.list >> >> sudo apt-get update >> sudo apt-get install weewx >> >> >> The system crashed with the following lines in the log-file: >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Caught >> unrecoverable exception: >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> invalid syntax (mqtt.py, line 197) >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> Traceback (most recent call last): >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> File "/usr/share/weewx/weewxd", line 148, in main >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> engine = weewx.engine.StdEngine(config_dict) >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> self.loadServices(config_dict) >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> obj = weeutil.weeutil.get_object(svc)(self,config_dict) >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> mod = __import__(module) >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> File "/usr/share/weewx/user/mqtt.py", line 197 >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> except KeyError, e: >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> ^ >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> SyntaxError: invalid syntax >> >> May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: >> Exiting. >> >> >> I then installed the Python 2 version. >> Weewx at least started again. The MQTT is working, too. >> >> But the system stopped creating most of JSON files for the skins. >> The weewx_data.json gets created, but all the files for my belchertown >> graphs do not get generated. >> >> >> Ideally I would like to switch to the Python 3 version. >> Any thoughts what the problem of my Python 3 installation is? >> >> >> Manfred. >> > -- 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/ad2da09b-808a-46c0-b0bb-d9dc1c1c9920%40googlegroups.com.
[weewx-user] Re: Rasbian 10 - Update failed
Hi Manfred! try to update mqtt extension https://github.com/matthewwall/weewx-mqtt On Friday, May 1, 2020 at 5:34:11 PM UTC+3, Manfred Maier wrote: > > Also pulling my issues while updating in a separate thread. > > I was using version 3.9.2 on a RPi4 (Rasbian 10) with the Belchertown skin > installed. > > I've tried to install the Python 3 version with: > > curl -s http://weewx.com/apt/weewx-python3.list | sudo tee > /etc/apt/sources.list.d/weewx.list > > sudo apt-get update > sudo apt-get install weewx > > > The system crashed with the following lines in the log-file: > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: Caught > unrecoverable exception: > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > invalid syntax (mqtt.py, line 197) > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > Traceback (most recent call last): > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > File "/usr/share/weewx/weewxd", line 148, in main > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > engine = weewx.engine.StdEngine(config_dict) > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > self.loadServices(config_dict) > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > obj = weeutil.weeutil.get_object(svc)(self,config_dict) > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > mod = __import__(module) > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > File "/usr/share/weewx/user/mqtt.py", line 197 > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > except KeyError, e: > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > ^ > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > SyntaxError: invalid syntax > > May 1 10:57:40 raspberrypi weewx[14513] CRITICAL __main__: > Exiting. > > > I then installed the Python 2 version. > Weewx at least started again. The MQTT is working, too. > > But the system stopped creating most of JSON files for the skins. > The weewx_data.json gets created, but all the files for my belchertown > graphs do not get generated. > > > Ideally I would like to switch to the Python 3 version. > Any thoughts what the problem of my Python 3 installation is? > > > Manfred. > -- 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/1f60ca4e-6e41-4f46-b383-5205333bba27%40googlegroups.com.