--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e95133ce-4a77-43db-930f-facf0e73e5e8%40googlegroups.com.
Seems that there should be a way to determine this as the change to Python 3 isn't just a WeeWX thing.As for whether or not to run the beta, it's beta 8 and what I use seems to be ok as far as reports go. Is it not what beta are for after all?Anyway, not what I asked, so let's see what else comes.
On Sat, Jan 18, 2020, 11:14 PM Andrew Milner <andrew....@gmail.com> wrote:
I do not think v4 has officially been released yet - so I would recommend installing the new hardware with 3.9 and do the upgrade when v4 is finally released. That way you do not change the whole shebang - hardware and software - in one giant leap. Regarding 'how do you know' - the answer is that you don't!! The original writer may update wike or download with additional information, or another user may post a comment, but there is no automatic verification process of all extensions written by other people.--
On Sunday, 19 January 2020 04:46:16 UTC+2, G Hammer wrote:I'd like to run v4 when I upgrade hardware this week.Seems to be doing fine for the devices and skin I use.With one exception, a RainMachine extension.There is one that was written by someone at RainMachine, but I think he has moved on.I've asked there and raised an issue on the github page for the extension with no response.How, besides installing v4 and the extension, can I determine if it will run under v4?The extension is located at https://github.com/sprinkler/rainmachine-weewx and referenced at https://github.com/weewx/weewx/wiki/RainMachineWith this functionality confirmed, I can make the change, without it I'll need to stay with v3
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
On Jan 18, 2020, at 8:39 PM, G Hammer <gary....@gmail.com> wrote:
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CALBRR-09JohVQPwKLeyHfVBW6DV1KdZOP5QhLzTm3ms01teygA%40mail.gmail.com.
I had a quick look. It imports Queue (with a capital ‘Q’). That will fail in python 3.As such, this has not been ported.As for an answer to the general question, there are tools available to convert code (2to3, modernize). It usually requires more work than that, but you could run one of them on the code to see what it changes. That would give you a good idea of whether it is already python3 ready.Actually, a better way is just to read up on the subject. When you do, it will be pretty easy to spot code that will run in 2 and 3.On Jan 18, 2020, at 8:39 PM, G Hammer <gary....@gmail.com> wrote:
Seems that there should be a way to determine this as the change to Python 3 isn't just a WeeWX thing.As for whether or not to run the beta, it's beta 8 and what I use seems to be ok as far as reports go. Is it not what beta are for after all?Anyway, not what I asked, so let's see what else comes.
On Sat, Jan 18, 2020, 11:14 PM Andrew Milner <andrew....@gmail.com> wrote:
I do not think v4 has officially been released yet - so I would recommend installing the new hardware with 3.9 and do the upgrade when v4 is finally released. That way you do not change the whole shebang - hardware and software - in one giant leap. Regarding 'how do you know' - the answer is that you don't!! The original writer may update wike or download with additional information, or another user may post a comment, but there is no automatic verification process of all extensions written by other people.--
On Sunday, 19 January 2020 04:46:16 UTC+2, G Hammer wrote:I'd like to run v4 when I upgrade hardware this week.Seems to be doing fine for the devices and skin I use.With one exception, a RainMachine extension.There is one that was written by someone at RainMachine, but I think he has moved on.I've asked there and raised an issue on the github page for the extension with no response.How, besides installing v4 and the extension, can I determine if it will run under v4?The extension is located at https://github.com/sprinkler/rainmachine-weewx and referenced at https://github.com/weewx/weewx/wiki/RainMachineWith this functionality confirmed, I can make the change, without it I'll need to stay with v3
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e95133ce-4a77-43db-930f-facf0e73e5e8%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...@googlegroups.com.
I had a quick look. It imports Queue (with a capital ‘Q’). That will fail in python 3.As such, this has not been ported.As for an answer to the general question, there are tools available to convert code (2to3, modernize). It usually requires more work than that, but you could run one of them on the code to see what it changes. That would give you a good idea of whether it is already python3 ready.Actually, a better way is just to read up on the subject. When you do, it will be pretty easy to spot code that will run in 2 and 3.On Jan 18, 2020, at 8:39 PM, G Hammer <gary....@gmail.com> wrote:
Seems that there should be a way to determine this as the change to Python 3 isn't just a WeeWX thing.As for whether or not to run the beta, it's beta 8 and what I use seems to be ok as far as reports go. Is it not what beta are for after all?Anyway, not what I asked, so let's see what else comes.
On Sat, Jan 18, 2020, 11:14 PM Andrew Milner <andrew....@gmail.com> wrote:
I do not think v4 has officially been released yet - so I would recommend installing the new hardware with 3.9 and do the upgrade when v4 is finally released. That way you do not change the whole shebang - hardware and software - in one giant leap. Regarding 'how do you know' - the answer is that you don't!! The original writer may update wike or download with additional information, or another user may post a comment, but there is no automatic verification process of all extensions written by other people.--
On Sunday, 19 January 2020 04:46:16 UTC+2, G Hammer wrote:I'd like to run v4 when I upgrade hardware this week.Seems to be doing fine for the devices and skin I use.With one exception, a RainMachine extension.There is one that was written by someone at RainMachine, but I think he has moved on.I've asked there and raised an issue on the github page for the extension with no response.How, besides installing v4 and the extension, can I determine if it will run under v4?The extension is located at https://github.com/sprinkler/rainmachine-weewx and referenced at https://github.com/weewx/weewx/wiki/RainMachineWith this functionality confirmed, I can make the change, without it I'll need to stay with v3
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/e95133ce-4a77-43db-930f-facf0e73e5e8%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...@googlegroups.com.
Thanks for the tips, I'm going to see if I am able to get it working under python 3 as that seems to be the future. Good to know that it may run as is with WeeWX 4.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c317f3c6-6472-4591-a8e2-59a40c3f657e%40googlegroups.com.
On Sun, Jan 19, 2020 at 2:04 PM G Hammer <gary....@gmail.com> wrote:
When I install the new system Tuesday, I plan to only install python 3.--Hopefully there won't be many changes that need done manually, but I'll see what transpires.Thanks!
On Sunday, January 19, 2020 at 2:23:19 PM UTC-5, vince wrote:On Sunday, January 19, 2020 at 8:14:00 AM UTC-8, G Hammer wrote:Thanks for the tips, I'm going to see if I am able to get it working under python 3 as that seems to be the future. Good to know that it may run as is with WeeWX 4.Just run it through "2to3 -w" to have it make the most usual changes. That should get you close.Be sure if you're using python3 to install the python3 versions of all the modules required for weewx.
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...@googlegroups.com.
File "/home/weewx/bin/user/rainmachine.py", line 67 return None, None ^TabError: inconsistent use of tabs and spaces in indentationI have installed 4.0.b12 and running only python 3.I tried 2to3 on the rainmachine extension and while it had no errors in completing, the resulting code is not proper.When I run weewx directly, it fails when loading rainmachine:File "/home/weewx/bin/user/rainmachine.py", line 67return None, None^TabError: inconsistent use of tabs and spaces in indentation
As I'm not a programmer, I have no idea of what use of tabs and spaces would mean.
raceback (most recent call last): File "./bin/weewxd", line 261, in <module> main() File "./bin/weewxd", line 148, in main engine = weewx.engine.StdEngine(config_dict) File "/home/weewx/bin/weewx/engine.py", line 75, in __init__ self.loadServices(config_dict) File "/home/weewx/bin/weewx/engine.py", line 136, in loadServices obj = weeutil.weeutil.get_object(svc)(self,config_dict) File "/home/weewx/bin/weeutil/weeutil.py", line 1093, in get_object mod = __import__(module) File "/home/weewx/bin/user/rainmachine.py", line 82, in <module> class RainMachine(weewx.restx.StdRESTful): File "/home/weewx/bin/user/rainmachine.py", line 87, in RainMachine site_dict = weewx.restx.get_site_dict(config_dict, 'RainMachine', 'token', 'ip')NameError: name 'config_dict' is not defined
Hi,You need to post the actual code that produced this error if you want additional help.Thanks
Hi,Need to see the actual file creating the error since you have been changing it based on your previous posts.
Thanks
On Saturday, January 18, 2020 at 7:46:16 PM UTC-7, G Hammer wrote:
Hi,So your edits for the tabs messed up the python indentation. I would go back to a previous version and make sure that for each tab you find that you put in the correct number of spaces so the code still lines up after you replace the tabs as it did before. This is why I need to see the actual file.
Hi,So your edits for the tabs messed up the python indentation. I would go back to a previous version and make sure that for each tab you find that you put in the correct number of spaces so the code still lines up after you replace the tabs as it did before. This is why I need to see the actual file.
Thanks
On Saturday, January 18, 2020 at 7:46:16 PM UTC-7, G Hammer wrote:
RefactoringTool: There was 1 error:RefactoringTool: Can't parse rainmachine.py: ParseError: bad input: type=1, value='return', context=(' ', (67, 4))
No, it did not. I had already ran it through and found many errors.Going to start from scratch, first removing all tabs in favor of 4 spaces.Then run it through 2to3, then see what errors out.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/2fc02509-9f9f-4052-a1cd-91694404f6b2%40googlegroups.com.
Sorry to tell you but what you posted has indentation problems in many places. I would spend some time reading the link I sent you about python indentation and try it again.
Hi,
Sorry to tell you but what you posted has indentation problems in many places. I would spend some time reading the link I sent you about python indentation and try it again.
Thanks
On Saturday, January 18, 2020 at 7:46:16 PM UTC-7, G Hammer wrote:I'd like to run v4 when I upgrade hardware this week.Seems to be doing fine for the devices and skin I use.With one exception, a RainMachine extension.There is one that was written by someone at RainMachine, but I think he has moved on.I've asked there and raised an issue on the github page for the extension with no response.How, besides installing v4 and the extension, can I determine if it will run under v4?The extension is located at https://github.com/sprinkler/rainmachine-weewx and referenced at https://github.com/weewx/weewx/wiki/RainMachineWith this functionality confirmed, I can make the change, without it I'll need to stay with v3
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/c5f85afb-dec6-4f6f-9aed-8c04e53a4dab%40googlegroups.com.
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/wlufg8AdT0E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/7fc0a424-79d3-4c43-b01e-65d83d858a4b%40googlegroups.com.