New issue
Advanced search Search tips

Issue 868864 link

Starred by 1 user

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 3
Type: Bug

Blocking:
issue 879987



Sign in to add a comment

python shipped with depot_tools cannot install additional packages on Windows

Project Member Reported by sdefresne@chromium.org, Jul 30

Issue description

Trying to use \src\depot_tools\my_activity.py on Windows fails because python-dateutil package is not available (ERROR:root:python-deteutil package required).

Trying to install the package using pip provided with depot_tools version of python fails because of SSL errors.

C:\src\chromium\src>python \src\depot_tools\my_activity.py
ERROR:root:python-dateutil package required
C:\src\chromium\src>where python
C:\src\depot_tools\python.bat
C:\python_27_amd64\files\python.exe

C:\src\chromium\src>\src\depot_tools\win_tools-2_7_6_bin\python\bin\Scripts\pip.exe install python-dateutil
Downloading/unpacking python-dateutil
  Could not fetch URL https://pypi.python.org/simple/python-dateutil/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:507: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>
  Will skip URL https://pypi.python.org/simple/python-dateutil/ when looking for download links for python-dateutil
  Could not fetch URL https://pypi.python.org/simple/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:507: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>
  Will skip URL https://pypi.python.org/simple/ when looking for download links for python-dateutil
  Cannot fetch index base URL https://pypi.python.org/simple/
  Could not fetch URL https://pypi.python.org/simple/python-dateutil/: There was a problem confirming the ssl certificate: <urlopen error [Errno 1] _ssl.c:507: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version>
  Will skip URL https://pypi.python.org/simple/python-dateutil/ when looking for download links for python-dateutil
  Could not find any downloads that satisfy the requirement python-dateutil
Cleaning up...
No distributions at all found for python-dateutil
Storing complete log in C:\Users\xxxxxxxx\pip\pip.log

C:\src\chromium\src>python -c "import ssl; print ssl.OPENSSL_VERSION"
OpenSSL 0.9.8y 5 Feb 2013

 
Cc: jeremya@chromium.org
I'm also seeing this in Electron's build of Chromium on Windows, while retrieving the URL https://github.com/electron/electron-frameworks/releases/download/v1.3.0/directxsdk-x64.zip

Could be related to the recent vpython roll? https://chromium.googlesource.com/chromium/tools/depot_tools.git/+/19cca6a3bdcdee5825912f8102c2818885f777dc
Blocking: 879987
Components: -Tools Infra>SDK
Components: Infra>Platform>CIPD
Did it work before the roll?

I think the Python version needs to be updated on CIPD.
https://github.com/pypa/get-pip/issues/26
Cc: iannucci@chromium.org
Components: -Infra>Platform>CIPD
We already have newer CIPD packages for python: https://chrome-infra-packages.appspot.com/p/infra/python/cpython/windows-amd64/+/1ba7d485930b05eb07f6bc7724447d6a7c22a6b6 

I think what's missing is making top-level depot_tools .vpython file. Till then, perhaps change which python gets installed into win bootstrap.
Cc: iannu...@google.com
Cc: -iannucci@chromium.org
Status: Available (was: Untriaged)

Sign in to add a comment