-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python 2.6 is no longer supported by the most recent version of virtualenv
#19
Comments
Another partial solution that worked for me was to switch to a different Python version. I ran this inside the container: $ pyenv local 2.7.15
$ pip install tox
$ /docker-entrypoint.sh tox This fixed Python 2.6, worked with 2.7, but failed on every Python3 and PyPy. |
First things first: Thanks for conceiving After just adding
|
I'm trying to use this container to test my library against multiple Python versions with tox.
My
tox.ini
file:With this file, I'm running your container like this:
$ docker run --rm -it -v $(realpath .):/src themattrix/tox
It runs nicely: my package is a volume, and tox is running. However, this is the error I get with Python 2.6: tox can't use the modern virtualenv to create a Python 2.6 testing environment:
This has happened because
virtualenv
has dropped support for Python 2.6 since 16.0.0.If I manually install
virtualenv==15.2.0
, which supports Python 2.6, there's another error:An ugly solution is to add the following line to
tox.ini
:This gives a new error:
This is a tox bug. Got to update it first:
And now, finally, the container works fine.
But it does not have to be like that, does it? :)
The text was updated successfully, but these errors were encountered: