Re: [bikeshed] Bikeshed is now on Python 3; update instructions enclosed
"Michael[tm] Smith" <[email protected]> Fri, 20 Mar 2020 11:49:53 +0900
| Newsgroups | gmane.org.w3c.specifications |
|---|---|
| Message-ID | <[email protected]> |
--TKYYegg/GYAC5JIZ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable "Tab Atkins Jr." <[email protected]>, 2020-03-19 17:04 -0700: > Archived-At: <https://www.w3.org/mid/CAAWBYDDSKHAnOL3q8_n6Bdu24P_DNNayDan= [email protected]> > ... > 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 =E2=80=94 thanks much for doing this Specifically, it works in my macOS environment with homebrew-installed Pyth= on3. 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 =E2=80=94 = 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.url= open() 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=E2=80=99t consider it a bug and the solution = they suggest is to use the 'request' library rather than urllib =E2=80=94 https://openradar.appspot.com/7111585 https://stackoverflow.com/a/60334957/441757 https://github.com/HandBrake/HandBrake/issues/2216#issuecomment-527114519 =2E..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=3Dcertifi.where(= )) Not sure if that=E2=80=99d be a useful solution in practice, if it=E2=80=99= d also require Bikeshed users to pip install certifi =E2=80=94 because I think they=E2=80= =99d need to have root perms to do that. =E2=80=93Mike --=20 Michael[tm] Smith https://people.w3.org/mike --TKYYegg/GYAC5JIZ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEE1IdYVkFeY5ZNh0RRh9F0d7w6S5UFAl50L1EACgkQh9F0d7w6 S5Va6A/9FpWzVGjmI3VIgCh9JJnBKUB+rOLEcwDsxSar4yDvAoUEka058ta43rDq WoWKYRmbNmMpgFrizaXQPUnIzL2/G97AKfr+7e4HQcel49UItbSfOH40p1g2mvG4 hbE5auxQAzltmX3VgBrIdLM68NOL6aB4AWrGLBKvvol4mth+cTAtPDanTBvqxDd5 MSVDGQ2nwmdRLTUbR7og3cKQml4qD3FMlaTP/zmBdnO6yVwDOlXeItHr5GNJzR7K NYswVaSHNve6laET+SwAbXYc34SnzXSZ694+/z07t8CXqe72B/rDec0CIIATh9J4 P6Aq3YUgNYHBRqF5+JLgFTKaWNzAIoXsRmaPE0f9NOKJJdpFkHxr6pPP7M39H2XF F7p7Y9QqxWm51CT/MwPr9KAgP+8LtOTSdJ1JsNAo3SiKuFeN/F1qUXVLpMPrf0lE iuQhTquBOnEk+bpqipE4eCxzWtoWywY4ew8/rbJFKvOWNJivNZbpcnlpNA5cpm16 sDDOFBS23iaoTlgb4mazZzH1kyygF+YgZaYAe3eFfiGeSOkbzKA33Pl5VSYl6Hva bGvPKs4BBSR2cV0953PyZMnJ6S3WTrMiqfsL5aEyLJ82NlpcyIM+AZVqOT0brDba ZOMaAwiQa1rQe+TYcfZwfW/t2EiPY0D7qBDoJX2rDAfQRjeL2bI= =CDdQ -----END PGP SIGNATURE----- --TKYYegg/GYAC5JIZ--