W3C home > Mailing lists > Public > spec-prod@w3.org > January to March 2020

Re: [bikeshed] Bikeshed is now on Python 3; update instructions enclosed

From: Michael[tm] Smith <mike@w3.org>
Date: Fri, 20 Mar 2020 11:49:53 +0900
To: "Tab Atkins Jr." <jackalmage@gmail.com>
Cc: "spec-prod@w3.org Prod" <spec-prod@w3.org>
Message-ID: <20200320024953.GG638092@sideshowbarker.net>
"Tab Atkins Jr." <jackalmage@gmail.com>, 2020-03-19 17:04 -0700:
> Archived-At: <https://www.w3.org/mid/CAAWBYDDSKHAnOL3q8_n6Bdu24P_DNNayDan92m13nUskP4pp2w@mail.gmail>
> ...
> Let me know if this works for people (it did for me, but I can never
> be sure it's not due to some fiddling I did on my dev machine), or if
> you have any issues!

It works as expected for me — thanks much for doing this

Specifically, it works in my macOS environment with homebrew-installed Python3.

When I test with XCode-installed Python3, I run into what seems to be a
general known issue with trying to run any Python code with that — which is
apparently due to the XCode installer not installing any root SSL certs; so
with that XCode Python3, any Python code that has, e.g., urllib.request.urlopen()
calls ends up running into this error:

  SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get
  local issuer certificate (_ssl.c:1056 cafile

But it seems that Apple doesn’t consider it a bug and the solution they
suggest is to use the 'request' library rather than urllib —


...or else to change the code to import certifi and change all the
urllib.request.urlopen() calls to include a cafile arg, like this:

  urllib.request.urlopen(ghPrefix + "manifest.txt", cafile=certifi.where())

Not sure if that’d be a useful solution in practice, if it’d also require
Bikeshed users to pip install certifi — because I think they’d need to have
root perms to do that.


Michael[tm] Smith https://people.w3.org/mike

Received on Friday, 20 March 2020 02:50:09 UTC

This archive was generated by hypermail 2.4.0 : Friday, 20 March 2020 02:50:10 UTC