Bug#1003687: python-pip breaks python-virtualenv autopkgtest: invalid syntax

2022-01-13 Thread stefanor
Hi Paul (2022.01.13_18:00:41_+)

We have a transition in progress, although not coordinated with you guys.
See #1003573. Once that is done, all the python3 side will work again.

We need to get python2-pip through NEW to get 2.7 virtualenvs working
again. I'll probably mark those tests as skip-not-installable, for now.

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#1003687: python-pip breaks python-virtualenv autopkgtest: invalid syntax

2022-01-13 Thread Paul Gevers

Source: python-pip, python-virtualenv
Control: found -1 python-pip/21.3.1+dfsg-3
Control: found -1 python-virtualenv/20.12.1+ds-1
Severity: serious
Tags: sid bookworm
X-Debbugs-CC: debian...@lists.debian.org
User: debian...@lists.debian.org
Usertags: breaks needs-update

Dear maintainer(s),

With a recent upload of python-pip the autopkgtest of python-virtualenv 
fails in testing when that autopkgtest is run with the binary packages 
of python-pip from unstable. It passes when run with only packages from 
testing. In tabular form:


   passfail
python-pip from testing21.3.1+dfsg-3
python-virtualenv  from testing20.12.1+ds-1
all others from testingfrom testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python-pip to 
testing [1]. Due to the nature of this issue, I filed this bug report 
against both packages. Can you please investigate the situation and 
reassign the bug to the right package?


More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[1] https://qa.debian.org/excuses.php?package=python-pip

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-virtualenv/18277593/log.gz

created virtual environment CPython2.7.18.final.0-64 in 446ms
  creator 
CPython2Posix(dest=/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve, 
clear=False, no_vcs_ignore=False, global=False)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, 
app_data_dir=/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/home/.local/share/virtualenv)
added seed packages: pip==21.3.1, pkg_resources==0.0.0, 
setuptools==59.6.0, wheel==0.34.2
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

created virtual environment CPython2.7.18.final.0-64 in 185ms
  creator 
CPython2Posix(dest=/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/sysve, 
clear=False, no_vcs_ignore=False, global=True)
  seeder FromAppData(download=False, pip=bundle, setuptools=bundle, 
wheel=bundle, via=copy, 
app_data_dir=/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/home/.local/share/virtualenv)
added seed packages: pip==21.3.1, pkg_resources==0.0.0, 
setuptools==59.6.0, wheel==0.34.2
  activators 
BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

testMPipHelp
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name)  # Do not catch exceptions initializing package
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve/lib/python2.7/site-packages/pip/__init__.py", 
line 6

def main(args: Optional[List[str]] = None) -> int:
 ^
SyntaxError: invalid syntax
ASSERT:Execute bare pip
testSystemPackagesNotAvailable
Traceback (most recent call last):
  File "", line 1, in 
ImportError: No module named six
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name)  # Do not catch exceptions initializing package
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve/lib/python2.7/site-packages/pip/__init__.py", 
line 6

def main(args: Optional[List[str]] = None) -> int:
 ^
SyntaxError: invalid syntax
testSystemPackagesAvailable
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 163, in _run_module_as_main
mod_name, _Error)
  File "/usr/lib/python2.7/runpy.py", line 111, in _get_module_details
__import__(mod_name)  # Do not catch exceptions initializing package
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/sysve/lib/python2.7/site-packages/pip/__init__.py", 
line 6

def main(args: Optional[List[str]] = None) -> int:
 ^
SyntaxError: invalid syntax
ASSERT:pip freeze lists system module from system-site-packages VE
testSetuptoolsAvailable
Traceback (most recent call last):
  File "", line 1, in 
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve/lib/python2.7/site-packages/setuptools/__init__.py", 
line 16, in 

import setuptools.version
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve/lib/python2.7/site-packages/setuptools/version.py", 
line 1, in 

import pkg_resources
  File 
"/tmp/autopkgtest-lxc.tsxq3czm/downtmp/autopkgtest_tmp/ve/lib/python2.7/site-packages/pkg_resources/__init__.py", 
line 117

f"{v} is an invalid version and will not be supported in "
 ^
SyntaxError: invalid syntax
ASSERT:Import