Description of problem: Fedora advertises that developers can use Fedora to test with tox against python 2.6 at https://fedoralovespython.org/ and https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html but the update to virtualenv 16.0 broke python 2.6. support. Version-Release number of selected component (if applicable): python3-virtualenv-16.0.0-1.fc28.noarch How reproducible: always Steps to Reproduce: 1. dnf install tox 2. cat > 'tox.ini' <<EOF [tox] envlist = py26 skipsdist = True [testenv:py26] basepython = python2.6 EOF 3. tox Actual results: Error: ERROR: actionid: py26 msg: getenv cmdargs: ['/usr/bin/python3', '-m', 'virtualenv', '--python', '/usr/bin/python2.6', 'py26'] ERROR: None ERROR: this script requires Python 2.7 or greater. Running virtualenv with interpreter /usr/bin/python2.6 Expected results: should continue to work as it did when Fedora 28 was released with virtualenv 15.0 Additional info: maybe a python26-virtualenv compat pkg could be introduced and virtualenv or tox be patched to use the code from there. Otherwise it should be properly announced and coordinated that the support for Python 2.6 and tox on Fedora was dropped or at least announced that a dnf downgrade python3-virtualenv is needed.
Oh no. Ok, let's check what changed in virtualenv, whether we can bring the support back.
Till, could you please try with: https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/2
Nope, that seems incomplete.
Amended. It works for me, please test it and merge when ready, I gotta go offline. https://src.fedoraproject.org/rpms/python-virtualenv/pull-request/2
I reported in the PR that it is no working. Not sure why it worked for you, I tried the PoC I published above and it fails when calling "tox --recreate" (the --recreate is better to test since otherwise the cache might mask the error).
python-virtualenv-16.0.0-4.fc28 has been submitted as an update to Fedora 28. https://bodhi.fedoraproject.org/updates/FEDORA-2018-1a22e606a6
python-virtualenv-16.0.0-4.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2c7e519668
python-virtualenv-16.0.0-4.fc28 has been pushed to the Fedora 28 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-1a22e606a6
python-virtualenv-16.0.0-4.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2c7e519668
python-virtualenv-16.0.0-4.fc28 has been pushed to the Fedora 28 stable repository. If problems still persist, please make note of it in this bug report.
python-virtualenv-16.0.0-4.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
Not sure how much anyone cares at this point, but this problem is back, you cannot run `tox` with the `py26` env in Fedora 32 (probably also Fedora 31, I think). This is kind of a problem if you still care about EL 6, which doesn't go EOL until November...
This is known and documented. The problem here was that 2.6 support was accidentally dropped from a stable release, hence we patched it back, but decided to only support that to a certain point. That point turned out to be Fedora 30. Since Fedora 31, we don't support Python 2.6 from (the packaged version of) virtualenv/tox. Workaround exists. https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/UNO2CTFUT6K7RE3J2JJGUC4JXSFS3RUG/ https://developer.fedoraproject.org/tech/languages/python/multiple-pythons.html See also slightly related https://fedoraproject.org/wiki/Changes/RetirePython26 (Fedora 33 approved change).