[Python-modules-team] Bug#782795: python-pip: breaks with relocatable virtualenv, assert sys.prefix != real_prefix

2018-03-26 Thread Filippo Giunchedi
On Sat, Mar 24, 2018 at 05:50:40PM -0400, Stefano Rivera wrote:
> Version: 9.0.1-2
> 
> Hi Filippo (2015.04.17_19:05:52_-0400)
> > it looks like pip stops working inside a virtualenv after using
> > virtualenv --relocatable
> 
> I would say that that's actually a virtualenv bug. But the better news
> is that I can't reproduce it in stretch. So let's close this.
> 
> Also, note that upstream virtualenv doesn't really support
> --relocatable. It's known to not work particularly well.

Indeed, unfortunately I've ran into the issue of unrelocatable venv time and
tiem again since this bug and eventually gave up.

thanks!
filippo
-- 
http://esaurito.net - 0x99D49B6B00CAD1E5 - ⠠⠵

___
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

[Python-modules-team] Bug#782795: python-pip: breaks with relocatable virtualenv, assert sys.prefix != real_prefix

2015-04-17 Thread Filippo Giunchedi
Package: python-pip
Version: 1.5.6-5
Severity: normal

hi,
it looks like pip stops working inside a virtualenv after using
virtualenv --relocatable

how to reproduce:

i7:/tmp$ virtualenv venv
Running virtualenv with interpreter /usr/bin/python2
New python executable in venv/bin/python2
Also creating executable in venv/bin/python
Installing setuptools, pip...done.
i7:/tmp$ venv/bin/pip install flask
Downloading/unpacking flask
  Downloading Flask-0.10.1.tar.gz (544kB): 544kB downloaded
  Running setup.py (path:/tmp/pip-build-IIMGrU/flask/setup.py) egg_info for 
package flask
[...]
Successfully installed flask Werkzeug Jinja2 itsdangerous markupsafe
Cleaning up...
i7:/tmp$ source venv/bin/activate
(venv)i7:/tmp$ virtualenv --relocatable venv
Running virtualenv with interpreter /tmp/venv/bin/python2
Making script venv/bin/pip2 relative
Making script venv/bin/easy_install-2.7 relative
Making script venv/bin/pip relative
Making script venv/bin/easy_install relative
Making script venv/bin/pip2.7 relative
(venv)i7:/tmp$ venv/bin/pip install flask
Traceback (most recent call last):
  File venv/bin/pip, line 10, in module
from pip import main
  File /tmp/venv/local/lib/python2.7/site-packages/pip/__init__.py, line 39, 
in module
assert sys.prefix != real_prefix
AssertionError
(venv)i7:/tmp$ 


-- System Information:
Debian Release: 8.0
  APT prefers testing-updates
  APT policy: (500, 'testing-updates'), (500, 'testing-proposed-updates'), 
(500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-trunk-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages python-pip depends on:
ii  ca-certificates   20141019
ii  python2.7.9-1
ii  python-colorama   0.3.2-1
ii  python-distlib0.1.9-1
ii  python-html5lib   0.999-3
ii  python-pkg-resources  5.5.1-1
ii  python-requests   2.4.3-6
ii  python-setuptools 5.5.1-1
ii  python-six1.8.0-1
pn  python:anynone

Versions of packages python-pip recommends:
ii  build-essential  11.7
pn  python-dev-all   none
pn  python-wheel none

python-pip suggests no packages.

-- no debconf information

___
Python-modules-team mailing list
Python-modules-team@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team