Your version of wcloud has not been ported to Python 3. The current version has. Just upgrade it.
On Fri, Jun 5, 2020 at 12:40 PM WindnFog <[email protected]> wrote: > Thanks for the pointers, etc. Matthew. I did what you suggested with the > dependencies, etc., and all went well (as in no errors upgrading > reported.) Also, as you said, I changed /etc/weewx/default from: > > WEEWX_PYTHON=python2 > WEEWX_BINDIR=/usr/share/weewx > WEEWX_BIN=/usr/bin/weewxd > WEEWX_CFG=/etc/weewx/weewx.conf > > --- to -- > > WEEWX_PYTHON=python3 > WEEWX_BINDIR=/usr/share/weewx > WEEWX_BIN=/usr/bin/weewxd > WEEWX_CFG=/etc/weewx/weewx.conf > > However, starting it with: > > weewxd /etc/weewx/weewx.conf > > Gives the following error: > > Traceback (most recent call last): > File "/usr/share/weewx/weewxd", line 261, in <module> > main() > File "/usr/share/weewx/weewxd", line 148, in main > engine = weewx.engine.StdEngine(config_dict) > File "/usr/share/weewx/weewx/engine.py", line 75, in __init__ > self.loadServices(config_dict) > File "/usr/share/weewx/weewx/engine.py", line 138, in loadServices > obj = weeutil.weeutil.get_object(svc)(self,config_dict) > File "/usr/share/weewx/weeutil/weeutil.py", line 1093, in get_object > mod = __import__(module) > File "/usr/share/weewx/user/wcloud.py", line 134 > except KeyError, e: > ^ > SyntaxError: invalid syntax > > I *think* I am missing something subtle, but I can't figure it out. Any > further suggestions? I went with your post instead of Tom's for now > regarding starting it because I didn't want to introduce yet another > variable. Either way, does that error tell you anything? I didn't touch > my config files or anything else. I can post them if you think they'd be > useful. Probably unrelated, I'm using your sftp extension. Everything > works fine with Python 2.7. > > I put it back to weewx 4.1.1 using python2 from my SD backup. All works > fine, except that I'm no farther ahead . . . still using python 2.7. > > Paul VE1DX > > https://www.ve1dx.net > > > On Thursday, June 4, 2020 at 5:07:11 PM UTC-3, mwall wrote: >> >> On Thursday, June 4, 2020 at 3:28:04 PM UTC-4, WindnFog wrote: >>> >>> That worked, Neville: >>> >>> python --version >>> Python 3.7.3 >>> >>> However, weewx still grabs python 2.7 . . . perhaps it's a bit too early >>> (new Raspberry Pi O/S and a new weewx version 4.1.1 for someone at my level >>> of expertise to monkey around with this yet. It's working, and while I >>> have a "just made" backup on a separate SD card, there seem to be a lot of >>> threads discussing this. I don't run anything but weewx on the Pi (i.e. no >>> other python scripts), but experience has taught me not to change too many >>> things at the same time. I suspect this is more related to the O/S that's >>> only a week or so old as opposed to weewx. 2.7 seems to be working OK. I >>> don't understand why weewx is not picking up 3.7.3, but there's no rush. >>>> >>>> <https://www.ve1dx.net> >>>>>> >>>>> >> if you install weewx using setup.py, then the python will be whatever >> python you used when you did 'xxx setup.py install' >> >> if you install weewx using apt/yum/zypper, then the python will default >> to whatever python is specified in the package you used. for example, the >> python3-weewx deb package uses python3. however, for these installations >> you can easily change the python by modifying /etc/default/weewx. >> >> if you do that, beware that you might not have the correct dependencies. >> if that is the case, then just manually install the dependencies. >> >> this is independent of whatever mechanism the operating system might have >> for specifying which python is 'default' >> >> so in your case, assuming that you installed the python-weewx package >> using apt, you must manually install the python3 dependencies (you listed >> the apt commands for that earlier in this thread), then modify the python >> entry in /etc/default/weewx >> >> m >> > -- > 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/678b895a-5097-4e86-be6b-98af8dbbe003o%40googlegroups.com > <https://groups.google.com/d/msgid/weewx-user/678b895a-5097-4e86-be6b-98af8dbbe003o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- 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/CAPq0zEB%3Dry_QnWsESvm_8NeBE2jRisVkfqVeD30jwQoqHWp9VQ%40mail.gmail.com.
