Ubuntu 16 installation issues

87 views
Skip to first unread message

Francisco Puig

unread,
May 27, 2020, 3:28:25 PM5/27/20
to weewx-user
Hi all, 

I'm trying to migrate my WeeWX RPi server to a Ubuntu 16 server and I'm getting these errors. I have no idea where to start troubleshooting. 

Traceback (most recent call last):

  File "/usr/share/weewx/weewxd", line 261, in <module>

    main()

  File "/usr/share/weewx/weewxd", line 154, in main

    engine.run()

  File "/usr/share/weewx/weewx/engine.py", line 188, in run

    for packet in self.console.genLoopPackets():

  File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 131, in genLoopPackets

    data = Station.parse_readings(readings)

  File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 298, in parse_readings

    data['windSpeed'] = Station._decode(buf[0:4], 0.1 * MILE_PER_KM)  # mph

  File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 326, in _decode

    v = int(s, 16)

TypeError: int() can't convert non-string with explicit base



Any help will be appreciate.

Thanks,

Frank.

Francisco Puig

unread,
May 27, 2020, 3:30:40 PM5/27/20
to weewx-user
I used the apt-get installation method.

Tom Keffer

unread,
May 27, 2020, 5:03:53 PM5/27/20
to weewx-user
Hello, Francisco

1. Are you using Python 2 or Python 3?

2. Can you replace your copy of /usr/share/weewx/weewx/drivers/ultimeter.py with the attached? It will tell us what is causing the TypeError.

-tk


--
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/62188d7d-d03f-45e8-996a-b74f0a2c436c%40googlegroups.com.
ultimeter.py

Francisco Puig

unread,
May 27, 2020, 7:39:51 PM5/27/20
to weewx-user
Hi Tom,

I'm using Python 2, that I think its the correct for Ubuntu 16?

I replaced the ultimeter.py and below are the log entries;

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/engine.py", line 188, in run

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****      for packet in self.console.genLoopPackets():

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 131, in genLoopPackets

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****      data = Station.parse_readings(readings)

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 298, in parse_readings

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****      data['windSpeed'] = Station._decode(buf[0:4], 0.1 * MILE_PER_KM)  # mph

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****    File "/usr/share/weewx/weewx/drivers/ultimeter.py", line 327, in _decode

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****      v = int(s, 16)

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****  TypeError: int() can't convert non-string with explicit base

May 27 19:38:02 alpharetta weewx[23054] CRITICAL __main__:     ****  Exiting.


Thanks for you help.


On Wednesday, May 27, 2020 at 3:28:25 PM UTC-4, Francisco Puig wrote:

Tom Keffer

unread,
May 27, 2020, 7:48:13 PM5/27/20
to weewx-user
Thanks, but I need to see farther up the log. You posted just the very end of the error.

--
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.

Tom Keffer

unread,
May 28, 2020, 8:24:10 AM5/28/20
to weewx-user
I believe I've found the problem. Try this version.


ultimeter.py
Message has been deleted

Francisco Puig

unread,
May 28, 2020, 9:18:49 PM5/28/20
to weewx-user
Hi Tom,

Yes, the latest driver file fixed the errors and I'm up and running! 

Thanks for your help / work. 

On Wednesday, May 27, 2020 at 3:28:25 PM UTC-4, Francisco Puig wrote:

Tom Keffer

unread,
May 28, 2020, 9:27:22 PM5/28/20
to weewx-user
Francisco, could you do me a favor and test this version. It is slightly more efficient.

-tk

--
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.
ultimeter.py

Francisco Puig

unread,
May 28, 2020, 9:51:20 PM5/28/20
to weewx-user
Replaced file / restarted service and its up and running! Should I look for something in particular to test or just code optimization?
To unsubscribe from this group and stop receiving emails from it, send an email to weewx...@googlegroups.com.

Tom Keffer

unread,
May 28, 2020, 9:54:21 PM5/28/20
to weewx-user
Just wanted to make sure it still works! I don't have access to an Ultimeter.

If you've got the configuration set up, a test under Python 3 would also be welcome.

-tk

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/88d31299-1472-4e74-8a7d-77b0e9b3965e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages