Bug#754248: [Python-modules-team] Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
On Mon, 2016-11-14 at 10:28 -0500, Barry Warsaw wrote: > On Nov 13, 2016, at 10:14 PM, Arthur de Jong wrote: > > I just ran into this today and I can confirm that the above fix > > allows me to move forward with a Python 2.6 virtualenv. Can you fix > > this for unstable? > > Yes, I'll upload this fix to unstable momentarily. Thanks. Just managed to get everything working with the python2.6 from wheezy :) -- -- arthur - art...@arthurdejong.org - https://arthurdejong.org/ -- signature.asc Description: This is a digitally signed message part
Bug#754248: [Python-modules-team] Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
On Nov 13, 2016, at 10:14 PM, Arthur de Jong wrote: >I just ran into this today and I can confirm that the above fix allows >me to move forward with a Python 2.6 virtualenv. Can you fix this for >unstable? Yes, I'll upload this fix to unstable momentarily. pgp3LVKV9oZPC.pgp Description: OpenPGP digital signature
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
On Thu, 2015-01-08 at 06:08 +0200, Stefano Rivera wrote: > Hi John (2015.01.08_05:24:06_+0200) > > ++'/usr/share/python-wheels/{0}-*.whl'.format(project)) > > -+'/usr/share/python-wheels/{}-*.whl'.format(project)) > > That's simple enough that it is reasonable to apply. However we've > probably missed the boat for Debian Jessie. I just ran into this today and I can confirm that the above fix allows me to move forward with a Python 2.6 virtualenv. Can you fix this for unstable? I know Python 2.6 is no longer supported within Debian but I want to run some tests with a locally-compiled Python 2.6 to ensure that my code still works with that if needed. Thanks, -- -- arthur - art...@arthurdejong.org - https://arthurdejong.org/ -- signature.asc Description: This is a digitally signed message part
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
On 19/11/14 08:17, Stefano Rivera wrote: Hi Renat (2014.08.06_05:27:47_-0700) I tried to replace {} with % operator and now I'm having following errors: ImportError: cannot import name CertificateError That is being tracked in #755106 and #763389, and I intend to fix it soon. SR With #755106 and #763389 resolved the attached patch now fixes this issue for me. Index: python-virtualenv-1.11.6+ds-1/debian/patches/use-wheels.patch === --- python-virtualenv-1.11.6+ds-1/debian/patches/use-wheels.patch +++ python-virtualenv-1.11.6+ds-1/debian/patches/use-wheels.patch @@ -89,9 +89,9 @@ +if error.errno != errno.EEXIST: +raise +for project in DEBIAN_WHEEL_DEPS: +wheel_names = glob.glob( ++'/usr/share/python-wheels/{0}-*.whl'.format(project)) -+'/usr/share/python-wheels/{}-*.whl'.format(project)) +if len(wheel_names) == 0: +raise RuntimeError('missing dependency wheel %s' % project) +assert len(wheel_names) == 1, wheel_names +wheel_name = os.path.basename(wheel_names[0])
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
Hi John (2015.01.08_05:24:06_+0200) ++'/usr/share/python-wheels/{0}-*.whl'.format(project)) -+'/usr/share/python-wheels/{}-*.whl'.format(project)) That's simple enough that it is reasonable to apply. However we've probably missed the boat for Debian Jessie. SR -- Stefano Rivera http://tumbleweed.org.za/ +1 415 683 3272 signature.asc Description: Digital signature
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
Hi Renat (2014.08.06_05:27:47_-0700) I tried to replace {} with % operator and now I'm having following errors: ImportError: cannot import name CertificateError That is being tracked in #755106 and #763389, and I intend to fix it soon. SR -- Stefano Rivera http://tumbleweed.org.za/ H: +27 21 461 1230 C: +27 72 419 8559 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
Dear Maintainer, I tried to replace {} with % operator and now I'm having following errors: New python executable in py26/bin/python2.6 Also creating executable in py26/bin/python Installing setuptools, pip... Complete output from command /home/rsabitov/work/...x/py26/bin/python2.6 -c import sys, pip; sys...d\] + sys.argv[1:])) s etuptools pip: Traceback (most recent call last): File string, line 1, in module File /usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/__init__.py, line 61, in module File /usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/vcs/mercurial.py, line 9, in module File /usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/download.py, line 22, in module File /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/ __init__.py, line 58, in module File /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/ utils.py, line 25, in module File /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/ compat.py, line 92, in module File /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/urllib3-1.8.3-py2.py3-none-any.whl/urllib3/__ init__.py, line 16, in module File /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/urllib3-1.8.3-py2.py3-none-any.whl/urllib3/co nnectionpool.py, line 33, in module ImportError: cannot import name CertificateError ...Installing setuptools, pip...done. Traceback (most recent call last): File /usr/lib/python3/dist-packages/virtualenv.py, line 2378, in module main() File /usr/lib/python3/dist-packages/virtualenv.py, line 830, in main symlink=options.symlink) File /usr/lib/python3/dist-packages/virtualenv.py, line 1032, in create_environment install_wheel(to_install, py_executable, search_dirs) File /usr/lib/python3/dist-packages/virtualenv.py, line 975, in install_wheel 'PIP_NO_INDEX': '1' File /usr/lib/python3/dist-packages/virtualenv.py, line 917, in call_subprocess % (cmd_desc, proc.returncode)) OSError: Command /home/rsabitov/work/...x/py26/bin/python2.6 -c import sys, pip; sys...d\] + sys.argv[1:])) setuptools pip failed with error code 1 Running virtualenv with interpreter /usr/bin/python2.6 ERROR: InvocationError: /usr/bin/python3 -mvirtualenv --setuptools --python /usr/bin/python2.6 py26 (see /home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/log/py26-0.log) The problem is that virtualenv install wheels from python3 and among them a recent version of urllib3. It in turn requires a recent ssl package with CertificateError. python2.6-minimal package has an old version without required class. -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_AU.UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python3-virtualenv depends on: ii python-pip-whl 1.5.6-2 ii python-setuptools-whl 5.4.1-1 ii python33.4.1-1 ii python3-pkg-resources 5.4.1-1 pn python3:anynone python3-virtualenv recommends no packages. python3-virtualenv suggests no packages. -- no debconf information
Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
Package: python-virtualenv Version: 1.11.6-2 Severity: important Dear Maintainer, Attempting to create a python2.6 virtualenv using the following command: virtualenv -p python2.6 venv Results in the follow error: Traceback (most recent call last): File /usr/lib/python3/dist-packages/virtualenv.py, line 2378, in module main() File /usr/lib/python3/dist-packages/virtualenv.py, line 830, in main symlink=options.symlink) File /usr/lib/python3/dist-packages/virtualenv.py, line 1016, in create_environment '/usr/share/python-wheels/{}-*.whl'.format(project)) ValueError: zero length field name in format It seems to be due to the use of '{}' for string substitution which is not compatible with python2.6. -- System Information: Debian Release: jessie/sid APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'testing'), (500, 'stable'), (460, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 3.14-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages python-virtualenv depends on: ii python 2.7.6-2 ii python-pip-whl 1.5.6-2 ii python-pkg-resources 5.3-1 ii python-setuptools-whl 5.3-1 Versions of packages python-virtualenv recommends: ii virtualenv 1.11.6-2 python-virtualenv suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org