rmyro driver

60 views
Skip to first unread message

Kevin Schuchmann

unread,
Jun 25, 2023, 6:29:58 PM6/25/23
to weewx-user
Hi,
  New to weewx and trying to get 2 stations running, followed the multi station instructions and got the first station running, a rainwise unit. The second unit I'm using the rmyro.py driver  and I'm having some issues... I'm using a 26800 translator reconfigured to mimic output like a response one unit but I'm not even getting that far.. 
when starting the first time I got
weewx-rm_young[121466] CRITICAL __main__:     ****  Missing weewx-m_young[121466] CRITICAL __main__:     ****  Missing parentheses in call to 'print'. Did you mean print(...)? (rmyro.py, line 261) 

so I added parentheses to the print lines and got past that but now it errors out at

Caught unrecoverable exception:
weewx-rm_young[121534] CRITICAL __main__:     ****  multiple exception types must be parenthesized (rmyro.py, line 331)
weewx-rm_young[121534] CRITICAL __main__:     ****  Traceback (most recent call last):
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****    File "/usr/share/weewx/weewxd", line 148, in main
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****      engine = weewx.engine.StdEngine(config_dict)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 81, in __init__
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****      self.setupStation(config_dict)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 108, in setupStation
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****      __import__(driver)
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/drivers/rmyro.py", line 331
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****      except IOError, e:
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****             ^^^^^^^^^^
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****  SyntaxError: multiple exception types must be parenthesized
python3[121534]: weewx-rm_young[121534] CRITICAL __main__:     ****  Exiting.

I am not a programmer and I am afraid I can't wing this one... the owner of the driver on github has archived it to read -only so I cant open an issue, anyone out there that could fix the code in the driver?    Thanks Kevin                                                                                   

Tom Keffer

unread,
Jun 25, 2023, 6:43:23 PM6/25/23
to weewx...@googlegroups.com
It appears that the driver has not been ported to Python 3. You will either have to run it using Python 2.7, or do the port.

--
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/a452ed8f-6457-4c61-8c19-3dc43d9ddfcan%40googlegroups.com.

Kevin Schuchmann

unread,
Jun 25, 2023, 9:02:50 PM6/25/23
to weewx-user
Tom,
 It seems python2.7 is not available as a package for debian bookworm and getting everything together to make my own is not desirable , best practice and long term fix is to get it ported.  Pylint has a fit  looking at the code so it seems my best bet will be to continue looking for someone that can port it... Thanks Kevin

Kevin Schuchmann

unread,
Jun 25, 2023, 11:10:17 PM6/25/23
to weewx-user
As a final note for maybe someone else in the same situation, in the Debian packages is a 2to3 python converter, and it seems to work just fine as the errors are gone, data is now being received and html webpage created.  Kevin
Reply all
Reply to author
Forward
0 new messages