From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christopher Allan Webber Subject: bug#22876: Python can't use https with recent grafts Date: Tue, 01 Mar 2016 15:59:24 -0800 Message-ID: <87povdsqar.fsf@dustycloud.org> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47684) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauCy-0006e2-ME for bug-guix@gnu.org; Tue, 01 Mar 2016 19:00:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aauCx-0004hP-Bo for bug-guix@gnu.org; Tue, 01 Mar 2016 19:00:04 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:59664) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauCx-0004hL-8U for bug-guix@gnu.org; Tue, 01 Mar 2016 19:00:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1aauCx-0004Jg-0A for bug-guix@gnu.org; Tue, 01 Mar 2016 19:00:03 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47589) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauCO-0006Yn-Ku for bug-guix@gnu.org; Tue, 01 Mar 2016 18:59:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aauCN-0004b1-Ds for bug-guix@gnu.org; Tue, 01 Mar 2016 18:59:28 -0500 Received: from dustycloud.org ([2600:3c02::f03c:91ff:feae:cb51]:39710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aauCN-0004av-6i for bug-guix@gnu.org; Tue, 01 Mar 2016 18:59:27 -0500 Received: from oolong (localhost [127.0.0.1]) by dustycloud.org (Postfix) with ESMTPS id 1A929266DA for ; Tue, 1 Mar 2016 18:59:25 -0500 (EST) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org To: 22876@debbugs.gnu.org Most of Guix seems to be working just fine with the grafts support and grafting of openssl. However, unlike most grafts that will be done probably, this one removes a feature, and that seems to be creating problems in Python land. >>> from urllib.request import HTTPSHandler Traceback (most recent call last): File "", line 1, in ImportError: cannot import name 'HTTPSHandler' Notably, virtualenv no longer works: $ guix environment --ad-hoc python-virtualenv substitute: updating list of substitutes from 'http://hydra.gnu.org'... 100.0% The following derivations will be built: /gnu/store/mcxrh4ba9pf4855kcbdnz654r0xxf86b-profile.drv /gnu/store/ii3ykjkidhz88ycx4p3gi2c7bhhn1vqz-ca-certificate-bundle.drv /gnu/store/h6fzjn70ki8vk3sxd0863vqjwkds1723-info-dir.drv $ virtualenv /tmp/try-virtualenv Using base prefix '/gnu/store/1spkp48cbbzg6ic5qkv3qpm3mvsgwkys-python-3.4.3' New python executable in /tmp/try-virtualenv/bin/python Installing setuptools, pip, wheel... Complete output from command /tmp/try-virtualenv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel: Traceback (most recent call last): File "", line 1, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/__init__.py", line 15, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/vcs/subversion.py", line 9, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/index.py", line 30, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/wheel.py", line 35, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/scripts.py", line 14, in File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv_support/pip-7.1.2-py2.py3-none-any.whl/pip/_vendor/distlib/compat.py", line 66, in ImportError: cannot import name 'HTTPSHandler' ---------------------------------------- ...Installing setuptools, pip, wheel...done. Traceback (most recent call last): File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/bin/.virtualenv-real", line 9, in load_entry_point('virtualenv==13.1.2', 'console_scripts', 'virtualenv')() File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv.py", line 832, in main symlink=options.symlink) File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv.py", line 1004, in create_environment install_wheel(to_install, py_executable, search_dirs) File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv.py", line 969, in install_wheel 'PIP_NO_INDEX': '1' File "/gnu/store/h38982xp00s1g95nzr6lws31w8q8njb3-python-virtualenv-13.1.2/lib/python3.4/site-packages/virtualenv-13.1.2-py3.4.egg/virtualenv.py", line 910, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /tmp/try-virtualenv/bin/python -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip wheel failed with error code 1 I'm not really sure this is a problem with the new grafts system. It might just be that a "fix" which tears parts of a library is going to cause unexpected problems in some places for ABI incompatibility reasons. Not sure if we should just wait for the world-rebuild or what right now...!