Yes. It looks like this driver has not been ported to Python 3. You would
have to use Python 2.

On Sat, Jun 20, 2020 at 10:49 AM Maarten van der Hoeven <[email protected]>
wrote:

> Hi,
>
> I tried to connect to weatherlink.com, and used the wlink driver (
> https://github.com/weewx/weewx/wiki/wlink). I am running the latest weewx
> 4.1.1, Python3.
>
> I got this error. Does this mean the driver is not ready for Python3? I
> did some digging, httplib is not available, and should be replaced by
> http.client.
>
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****      engine
> = weewx.engine.StdEngine(config_dict)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 69, in __init__
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****
> self.setupStation(config_dict)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File
> "/usr/share/weewx/weewx/engine.py", line 92, in setupStation
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****
> __import__(driver)
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****    File
> "/usr/share/weewx/user/wlink.py", line 181
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****
> httplib.BadStatusLine, httplib.IncompleteRead), e:
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:
> ****                                                    ^
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****
> SyntaxError: invalid syntax
> Jun 20 19:45:36 weewx weewx[2897] CRITICAL __main__:     ****  Exiting.
>
> --
> 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/d6c7448f-7389-4f78-8fa8-0cd7a2a32004o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/d6c7448f-7389-4f78-8fa8-0cd7a2a32004o%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/CAPq0zECoTppHbO_qB4qj9pFXkv9%3DF3KCVwVYfs77_wGN_--COA%40mail.gmail.com.

Reply via email to