OK, one more try while I’m waiting for the URL from you. I forgot to prefix
request with six.moves.urllib.
user_agent = {'User-Agent': 'Mozilla/5.0'}
requester = six.moves.urllib.request.Request(u, headers=user_agent)
response = six.moves.urllib.request.urlopen(requester)
return response.read().decode('utf-8')
> On Apr 9, 2020, at 1:36 PM, Phil Owers <[email protected]> wrote:
>
>
> John
> That was quick
> It failed in the syslog NameError : name 'request' is not defined
> I will put log.info(u) before the first line if that helps
> and thanks for helping Phil
>
>> On Wednesday, April 8, 2020 at 3:11:31 PM UTC+1, Phil Owers wrote:
>> Just downloaded the forecast extension which was 3.3.2.which I think is the
>> latest on to a python 3 only machine (weewx 4.0.0b18) and it fails
>> forecast.py Line 567 except OSError , e; with an underscore under the ,
>> Just wondered if anybody else has had this.
>> Cheers Phil
>
> --
> 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/91a060e1-ba96-40fd-99ea-a03a84b1254f%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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/weewx-user/9FAD71CC-865A-4D25-809F-09949C6D6E80%40johnkline.com.