Bug 178925

Summary: autoinstall can't download from http://pypi.python.org
Product: WebKit Reporter: Fujii Hironori <Hironori.Fujii>
Component: Tools / TestsAssignee: Fujii Hironori <Hironori.Fujii>
Status: RESOLVED FIXED    
Severity: Normal CC: bburg, buildbot, cgarcia, commit-queue, glenn, joepeck, lforschler, rniwa, ryanhaddad, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Fujii Hironori 2017-10-27 00:39:19 PDT
autoinstall can't download from http://pypi.python.org

> $ ./Tools/Scripts/check-webkit-style
> No handlers could be found for logger "webkitpy.common.system.autoinstall"
> Traceback (most recent call last):
>   File "./Tools/Scripts/check-webkit-style", line 44, in <module>
>     from webkitpy.style.main import CheckWebKitStyle
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/style/main.py", line 27, in <module>
>     import webkitpy.style.checker as checker
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/style/checker.py", line 53, in <module>
>     from checkers.python import PythonChecker
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/style/checkers/python.py", line 30, in <module>
>     from webkitpy.thirdparty.autoinstalled import pep8
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 92, in find_module
>     self._install_pep8()
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 120, in _install_pep8
>     "pep8-0.5.0/pep8.py")
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/thirdparty/__init__.py", line 214, in _install
>     installer.install(url=url, url_subpath=url_subpath, target_name=target_name)
>   File "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/common/system/autoinstall.py", line 517, in install
>     raise Exception(message)
> Exception: Error auto-installing the pep8.py package to:
>  "/Users/fujii/work/webkit/Tools/Scripts/webkitpy/thirdparty/autoinstalled/pep8.py"
>  --> Inner message: Could not download Python modules from URL "None".
>  Make sure you are connected to the internet.
>  You must be connected to the internet when downloading needed modules for the first time.
>  --> Inner message: <urlopen error [Errno 8] nodename nor servname provided, or not known>
Comment 1 Fujii Hironori 2017-10-27 00:40:38 PDT
The web server (pypi.python.org) rejects non secure http.

> $ curl --dump-header /dev/stdout http://pypi.python.org/packages/source/p/pep8/pep8-0.5.0.tar.gz
> HTTP/1.1 403 Forbidden
> Server: Varnish
> Retry-After: 0
> Content-Type: text/plain; charset=UTF-8
> Content-Length: 16
> Accept-Ranges: bytes
> Date: Fri, 27 Oct 2017 07:33:01 GMT
> X-Served-By: cache-nrt6146-NRT
> X-Cache: MISS
> X-Cache-Hits: 0
> X-Frame-Options: deny
> X-XSS-Protection: 1; mode=block
> X-Content-Type-Options: nosniff
> X-Permitted-Cross-Domain-Policies: none
> Connection: keep-alive
> 
> SSL is required.
Comment 2 Fujii Hironori 2017-10-27 00:52:13 PDT
Created attachment 325132 [details]
Patch
Comment 3 Ryan Haddad 2017-10-27 09:38:40 PDT
Comment on attachment 325132 [details]
Patch

Clearing flags on attachment: 325132

Committed r224114: <https://trac.webkit.org/changeset/224114>
Comment 4 Ryan Haddad 2017-10-27 09:38:42 PDT
All reviewed patches have been landed.  Closing bug.
Comment 5 Radar WebKit Bug Importer 2017-11-15 12:43:35 PST
<rdar://problem/35568024>