Package: python3-virtualenv
Version: 15.1.0+ds-2
Severity: grave
Justification: renders package unusable

virtualenv in Debian 10 buster recently (today, I think) stopped working for 
both versions of Python. It now fails with “EnvironmentError: 404 Client Error: 
Not Found for url: https://pypi.org/simple/pkg-resources/”. This seems to be 
due to this Debian patch:

https://sources.debian.org/src/python-virtualenv/15.1.0+ds-2/debian/patches/use-wheels.patch/

I’m not sure why it worked before; perhaps there was some server-side 
workaround that was recently removed. One can pass ‘virtualenv --no-download’ 
as a workaround, though this may not be possible if virtualenv is invoked in 
the middle of a script download by some third-party installer.

# virtualenv /tmp/v
Running virtualenv with interpreter /usr/bin/python2
New python executable in /tmp/v/bin/python2
Not overwriting existing python script /tmp/v/bin/python (you must use 
/tmp/v/bin/python2)
Installing setuptools, pkg_resources, pip, wheel...
  Complete output from command /tmp/v/bin/python2 - setuptools pkg_resources 
pip wheel:
  Looking in links: /usr/lib/python3/dist-packages, /usr/share/python-wheels/
Collecting setuptools
  Downloading 
https://files.pythonhosted.org/packages/e1/b7/182161210a13158cd3ccc41ee19aadef54496b74f2817cc147006ec932b4/setuptools-44.1.1-py2.py3-none-any.whl
 (583kB)
Collecting pkg_resources
Could not install packages due to an EnvironmentError: 404 Client Error: Not 
Found for url: https://pypi.org/simple/pkg-resources/

----------------------------------------
...Installing setuptools, pkg_resources, pip, wheel...done.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2379, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 996, in 
create_environment
    download=download,
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 926, in 
install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 817, in 
call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/v/bin/python2 - setuptools pkg_resources pip wheel failed 
with error code 1

# virtualenv --python=python3 /tmp/v
Already using interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /tmp/v/bin/python3
Also creating executable in /tmp/v/bin/python
Installing setuptools, pkg_resources, pip, wheel...
  Complete output from command /tmp/v/bin/python3 - setuptools pkg_resources 
pip wheel:
  Looking in links: /usr/lib/python3/dist-packages, /usr/share/python-wheels/
Collecting setuptools
  Downloading 
https://files.pythonhosted.org/packages/4e/2e/f8e006dbaaa46ed1e762c287585b92476deb8d3ccb79b720ed3b86bc6113/setuptools-58.1.0-py3-none-any.whl
 (816kB)
Collecting pkg_resources
Could not install packages due to an EnvironmentError: 404 Client Error: Not 
Found for url: https://pypi.org/simple/pkg-resources/

----------------------------------------
...Installing setuptools, pkg_resources, pip, wheel...done.
Traceback (most recent call last):
  File "/usr/bin/virtualenv", line 11, in <module>
    load_entry_point('virtualenv==15.1.0', 'console_scripts', 'virtualenv')()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 724, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 996, in 
create_environment
    download=download,
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 926, in 
install_wheel
    call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 817, in 
call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/v/bin/python3 - setuptools pkg_resources pip wheel failed 
with error code 1

Reply via email to