Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-20 Thread Ophir Lojkine
>> If python3-pip is supposed to work with pypy, I would expect `apt install >> pypy3 python3-pip && pypy3 -m ensurepip --version` to return “pip 20.3.4-4”. >> Instead, it returns the long error message you mentioned above that suggests >> installing another package. > > Nope, I get: > $ pypy

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread stefanor
Hi Ophir (2021.10.19_17:13:16_+) > > > Again, not sure what you're expecting there. > > If python3-pip is supposed to work with pypy, I would expect `apt install > pypy3 python3-pip && pypy3 -m ensurepip --version` to return “pip 20.3.4-4”. > Instead, it returns the long error message you

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread Ophir Lojkine
> Again, not sure what you're expecting there. If python3-pip is supposed to work with pypy, I would expect `apt install pypy3 python3-pip && pypy3 -m ensurepip --version` to return “pip 20.3.4-4”. Instead, it returns the long error message you mentioned above that suggests installing another

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread stefanor
Hi Ophir (2021.10.19_16:58:38_+) > Of course ! But shouldn't ensurepip detect pip when it is installed, > instead of returning an AssertionError ? Yeah, possibly. And as I said before, it shouldn't be returning an AssertionError, that's a bug. You should be getting a friendly error explaining

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread Ophir Lojkine
> > > > If you want to *use* pip, use "pypy3 -m pip", ensurepip is not a pip > wrapper. Of course ! But shouldn't ensurepip detect pip when it is installed, instead of returning an AssertionError ? ensurepip being broken means that `pypy3 -m venv venv` is broken too, which is annoying.

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread stefanor
Hi Ophir (2021.10.19_16:45:43_+) > Should it encourage the user to install python3-pip ? I thought this > package was specific to cpython. It is not specific to cpython. All python3 implementations on Debian can use it. However, when it comes to C extensions, those tend to be specific to cp

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread stefanor
Hi Ophir (2021.10.19_16:32:18_+) > RUN apt-get update && apt-get -y install pypy3 wget > > RUN wget https://bootstrap.pypa.io/get-pip.py && pypy3 get-pip.py > > RUN pypy3 -m ensurepip The same error. get-pip.py will do nothing to make ensurepip behave any differently. If you want to *use* p

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread Ophir Lojkine
> What should happen is that it prints the error message: > >> […] >> Install the python3-pip package to use pip itself. […] Should it encourage the user to install python3-pip ? I thought this package was specific to cpython. Installing it does not seem to make ensurepip work in pypy, at l

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread Ophir Lojkine
> > I can't reproduce that, get-pip.py works for me, and leaves me with a > functional pip. Interesting ! What does the following script return for you ? cat < Dockerfile FROM debian:stable-slim RUN apt-get update && apt-get -y install pypy3 wget RUN wget https://bootstrap.pypa.io/get-pip.py &

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread stefanor
Hi Ophir (2021.10.19_10:59:43_+) > Running pypy3 -m ensurepip on Debian returns an AssertionError. Thanks for the bug, that shouldn't happen. What should happen is that it prints the error message: > ensurepip is disabled in Debian/Ubuntu for the system python. > > Python modules for the sy

Bug#996822: ensurepip throws an AssertionError on pypy3

2021-10-19 Thread Ophir Lojkine
Package: pypy3 Version: 7.3.5+dfsg-2 Running pypy3 -m ensurepip on Debian returns an AssertionError. Here is a Dockerfile that reproduces the issue: FROM debian:stable-slim RUN apt-get update && apt-get -y install pypy3RUN pypy3 -m ensurepip It throws the following error: --