[Distutils] Virtualenv bug breaking tox runs
randy at thesyrings.us
Wed Jul 15 06:55:50 CEST 2015
I'm trying to use tox from python2 to test a python3 environment. But I
get an exception like the following:
> rsyring at loftex:~/projects/blaze/blazeutils-src$ python -m virtualenv
> --python python3 ~/tmp/testvenv
> Running virtualenv with interpreter /home/rsyring/bin/python3
> Traceback (most recent call last):
> File "/usr/local/lib/python2.7/dist-packages/virtualenv.py", line
> 14, in <module>
> import shutil
> File "/opt/python34/lib/python3.4/shutil.py", line 11, in <module>
> import fnmatch
> File "/opt/python34/lib/python3.4/fnmatch.py", line 15, in <module>
> import functools
> File "/opt/python34/lib/python3.4/functools.py", line 21, in <module>
> from collections import namedtuple
> File "/opt/python34/lib/python3.4/collections/__init__.py", line 17,
> in <module>
> from reprlib import recursive_repr as _recursive_repr
> File "/usr/local/lib/python2.7/dist-packages/reprlib.py", line 3, in
> from repr import *
> ImportError: No module named 'repr'
There is a bug for this in virtualenv:
So, I realize I could use `python3 -m virtualenv` if I was running the
command myself. But, tox is making the call to virtualenv.
This was working the last time I tested it but has now broken. I'm
guessing that is because I upgraded tox or virtualenv?
Any pointers welcome as to the best way to resolve this issue now?
Thanks in advance.
Husband | Father | Redeemed Sinner
/"For what does it profit a man to gain the whole world
and forfeit his soul?" (Mark 8:36 ESV)/
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Distutils-SIG